How to Insert Adsense Ads Inside Blog Post

Posted by Faheem Mustafa

This post will be very helpful for those who are earning from the Adsense Revenue Program. In this post you will learn an AdSense trick which will allow you to put the ads inside your blog posts in any part of your post.Once Added you can place the ads anywhere in the post like after the first line of text, before the last line, in the middle..... and you can have the ads in different areas in every post.
By placing Adsense Ads inside your blog posts, you can have a positive change in your earnings. It will be more effective if you try to make the ad units blend-in with the rest of the content when your picking the colors.I have another post on how to add your Adsense Directly Below the Title of your posts
There is a bit of extra work in this tutorial but if you follow step by step you should have no problems also make sure to Back up your template.
How to Insert Adsense Ads inside Blogger Posts  
First you have to get the Adsense Code from your Adsense Account

  1. Go to your AdSense account and Choose what type of ad you want inside your blog posts.
  2. Grab the code for the AdSense unit.
  3. The AdSense code must be place in your blog templates html to do this we must use an adsense praser.
  4. Paste your Adsense Code inside and click make friendly.
  5. Your ADSENSE code is ready to use in template now.
 
Follow he following steps
  1. Log-in to blogger account
  2. Go to Design>Edit HTML
  3. Click "Expand Widget Templates"
  4. Find (Press CTRL + F) <data:post.body/>
  5. Now replace <data:post.body/> with the following

<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>

     7. Put your Adsense code where you see: PUT YOUR PARSED ADSENSE CODE HERE  
     8. Save your template - Were not finished....

Now you can make the Adsense Ad appear in any part of your blog post :

 

     9. When you writing your post place <!-- adsense --> in your post

So if you place the <!-- adsense --> tag at the top of your post the ad will appear there ...half way down ...near the bottom ...at the bottom...wherever you want it !

blog comments powered by Disqus
Related Posts with Thumbnails