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:

5.Now replace above code with below code.

<div expr:id='"aim1" +'></div> <div style="clear:both; margin:10px 0">
<!-- Your AdSense code here -->
<div expr:id='"aim2" +'>
<script type="text/javascript">
var obj0=document.getElementById("aim1<>");
var obj1=document.getElementById("aim2<>");
var s=obj1.innerHTML;
var\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
Note : You must you must replace <!-- Your AdSense code here --> 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.
Share on Google Plus

About Admin

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis.


Post a Comment