1058 followers
Follow us on Twitter!
260 followers
Join us on Facebook!

This is about an old trick that how to display your AdSense ads inside the blog posts. This post is to cover all the AdSense related information. Though I am trying to cover all the topic in my blog so you will get some basic topic that already most of the blogger knows. But this is very effective trick for the newbie. Placing AdSense ads inside the blog posts can generate more click on it, which means more revenue for you. So just follow the below steps to place the AdSense ads inside anywhere of your blog posts.
Step 1 Log in to your blogger account and Click on Template ->Edit HTML-> Proceed
Step 2 Now click on Check box to Expand the templates
Step 3 Now find <data:post.body/> by Pressing Ctrl + F
You will find 3/4 time this code go for second one.
Step 4 Now Replace <data:post.body/> with below code.
<div expr:id='"aim1" + data:post.id'></div>
<div style="clear:both; margin:10px 0">
PUT YOUR PARSED ADSENSE CODE HERE
</div>
<div expr:id='"aim2" + data:post.id'> <data:post.body/> </div>
<script type="text/javascript"> var obj0=document.getElementById("aim1<data:post.id/>"); var obj1=document.getElementById("aim2<data:post.id/>"); var s=obj1.innerHTML; var r=s.search(/\x3C!-- adsense --\x3E/igm); if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);} </script>
Customization
Replace PUT YOUR PARSED ADSENSE CODE HERE with your AdSense Code.
NOW WE WILL LEARN HOW TO DISPLAY ADSENSE ADS ANYWHERE OF THE POSTS
For display ads you have to use the below code. That mean wherever you place the below code there your AdSense code will display.
<!--adsense -->





0 comments: