Sunday 15 October 2017

How To Place AdSense Ads in the Middle of Blogger Posts

How To Place AdSense Ads in the Middle of Blogger Posts

The revenue from Google Adsense truly depends on the number of clicks on the ad, while the number of clicks depends on the ad placement that we put on our blog.

So, place the ad in a strategic location, where to attract the visitor attention and have more chance for visitors to click the ad. Usually, the traditional ad placement like in sidebar, header, and footer doesn’t get more clicks than putting the ads in contents. 

In blogger post, we can put the ad below the title and the footer easily without any script, but in today’s post, we are going to learn how to place AdSense ads in the Middle of blogger posts or anywhere in the blog post. 

If you have a WordPress blog then you can do this job by optimized plugins and you know that blogger doesn’t support the plugins, but in this post, I want to share a script with you which will help you place Google Adsense ads in the middle of the blogger blog post.

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

First of all, login into your Google Adsense and create an ad unit code that you want to add in the middle in your blogger post.

The second step login into blogger account, then goto template, Backup your template just incase of any mistake, so you could still import it back

After that still on the Template: Click on edit HTML

After the opening, where you see all coding, Press CTRL + F inside the template editor and it would bring up a Search Bar, then search for <data:post.body/>  you would see 2 to 3 of the code, but the one we need for it to work is the 2nd <data:post.body/> so search well, till you find the second one.

Copy the below code and replace is it with the 2nd <data:post.body/> that you found

<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 the Google Adsense converted [Parsed] code. Parse your code HERE and then Place the parsed code and save the template.

Now view your blog any of your post and you would see that you have successfully added Google Adsense ad in the middle in the blogger post.

Note:

Your advertisement will appear after the first </br> in the blog post, so this is mandatory to have a </br> tag in the blog post. If your post doesn’t have any </br> in a post, then the ad will appear in below title by default. 
You can put any other PPC ads network such Contentad, Infolinks, bidvertiser, yahoo or custom banner instead the Google Adsense.

So, this simple but very important trick which I shared with you. After putting the Adsense ad in the middle of posts, you will notice the significant increase in your earnings in a few days. 

More importantly, you don’t need worry about the Google’s terms violation because you didn’t change the ad code structure..

Any issue while setting up do give us feedback, so we can help out..

2 comments:
Write comments
  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information. nagapoker

    ReplyDelete

Recommended Posts × +