Show Mobile Navigation

Add Adsense in the Middle of the Post

Hemant Verma - 9:53 PM

Yesterday we give you a tutorial that how to add adsense codes in the left side, right side, or in center of the post which could increase your adsense CTR and but as from the many times some websites OR some blogs put their adsense in the middle of the posts, that is also increase the CTR of your adsense earning.

Read Also-   Adsense Unit Placing Pack

3. Add Adsense in the Middle of the Post

Add Adsense in the Middle of the Post

  • Login to Blogger > Dashborad
  • Click on Drop Down Menu and select Template
  • Backup your Template before making any changes to your blog
  • Now Click on Edit HTML > Proceed > Expand Widget Templates
  • Press Ctrl + F and search the code shown below.


You will find two times <data:post.body/> code and You have to Replace it With the Second One

  • Now replace that code with below code.

<div expr:id='&quot;aim1&quot; +'/>
<div style='clear:both; margin:10px 0'>

Your Adsense Code Here

<div expr:id='&quot;aim2&quot; +'>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;aim1<>&quot;);var obj1=document.getElementById(&quot;aim2<>&quot;);var s=obj1.innerHTML;var t=s.substr(0,s.length/2);var r=t.lastIndexOf(&quot;&quot;);if(r&gt;0){obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1)}

You Have to first Convert the Adsense Code into the Compartible Form

  • Now just replace Your Adsense Code Here with your Own Asense Codes.
  • Now Save Your template.

If Any Problem Comes, Ask in Comments


  1. @A . Mohamed IleeyasKeep Stay Tune with us. We will publicize soon.

    Thanks for your interest.

  2. hey #hemant,, i am trying but it's is not working for me.............. plz help...

  3. after converting the code replaced with second but it is not showing,,, ads space nor ads....

  4. Excellent Tutorial. I already apply this method on my Technology blog
    TekPip .

  5. Brother when i applied this to my template it's showing tyle="font-size: x-large;">

    like this text...... and it's working for me good but i don't know why it's showing some html codes in post and style font etc

    so what should i do ?

    Kindly tell me ? visit this and and tell me thanks

  6. Hi Hemant, I have doubt here and i want a solution. Is there a way to make the ads appear in the bottom or middle of the post or below the post title only in the first post that appears and not in every posts.. for example, if i have 5 posts per page, then in this method, the ads appear in all 5 posts, ofcourse, it is limited to 3 ads. my question is instead of appearing in all the posts in the page, i want it to appear only in first post, because i want to use other ad units in the right side like skyscraper etc. help me please.

    1. Hi,

      First of fall Welcome to Widget Generators. We would like to help you. Your solution is here

  7. This comment has been removed by the author.

  8. Thanks for sharing such a valuable code but how to change the position of the ad, please specify.

  9. How to Adsense Account Create..?

  10. Thanks for such a nice post

  11. This is good for increasing revenue of a blog thanks.

  12. Hi! I have the same problem! I had another code and it worked, but I needed to write -adsense- where I wanted ad to be. I wanted fully automated and I changed it with your code- it just doesn't show. Do you have any suggestion? This is a post (long one, maybe it's good example)

  13. sorry sorry sorry! It wasn't the second one post.body! It's really cool! Thanx!

  14. Thank you, thank you, thank you! I've been looking for this for a while, I finally found it.

  15. The guides were very helpful. This is what I was looking for on the Internet ....

  16. Need To Boost Your ClickBank Banner Traffic And Commissions?

    Bannerizer makes it easy for you to promote ClickBank products with banners, simply visit Bannerizer, and get the banner codes for your chosen ClickBank products or use the Universal ClickBank Banner Rotator to promote all of the available ClickBank products.

  17. It's a impressive post that has everything to describe in it.


You may use these HTML tags and attributes: <a href="" title=""> </a> <b> </b><strong> </strong>


Make Your Blog Like a Pro
About | Contact | Affiliates | Privacy Policy | TOS