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.

<data:post.body/> 

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; + data:post.id'/>
<div style='clear:both; margin:10px 0'>

Your Adsense Code Here

</div>
<div expr:id='&quot;aim2&quot; + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;aim1<data:post.id/>&quot;);var obj1=document.getElementById(&quot;aim2<data:post.id/>&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)}
</script>


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





24 comments:

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

    Thanks for your interest.

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

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

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

    ReplyDelete
  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 ? www.urfox.com visit this and and tell me thanks

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

    ReplyDelete
    Replies
    1. Hi,

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

      http://www.widgetgenerators.com/2013/06/add-adsense-between-posts-on-home-page.html

      Delete
  7. This comment has been removed by the author.

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

    ReplyDelete
  9. How to Adsense Account Create..?

    ReplyDelete
  10. Thanks for such a nice post

    www.worldcup2015livenews.com

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

    ReplyDelete
  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) http://blog.madamastrology.com/2015/03/fashion-horoscope-for-zodiac-signs.html

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

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

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

    ReplyDelete

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