Hi Sunil I agree what @ctgraham answered, you must use a plugin and place it on your page. But still if you are looking to hard code the Adsense, then go to /templates/article/article.tpl
Here If you are using payed subscription and you want to show your ad. above it you can paste your code somewhere in line# 18(In my case I have written “Hello World” in this line), or if you don’t have a payed subscription than paste your code in line#41( In my case I have written “Hello World” in this line). Suite yourself to paste your code in any one of these places.

and guess what here is your result.

Please adjust the coding according to your page design, I have used text only “Hello World” to show you here.
About showing the ads inside your pdf I am not getting it, but my code is still showing while I open the pdf file.