How to Install Adsense Ads Above and Below Blog Posts
First, you first enter Blogger > Themes > Edit HTML, find for this code <data:post.body/> usually like the code below.
<b:includable id='post' var='post'>
....
....
<data:post.body/>
....
....
</b:includable>
If you have found it, please add the conditional tag then it will be like the code below
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
</b:if>
So that the ad looks neat add the code as below.
<b:if cond='data:blog.pageType == "item"'>
<div class='ads.blogs>
<!-- Install the ad code here -->
</div>
<data:post.body/>
<div class='ads.blogs>
<!-- Install the ad code here -->
</div>
</b:if>
The last one adds the CSS code, copy the code below and paste it right above the code </head> .
<b:if cond='data:blog.pageType == "item"'>
<style type='text/css'> .ads.blogs{margin:20px auto 0 auto} .ads.blogs{margin:20px auto}
</style>
</b:if>
If your getting error something please read article carefully
Now second How to ads centre of the post
How to Install Adsense Ads in the Middle of Article Posts
– Google Adsense is an advertising service that is widely used by bloggers as well as me to get a little extra income, to increase Adsense income placement of ads is also influential from ads above articles and also under the article is very recommed and also not disturb your visitors later when reading your article.
Placement of Adsense ads in the middle of posts can also increase your Adsense impression with the condition of 400 words in 1 article so that the ads that are displayed are not close together and pleasing to the eye, Google Adsense has 2 types already know?
How to Install Adsense Ads in the Middle of Article Posts
The Adsense code that you want to install should be parsed first here
<div expr:id='"post1" + data:post.id'/>
<div class='googlepublisherads' style='margin:20px 0'>
<center>
PASTE THE CODE OF ADSENSE HERE BEFORE PREFERRED
</center>
</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>
Below is the code 2 adsense ads in 1 post
<div expr:id='"post1" + data:post.id'/>
<div class='googlepublisherads' style='margin:20px 0'>
<center>
PASTE THE CODE OF ADSENSE HERE BEFORE PREFERRED
</center>
</div>
<div expr:id='"post2" + data:post.id'><data:post.body/></div>
<div class='googlepublisherads' style='margin:20px 0'>
<center>
PASTE THE CODE OF ADSENSE HERE BEFORE PREFERRED
</center>
</div>
<div expr:id='"post3" + data:post.id' />
<script type='text/javascript'>
var ads1=1/5;
var ads2=4/5;
var a=document.getElementById("post1<data:post.id/>");
var b=document.getElementById("post2<data:post.id/>");
var c=document.getElementById("post3<data:post.id/>");
var html=b.innerHTML;
var n=html.length;
var t=html.substr(0,n*ads1);
var i=t.lastIndexOf("<br>");
var t2=html.substr(0,n*ads2);
var i2=t2.lastIndexOf("<br>");
if(i>0 && i2>0){
a.innerHTML=html.substr(0,i);
b.innerHTML=html.substr(i+4,i2);
c.innerHTML=html.substr(i2+4);
}</script>
Now save your template done!
Okay so that I can say about How to Install Adsense Ads Above ,Below and centre of the Posts Blog Thank you for visiting, hopefully it will be useful for all of you.