How To Add AdSense Ads In The Middle of Blogger Posts

In this post this time we are going to discuss how you can install or rather say to add Adsense Ads in the middle of your blogger post. (and by the way as you read this, make sure you go step by step to catch well) Ads inside blog posts tend to have more CTR since they interact more responsively with blog content therefore giving ads results which are rather related to the content itself.

How to place Adsense ads in the middle or inside a blogger blog posts

  1. First of all you will always need to login into your Google Adsense and create an ad unit code that you want to add in the middle in your blogger post.
  2. The back to blogger account login then go to template button >then to> edit HTML
  3. The HTML code section will open then carefully click anywhere inside the codes, and then use CTRL+F to bring a search box. 
  4. Inside the search box copy and paste <data:post.body/> and press enter to search. You will find more than one code, but you need to stop at the second one.
  5. Copy the below code and replace <data:post.body/> with it.
<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 the Google Adsense converted code and save the template.

And now all you need to do is to add Adsense annotation inside the post itself. This is achieved when you have a written post use the HTML section instead of the Composer section and add the code below.

<!-- adsense -->

For example 

This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.<br /><br /> <!-- adsense -->This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.

Follow example in this photo…

Note that,  if you don’t add the annotation the ads will appear below the post title by default. Furthermore you can put any other PPC ads network such BuySellAds, bidvertiser, yahoo or custom banner to replace the Google Adsense.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *