How To Place Ads In The Middle Of A Blogger Posts

Generating huge revenue from your blog when run a pay per click advertising programme very much depends on the number of clicks your get. Be it Adsense or any other advertising network, the right ad placement is the key to achieving this. There are strategic areas which may attract your visitor attention and as well increase the chances of getting your ads clicked. 

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 You Can 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. You can do that by visiting this web address

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; +'/>
<div class='googlepublisherads' style='margin:20px 0'>
--place ad here--
<div expr:id='&quot;post2&quot; +'><data:post.body/></div>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;post1<>&quot;);
var obj1=document.getElementById(&quot;post2<>&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);}
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. 

No comments