AdSense will not work in PDF because it is dynamic content, created when the page is viewed, and a PDF file is static content. The AdSense itself is just a piece of javascript code, which contacts the ad server at Google, which in turn deliveres a selection of ads based on the formatiing of the ad block and the content of the page. In order to deliver relevant ads, Google retrieves and analyzes the content of the page on which the AdSense code is located. None of this will work with an offline document, which can be the case with a PDF file.
Nevermind the tech issues, you cannot put AdSense on any sort of software or anything that renders in another program.