Skip to content Skip to sidebar Skip to footer

How to Install Adsense Ads in the Middle of Blog Posts

There are many ways you can do to get additional adsense ads, one of them is the placement of good ads. Views can easily be seen by blog visitors. The most important factor as an adsense publisher is to have quality content so that it can bring many visitors to read the content that we make. Well, to improve, the ad layout needs to be more maximal, the most popular is the installation in the blog post.

This time I will share a tutorial on how to install adsense ads in the middle of blog posts automatically, so once the ad settings will always appear in the middle of a blog post.

Installing Adsense Ads in the Middle of Blogger Article Posts Please log in to your blogger account. Next open the Themes >> Edit HTML menu Then look for the <data: post.body /> code (use the Ctrl + F key) If you have found it, please change the code <data: post.body /> with the code below.

<div expr:id='&quot;post1&quot; +'/>
<div class='googlepublisherads' style='margin:20px 0'>
<div class='separator' style='clear: both;
text-align: center; '>
Place the Ad Code that you have PARSE here.
<div expr:id='&quot;post2&quot; +'><data:post.body/></div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;post1<>&quot;);
var obj1=document.getElementById(&quot;post2<>&quot;);
var s=obj1.innerHTML;
var t=s.substr(0,s.length/2);
var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);}
Don't Forget Save

Information: length / 2: is the position of the ad, 2 is right in the middle of the article. In order to appear more above, please change the number 2 with number 6. or you can try adjusting the number as desired.

The above is a special tutorial for blogger blogspot users

So how to increase adsense revenue through placement of ads in the middle of blog posts. Hopefully it can be useful and successful as an adsense publisher.