How To Place Adsense Ads In Middle of The Post in Blogger-Any Template Work Around Method

86
788

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
Leave a Reply

avatar
84 Comment threads
2 Thread replies
2 Followers
 
Most reacted comment
Hottest comment thread
79 Comment authors
Blogspot_BloggerTechLekhakSlivana PanditBasudeviblog holly Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Noor
Guest

Great post bro. I was needing it from long period… Read more »

Surendra
Guest

wow nice post
thanks 🙂

suraj saini
Guest
suraj saini

is this trick follow blogger and adsense rules ?

Pavan
Guest

Thanks for sharing this post..! I have implemented this on… Read more »

Raju
Guest

Very Very Thanks I find Useful Posts in Your Blog

shakir namshad
Guest

HI, I followed you above steps to implement adsense code… Read more »

rajkumar
Guest
rajkumar

Do we need to convert the adsense code or we… Read more »

Danilo
Guest

Incredible! Hi guys! It’s possible to make this appear in… Read more »

Sam Livingston
Guest

Wow! I was searching for this post from a long… Read more »

vineet
Guest
vineet

Thanks for this amazing post. I have searching this type… Read more »

Charbens
Guest
Charbens

I have tried the code but it didn’t work for… Read more »

raju
Guest
raju

i want to insert it after 1st paragraph any suggestion

khappi
Guest

You Rock man.. Worked Like Charm.. 🙂 🙂 🙂

raju
Guest
raju

only in long post more than 1000 words appearing

murali
Guest

i want adsense to develop my website then the we… Read more »

Baltimore Memes
Guest
Baltimore Memes

Great tip. This worked for us. Thank you!

Cookie
Guest

This looks like just what I need, however I am… Read more »

raju
Guest
raju

pushing ads to middle earnings dropped over 30%, inserting ad… Read more »

Vishwanath
Guest

Thank you for this. It worked on my blogger site.… Read more »

Sachin Mathur
Guest

First of All Thanks bro for sharing this useful info.… Read more »

richard
Guest
richard

still it working for me man..help

Neha
Guest

Wow nice bro . Adsense placement is too neccessary for… Read more »

akhil
Guest
akhil

sir please help me how to add adsense heding as… Read more »

shraddha
Guest

lovely…post..its work on my blog..thanks alltechbuzz..my new blog is fastjobsupdate.

Chukwuka
Guest

Nice info bro.. it worked.. Really grateful.. keep up the… Read more »

Mukarram`
Guest

Thanks a lot bro for sharing this.

Mulyadi
Guest
Mulyadi

It Works.. Perfectly.. thanks 😉

Finance Blog
Guest
Finance Blog

Very Helpful article

Skelo
Guest
Skelo

Thanks for the update but the problem am having is… Read more »

Lakshman
Guest
Lakshman

wow nice post
Thank you All Tech Buzz

Naija Gym
Guest
Naija Gym

Hello.. Nice post. This post worked for me when i… Read more »

deepu
Guest
deepu

It is saying like this , Error parsing XML, line… Read more »

Rajeev joshi
Guest

That works on my site and very easily done as… Read more »

naad
Guest
naad

working perfectly

Balu
Guest

Hey! It’s working perfectly man. Thank you for the code.… Read more »

Balu
Guest

Hey! It’s working perfectly man. Thank you for the code.… Read more »

IngenuityDias
Guest
IngenuityDias

Very Good one tips this is what every blogger should… Read more »

Balu
Guest

Hey This is Balu Again. I want to display three… Read more »

sreenath
Guest

hi imaran, i have a suggestion on this script. me… Read more »

Yashwanth
Guest
Yashwanth

Is the same process in WordPress posts ?

Imran
Guest

You can use Plugins like Ad Injection or Quick Adsense… Read more »

Praneeth
Guest

Hey! I have tried the code you have placed above,… Read more »

balu
Guest

Hello, Imran. I want to display ads at the bottom… Read more »

abahi
Guest

hello admin how can we display 3 ads on every… Read more »

Shruti
Guest

Excellent post. Sir My ads are running well, But I… Read more »

Mathews
Guest

Thanks for the post and it works well with blogger.… Read more »

รับซื้อ Patek Philippe
Guest

Thanks to my father who told me regarding this webpage,… Read more »

sandeep
Guest

thanks for providing information regarding how to insert the ad… Read more »

sam
Guest
sam

i put codes and all according to your post but… Read more »

fais
Guest
fais

its really works! atually i have try a lot of… Read more »

Sravani Yarlagadda
Guest

Thanks a lot. I’m using this on my blog.