Google Adsense
If you want to put adsense ad code in the middle of your blog post, as it is easy to getclick frequently.So it wil help to earn more money.
How to Put Adsense Ad code In Middle of Blog Post
1. First of all you have to parse the code.Go to these link
and parse the code. AdParser.
2.After log in to your blogger account and go to
dashboard >> Layout >> Edit HTML
3. Check THE "Expand Widget Templates" and
find this code by using Ctrl+F
<data:post.body/>
4.Now replace above code with this below code.
<div expr:id='"aim1" + data:post.id'></div>
<div style="clear:both; margin:10px 0">
<!-- Your AdSense code here -->
</div>
<div expr:id='"aim2" + data:post.id'>
<data:post.body/></div>
<script type="text/javascript">
var obj0=document.getElementById("aim1<data:post.id/>");
var obj1=document.getElementById("aim2<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>
5. Now save the template. Now put this special code to your every post.
<!-- adsense -->
this is the place you want to put your adsense code.
6. Enjoy.
0 comments:
Post a Comment