blogger middle ad

 

Learn how to put ad in the middle of every post in blogger blog

Advertising is one of the ways which you can make money from your blog. When you want to place ads on your blog, you will have to locate the best place to place it where it can be easily seen by every visitor that visits your blog.

The middle of your post is one of the best places where you can place an ad so that it can be easily seen by all of your visitors. When they are reading any of your posts, they will see your ad at the middle of the post, they can easily click on it to know what it is all about.

In this post, I will show you how you can put an ad at the middle of all your post in blogger.If you have something very interesting to offer to your visitors, the middle of your post is the suitable position to place the advert.

Must read  how to add a widget above blogger post in blogger

 

How to put ad in the middle of your blogger posts

To put an ad in the middle of your blogger posts, follow the procedure below.

  • Go to themes and edit the html
  • Search for this code

<data:post.body/>

You will see the code two times, just go for the second one

  • Replace the code with the one below 


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

Replace  –place ad here– with your banner code

Then save your template 

After following the above tutorial, you will succeed in placing your ad in the middle of your blogger post.

4 Comments

  1. Affordable Dissertation UK Reply

    I believe that following your guidelines, I will be able to have a success adsense enabled blog with best ads placements.

    • Johnpaul Onwueme Reply

      Hello affordable, this guide will help you with your adsense placement at the middle of your posts.

Write A Comment