Saturday, 8 July 2017

How To Place Adsense Ads In Middle of The Post in Blogger

Getting huge income from Adsense depends on the traffic from your blog and the placement of the Ads so it can it be view-able for your blog visitors to view and click. Most people earn peanuts from Adsense because they fail to use the right Ad format and place ads where blog visitors always view. . There are strategic areas which may attract your visitor attention and as well increase the chances of getting your ads clicked. 
adsense-blogger 


One of such location, is the middle of your blog post. Regular blogger templates comes with the ease of placing ads on the header, footer and sidebar section of your blog without the option for the middle. This post was written to help you with placing any ad in the middle of your blog post.

How To Place Ads In The Middle Or Inside Of A blogger Posts

1) For you to place any ads in the middle of your blogger posts, you need to first parse the ad codes and convert it from HTML format to XML format

2) Then login into your blogger account, then select theme and then click on >>Edit HTML
3) Press Ctrl + F and search this code <data:post.body/> you will find more than one code. For some templates, it works on the second one but in my case, it was the third one.
4) Copy and replace  <data:post.body/> with the below code.

<div expr:id='&quot;post1&quot; + data:post.id'/>
<div class='googlepublisherads' style='margin:20px 0'>
<center>
--place ad here--
</center>
</div>
<div expr:id='&quot;post2&quot; + data:post.id'><data:post.body/></div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;post1<data:post.id/>&quot;);
var obj1=document.getElementById(&quot;post2<data:post.id/>&quot;);
var s=obj1.innerHTML;
var t=s.substr(0,s.length/2);
var r=t.lastIndexOf(&quot;&lt;br&gt;&quot;);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+4);}
</script>
5) Replace –place ad here– with your Ad code and save the template.

What makes this code special is that, you can change where you want the ads to appear in the post. All you have to do, is to change the number 2 highlighted in red to either 3 or 4 and see the magic. I hope this post helps any difficulties or questions regarding this, simply use the comment box and I will do my best to helps. 
Conclusion 
Placing Google Adsense ads in the middle of your blogger post helps your ads to be visible to your blog readers and also attracts them to click on your Ads. This methods doesnt only work for Adsense ads but other Ad Networks. 
If you have any questions, feel free to comment. 

SHARE THIS

Author:

I am that Tech guy online that loves to Share myTech ideas and latest gadgets reviews online

0 comments:

Your comments will be appreciated and replied on time. Spams will be deleted upon review.
Follow Us Now On Fbk