Skip to content

September 9, 2010

4

Put Adsense in the Middle of Blogger Blogspot Post

How to put adsense in the middle of post blogger blogspotHow to Put place insert Adsense in the Middle of the Post article content in Blogger Blogspot blog. Read also how to place insert Adsense in the middle of WordPress blog post.

As mentioned here, to optimize and increase your Adsense earning, one of the tricks is to put adsense in the middle of the blog post.  There are many plugins available for WordPress blog. For Blogger Blogspot user however that’s not easy.

Here’s the hack how to make it happen. The code <!– Your AdSense code here –> should be changed with your own Adsense code.

I. Hack by Max

  1. After login to blogger.com -> Layout > edit html -> check Expand Widget Templates
  2. Find this code: <data :post.body/>
  3. Replace with this code: <div expr:id=’&quot;aim1&quot; + data:post.id’></div>
    <div style=&quot;clear:both; margin:10px 0&quot;>

    <!– Your AdSense code here –>
    </div>
    <div expr:id=’&quot;aim2&quot; + data:post.id’>

    <data :post.body/>

    </div>

  4. Save Template. Done.
  5. Now, everytime your write a post, put this code <!– adsense –> in the middle of the post where you want it to appear.

Credit for this hack goes to: Max. Visit his blog for more details and further development.

II. Hack by DJ Yano

  1. After login to blogger.com -> Layout > edit html -> check Expand Widget Templates
  2. Find this code: <data :post.body/>
  3. Replace it this 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>

  4. Save Template. Done.
  5. Now, everytime your write a post, put this code <!– adsense –> in the middle of the post where you want it to appear.

Credit goes to DJ Yano.

4 Comments Post a comment
  1. Sep 12 2010

    Siip… mantab banget tipsnya. Dah pernah tak coba mas, untuk meningkatkan frekuensi klik pada iklan adsense memang ini salah satu caranya. Thanks

    Reply
  2. Sep 14 2010

    Thanks. I was looking for a way to put adsense code in between blogger posts. Let me try this method.

    Reply
  3. Nov 9 2010

    wah baru tau nih mas kalau penempatan adsense di post seperti itu, thx tambah ilmu baru nih hack blogger …
    mas mau nanya kalau iklan yang ada gambarnya itu adsense bukan ya ??? kok lain ya tampilannya ???

    Reply
  4. wow nice pos thanks for share

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments