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='"post1" + data:post.id'/>Don't Forget Save
<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>
</div>
<div expr:id='"post2" + data:post.id'><data:post.body/></div>
<script type='text/javascript'>
var obj0=document.getElementById("post1<data:post.id/>");
var obj1=document.getElementById("post2<data:post.id/>");
var s=obj1.innerHTML;
var t=s.substr(0,s.length/2);
var r=t.lastIndexOf("<br>");
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);}
</script>
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.
No comments:
Post a Comment