How to put AdSense in the Middle or Anywhere of Blogger posts

If you want to put Adsense ads in the middle of Blogger posts follow the steps below.

1.Generate Parsed code for your adsense code because we cannot put adsense code directly in the xml.So parse it using AdParser.

After parsing,your ad code Should look like this.

2.Log in to your dashboard--> layout- -> Edit HTML

3.Click on "Expand Widget Templates"

4.Scroll down to where you see this:




<data:post.body/>



5.Now replace above code with below code.




<div expr:id='"aim1" + data:post.id'>
</div> <div style="clear:both; margin:10px 0">
<!-- Your 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>



Note : You must you must replace with Your Adsense Parsed code.

6.Now save your template.

7.In every blog post ,Put this special code :




<!-- adsense -->




in the exact point you want to appear AdSense advertising.Now you are done.

Adsense Tips

  1. 15 Alternatives to Google AdSense
  2. Banned from Adsense but you are not guilty ? Tips to recover.
  3. Google AdSense and Revenue Sharing Websites
  4. Google Adsense High Paying Keywords
  5. High CPC Adsene Ad Network List
  6. How To Add 728×90 leaderboard Adsense ads between Header and Post Section in blogger
  7. How to Add Adsense ads inside Blogger blog posts or between blog posts
  8. How To Add Meta Description to Blogger using Blogger Settings
  9. How to Embed Adsense add unit in Left or Right corner of post content
  10. How To Insert Adsense Ads In Blogger Post
  11. How to put AdSense in the Middle or Anywhere of Blogger posts
  12. How To Use Adsense Section Targeting on Blogger
  13. What is Google Adsense



Instagram