youtube SEO, tricks for blogger, wordpress tricks for earning money online youtube earning, whatsapp,windows, android & all about new technology.

How to show Adsense ads inside the post in blogger

No comments
show Adsense ads inside the post

Increase Adsense earning by showing ads middle in inside the post by adding ad code manually you can show ad but what happen when you want to make some change in post ad it’s very difficult to change in all post ads one by one. Don’t worry friends today in this post I’m going to tell you a trick to show adsense ads inside the post by using this trick you can remove or change ads by making one change in html template.
demo of adsense ads inside the post

How to Add Adsense ads inside the post

  • For show adsense ad or any other ads in blogger blog post follow below steps.
1st add <!-- adsense --> comment code in your post by HTML section where you want to show this ads our script automatic will replace <!-- adsense --> with your Adsense ad script or with other script you want to use.
  • Now we need to add some code in blogger template.
Note:- Before change in Template get a backup of your template.

For change in template Go to Template> HTML editor
Press CTR+F and Find <data:post.body/> you will find this several time in template replace second number of <data:post.body/> with below given code if it not working by replacing second number this so undo this and try with 3rd and again it not working again undo this and try this with 4th number <data:post.body/> why we try this with all <data:post.body/> because all blogger templates source code structure is different.

Copy Below code and use

<div expr:id='"adsmiddle1" +'></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">

<!-- Add here the code of your ad -->

<div expr:id='"adsmiddle2" +'>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<>");
var obj1=document.getElementById("adsmiddle2<>");
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 Replace <!-- Add here the code of your ad --> with you adsense ads code in html encode format use below tool for convert code in encode form.
HTML Encoder Converter
Now when you create new a post add <!-- adsense --> tag inside the HTML section add anywhere in post where you want to show Google Adsense Ads middle of post below of post or where you want see below example screenshot. Example how to write post in HTML section