How to Learn : Add Adsense Ads inside Blogger Posts
Many people want to put ads in the posts , because this place will bring more clicks for the website owner and now you are going to learn .
TUTORIAL :
Step Number 1 :
Go to template then Edit HTML , click anywhere inside the code box and click CTRL+F to search for
TUTORIAL :
Step Number 1 :
Go to template then Edit HTML , click anywhere inside the code box and click CTRL+F to search for
<data:post.body/>
if you find many codes , work on the second one .
2.
Replace <data:post.body/> with the code below :
<div expr:id='"adsmiddle1" + data:post.id'></div>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
<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>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
<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>
NOTE : REPLACE <!-- Add here the code of your ad --> with the parsed ad code .
Now click on save , after that the ads will appear under the post title , if you want to place on another place inside the post , simply when you are writing the new article click on HTML tab and place :
<!-- adsense --> anywhere .
MY LAST WORDS : I feel good after writing this good tutorial , please comment and share .
