How to add Adsense Ads in Middle of Blogger Post or any where

Share on

If any Body have approved adsense account then Everyone want make more money and show more ads in blogger. Top banner and sidebar ads are also show. But in the middle of post adsense ads how to show. its very simple just Follow some steps.

Step1

Go Blogger Theme and click Edit HTML

Step2

Press Ctrl+F and find this <data:post.body/> You might find multiple instances of this, so you have to stop at the second one. If by the end it doesn’t work, then try using the third one.

Step3

Replace this code with 2nd  <data:post.body/> If by the end it doesn’t work, then try using the 3rd.

______________________________________________

<div expr:id='”adsmiddle1″ + data:post.id’></div>
<b:if cond=’data:blog.pageType == “item”‘>
<b:if cond=’data:blog.pageType != &quot;static_page&quot;’>
<div style=”clear:both; margin:10px 0″><center>
<!– Add here the code of your ad –></center>
</div>
</b:if>
</b:if>
<div expr:id='”adsmiddle2″ + data:post.id’>
<data:post.body/>
</div>
<script type=”text/javascript”>
var obj0=document.getElementById(“adsmiddle1<data:post.id/>”);
var obj1=document.getElementById(“adsmiddle2<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>

______________________________________________

and make Parse Adsense Code You can see <!– Add here the code of your ad –> Replace with Parse Adsense Code 

Copy Adsesnse Code and make Parse Use this website  . http://www.htmlparse.com/ see step4



Step4
Copy Adsesnse Code and make Parse Use this website  . http://www.htmlparse.com/

After Parse Adsense Code You can see <!– Add here the code of your ad –> Replace with Parse Adsense Code 


Step5
After all Setting when you create a new post add this annotation inside the “HTML” Where you want Google Adsense Ads

<!– adsense –>

 i hope you this article helpful for you . if you like then please like and Share

Leave a Reply

Your email address will not be published. Required fields are marked *