Today I will tell you that how to increase Adsense revenue with the help of placing Adsense ads in middle of post.
How to Put Google Adsense Below Post Title in Blogger?
- Fist you have to Go to Blogger > Click on Template of your blog > Now Take Backup of your Template.
- After that when you take backup then click on Edit Template
- Now press Ctrl+F > Then Type <data:post.body/> on search box.
- Note : It is possible that you find more than one <data:post.body/>, so find second one and then select that one.
- Next Step replace the selected <data:post.body/> with below code.
<div expr:id='"adsmiddle1" + data:post.id'></div>Once you done with copy-past of code, then simply replace <!-- Add here the code of your ad --> wtih you Adsense code.
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<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>
0 comments:
Post a Comment