How To Add Adsense Ads In The Middle Or Anyplace Inside Blogger Posts

In a previous post, we saw how to put Adsense ad inside blogger post body. Whatever, these methods would only work when we place the ads in the fixed location. But the most important for AdSense ads where we put ad codes for showing the ad to earn more revenue. It is important that the placement of ads in the post area. Often we need to Place Adsense Ads In The Middle Or Anywhere Inside Blogger Posts. It is so easy for a WordPress user but if we have been used Blogger platform for blogging. We have some critical issues for add Adsense ad in the post area. 

If we want to display an Adsense in the middle of a post

If we are interested in displaying any AdSense ads inside the middle of the post. We do this by adding a script inside the template and using a tag inside our post HTML where we want to show Adsense ads. Following this process, we can show ads anywhere. For example between paragraph, besides the post images, Also in the middle of the content.

It is a very simple pretty process for manually insert Adsense ads in the middle of the post in blogger blog. Just follow these step below, I described here How to Add Adsense Ads In The Middle Or Anyplace Inside Blogger Posts.

Before starting the process backup your template first from blogger dashboard. 

Add Adsense Ads In The Middle Or Anyplace Inside Blogger Posts, How To Add Adsense Ads In The Middle Or Anyplace Inside Blogger Posts, Add Adsense Ads In The Anywhere Inside Blogger Posts

You May Like Also:

1. Add Adsense Ads Middle of First Two Post in Blogger Blog

2. Top 55 Highest Paying Adsense Keywords for Google

3. Ніghеst Gооglе Аdsеnsе Еаrnеrs of 2016

Adsense Ads In The Middle Or Anywhere Inside Blogger Posts

Rule 1: First of all we need to do Parse The Adsense Code or convert it to plain text. Then go to Template and click on Edit HTML. Now click on the HTML Area and press (Ctrl+F) for find the below tag.

<data:post.body/>

Note: You will find it one more time but need to stop the second time,  If you can’t any changes then, test the third one.

Adsense Ads In The Middle Or Anywhere Inside Blogger Posts


Rule 2: Replace <data:post.body/> with this codes:

<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″>
<!– Add here the code of your ad –>
</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>

Rule 3: Now replace the yellow code (<!– Add here the code of your ad –>) with the converted Adsense code. Then save the template by click on the Save Template button.

Note: If  you wish to place the ad on Center, Add the centre tag before and after Adsense code like this:

<div style=”clear:both; margin:10px 0″><center> <!– Add here the code of your ad –></center></div>

Rule 4: After completing steps. When you creating a new post, add below tag inside the Post HTML section. To where you want to add Google Adsense ads. The tag is:

<!– adsense –>

Like Below:

<div>It will displays your iPhone IMEI. It is a identifier for your mobile phone hardware.It will displays your iPhone IMEI. It is a identifier for your mobile phone hardware.It will displays your iPhone IMEI. It is a identifier for your mobile phone hardware.</div>
<!– adsense –><div>It will displays your iPhone IMEI. It is a identifier for your mobile phone hardware.It will displays your iPhone IMEI. It is a identifier for your mobile phone hardware.It will displays your iPhone IMEI. It is a identifier for your mobile phone hardware.</div> 

Note: If you don’t add the level to bring up the ad, then the ad will appear below the title by default system.

Don’t worry about Google’s terms of services because applying this system. We are not changing the structure of the ad. 

Hopefully, you are now able to Add Adsense Ads In The Middle or Anyplace Inside Blogger Posts. If you have any question about Add Adsense Ads In the Middle then ask me via comment. Don’t forget to share this post on social media like Facebook or Twitter.

2 thoughts on “How To Add Adsense Ads In The Middle Or Anyplace Inside Blogger Posts”

Leave a Comment