Saturday, January 29, 2011

Put Adsense code In Middle blog Post

If you put  adsense code middle in the post, easy to get
click frequently.So it wil help to earn more money.Try these.

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. Cheers.

7 comments:

  1. Hi Bloggertrix Can u help please?

    I go through your tutorial. Very Nice. But in my blog file set i cant to find "" Word. So plz explain me...

    ReplyDelete
  2. I am able to put only 2 adsense ads instead of 3 after using this trick

    ReplyDelete
  3. help me ! my adsense to 1 click Please http://www.enhrii.tk

    ReplyDelete
  4. Thanks for sharing excellent information. Your website is very cool. This website has got really useful info on it!
    http://www.surveytool.com/health-care-surveys/

    ReplyDelete
  5. Hi Bloggertrix

    When i am doing the same thing Ad is not Displaying in the middle of the post , it just displays only :(

    Please help me, My Website is www.Cinema65.com

    ReplyDelete