Placing adsense ads in middle of all the posts will give a high CTR which eventually increases earnings. In word press, There are customized plugins available for placing ads in middle of the posts. But in case of blogger it is some what tricky part to place adsense ads in middle of all the posts. We have developed a script which can place adsense ads in between the post exactly in the middle of the content. The procedure for placing adsense ads in middle of  the posts in blogger is shared below.

Place Adsense Ads Automatically In Middle of All The Posts In Blogger:

Follow The below process to place adsense ads in Middle of all the posts automatically in blogger.

Step 1:

Login to Your Blogger Account

Go to Template >Edit HTML

Step 2:

Search For Below Code in your template.

<data:post.body/>

You will get multiple codes similar to above code. You have to select the second code which is similar to above code in order to make the script work properly.

Step 3:

Replace The above Code With The Below Code.

<div id='jobmiddlenew'> 
<data:post.body/> </div> 
<b:if cond='data:blog.pageType == &quot;item&quot;'> 
<style> #addcodemiddle{display: none;} </style> 
<div id='addcodemiddle'> Place Your Ad Code Here </div> 
<script type='text/javascript'> var str1=document.getElementById(&quot;jobmiddlenew&quot;).innerHTML; var str2=str1.length; var str3=str2/2; var substr = str1.substring(str3, str2); var n = substr.search(&quot;&lt;br&gt;&quot;); if(n&lt;0) { n = substr.indexOf('.'); if(n&lt;0) { n=0; } var firsthalf = str1.substring(0, str3+n+1); var secondhalf = str1.substring(str3+n+1, str2); } else { var firsthalf = str1.substring(0, str3+n+4); var secondhalf = str1.substring(str3+n+4, str2); } var addcode=&quot;<center>&quot;+document.getElementById(&quot;addcodemiddle&quot;).innerHTML+&quot;</center><br/>&quot;; var newbody=firsthalf+addcode+secondhalf; var strnew=document.getElementsByClassName(&quot;post-body entry-content&quot;); strnew[0].innerHTML=newbody; document.getElementById(&quot;addcodemiddle&quot;).innerHTML=&quot;&quot;; </script> 
</b:if>

Step 4

Replace The Place Your Ad Code Text With Your Adsense Ad Code in the above code and save your template.

 

If you are facing any kind of issue then do let us know in your comments. Happy Blogging Cheers 🙂

86 COMMENTS

  1. Thanks for this amazing post. I have searching this type information. I have successfully added code on middle of post.

  2. This looks like just what I need, however I am pretty computer illiterate.. I can copy/paste code usually, but how do I find the ad code and how do I copy it? I think I found the code but I can’t highlight it to copy.
    Also my posts are usually fairly short, a few hundred words at most. Can I put the ads beside the title or below the post?
    A lot of questions I know.
    I have several blogs and can practise on one of my newer ones with less to damage.

  3. pushing ads to middle earnings dropped over 30%, inserting ad unit after 1st paragraph may be some innovative idea in blogger. but top kicked by panda. especially large rectangle left floated below post title

  4. Thank you for this. It worked on my blogger site. I replaced second Datapostbody code but not worked. then there was third one, when tested with that it worked. I dont know coding but it was easy thing as you explained the process in detail.
    I liked Alltechbuzz. Its theme and the informations are great. Really inspired by you.

  5. First of All Thanks bro for sharing this useful info.

    This post is very simple I am beginner in Adsense field but after reading your post I used this code and put it in my website very easily without any efforts

  6. Wow nice bro . Adsense placement is too neccessary for higher cpm . But i have a question about that ‘ is it against the Google adsense policy ? ‘ .

  7. Thanks for the update but the problem am having is that it keeps showing some code after i inserted it (everyhournaija.blogspot.com). Please can you help me with it, thanks

  8. Hello.. Nice post. This post worked for me when i was using my blogspot domain, but since i changed my domain and began to use the DFP adsense. it stopped working.. Please Help.
    Thanks.

  9. It is saying like this , Error parsing XML, line 2474, column 15: Attribute name “async” associated with an element type “script” must be followed by the ‘ = ‘ character.

  10. That works on my site and very easily done as the way is quite simply described by you. I use to check your post regularly these are quite helpful for new bloggers. Thanks for sharing.

  11. Hey! It’s working perfectly man. Thank you for the code. Yeah! This is Original Comment. Plz remove Above comment named with Balu. Bcz I mistakenly commented with another website address

  12. Hey This is Balu Again. I want to display three ads in blogger post.
    1. Below post title
    2. Middle of the post
    3. End of the post
    How can I do it. Please Tell Me.

  13. hi imaran, i have a suggestion on this script. me used this script on my blog [www.techintor.com] and the adsense ad displayed at the middle of my blog and everything gone correctly. But there was a problem that is the middle ad sometimes not displaying. [ most of the time the middle ad is not displaying].
    Please fix it. Due to this [ hidden some times] i was losing much ctr.
    hope you got it.
    thanks

  14. Hello, Imran. I want to display ads at the bottom of the post. I displayed ad middle of the post as you said. But visitors saying that we are uncomfortable. So I want to display the ad at the bottom of the post. How can I do it.
    Please tell me.

  15. hello admin how can we display 3 ads on every page of blog and our blog loading time just 2 sec or less. but after adding more ads site loading time increased why? please give some tips

  16. Thanks for the post and it works well with blogger. I am trying to do it with WordPress but it affects the responsiveness of the site in mobile view. Is there any way to make it work in WordPress?

  17. its really works! atually i have try a lot of code from other website, and all of them is a mess when its short posting.. (appear in the post some of the template code).. but this code really works fine!

  18. hi,

    I need to create my AdSense account through youtube or blogger.
    i tried to create through youtube but there are weblink required.

    what about blogger, can i create and Activate my Adsense a/c throught blogger ?

  19. i don’t have any website but i have blogger about tracellers.

    This blog is how to create Adsense account or just add Adsense advertise. ????

  20. thanks for your article, i was struggling to find this info on web from past 1 hour. now i have landed on right page.

  21. Today, while I was at work, my cousin stole my apple ipad and tested to see if it
    can survive a 25 foot drop, just so she can be a youtube sensation. My apple ipad
    is now destroyed and she has 83 views. I know this is entirely
    off topic but I had to share it with someone!

  22. Would making 8 or 10 thousand dollars 30 days
    from your simple blog change your life. Many individuals that
    are looking for ways to save money are finding out just how easy it really is whenever you buy generic.
    Writing blog posts can be a way to channel your understanding and creativity while using world.

  23. Mobile Version of script? Thank you very much for this script. It works fine on my blog on the desktop version, but not on the mobile version of the blog. The mobile version of the blog doesn’t show any advertisement in the middle of the post. Why? Thank you very much!

    Greetings

Comments are closed.