Thursday 23 August 2012

How to Put Adsense Ads anywhere in the Blogger post.

Hi friend here i am explain that how to add adsense ads middle in the blogger post or anywhere in blogger post i Hope that this post will help to every newbie and they can easily add ads banner in their bloger post easily by this tutorial .
Follow simple and easy step to adding this tricks in your blogger blog ---->>>
* First go to your blogger Dashboard.
* Now click in design tab and edit HTML.

* Click in small box to expand your blogger template.

* Now find this code
<data:post.body/> in your template by CTRL+F key.
* Now remove above code with below code .--->>>

<div expr:id='"aim1" + data:post.id'></div>

<div style="clear:both; margin:10px 0">
ADD HERE YOUR ADSENSE CODE 
</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!-- myadsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
NOTE:-Remove Highlighetd Text in above code with your own adsense phrases code ok.
* Now click to save your blogger Template.
* Now when you Draft new blogger post add this code anywhere in the post

                <!-- myadsense -->
by EDIT html option ok and pulish your post you can see and now you are doen cheers

No comments: