Put Adsense in the Middle of Blogger Post: Maximize revenue


Every newbie blogger start blogging with the free blogger service by Google and i think it’s the great choice for start up. One more advantage is that you don’t need to buy the Hosting Space as its free and you get the up and running blog in just few minutes. But It requires more customization if you want to put the HTML Ad or banner code inside the Blog post. You could put it manually but let me give you the easy steps to Put the Adsense or Any other ad code manually by just Tweaking the HTML of the code. But Before Making any changes to the HTML just try to Backup the Blogger Template First. Because little wrong change might ruin your Template.
NOTE – The Code given below is the Mixed representation of the Ad unit. Means By default your Ad will shown Above the post and whenever you want to display ad. in the Middle of the Post then you need to Add one line in HTML. After adding that one line the Ad won’t appear in the Top but it’ll be available in between the post where you placed the code.

If you want to Place the AdSense only Below the Post Title then follow the Guide here – Put Adsense Below Post Title in Blogger

After successful backup of the Template. Click anywhere inside the HTML code and Press Ctrl+F to find the <data:post.body/> section of the Code. Search for it and you would get multiple entries of it. Locate to the third <data:post.body/> section and Replace <data:post.body/> it with the Below HTML snippet.

<div expr:id=’&quot;adsmiddle1&quot; + data:post.id’/>
<b:if cond=’data:blog.pageType == &quot;item&quot;’>
<b:if cond=’data:blog.pageType != &quot;static_page&quot;’>
<div style=’clear:both; margin:10px 0′>
<div style=’float:left;’>
<div expr:id=’&quot;adsmiddle2&quot; + data:post.id’>
<script type=’text/javascript’>
var obj0=document.getElementById(&quot;adsmiddle1<data:post.id/>&quot;);
var obj1=document.getElementById(&quot;adsmiddle2<data:post.id/>&quot;);
var s=obj1.innerHTML;
var r=s.search(/\x3C!– adsense –\x3E/igm);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}

Place the Your Adsense code at the Red Line Mentioned Above between the Div section. I aligned the Adsense Code in the Left of the Page. You could set it as per your choice. Now You are Almost done and Save the Template.

Now Final step is to Place the Adsense Section in each post while publishing new post. Place the small Snippet <!– adsense –> in the post HTML where you want to display the Adsense.

Now you are done and View the Published post. If you are not adding the Above code in the HTML then the default Ad will displayed at the Top of the Post. So its the Mixed HTML modification to Display the Adsense as per your need.

Hope you won’t have any trouble on implementing the stuff. If you have any doubt regarding this guide and if the code doesn’t works for you then Feels free to ask or comment below.

Thanks !

How to put Google Adsense ads below post title in Blogger

Adsense ads placement plays vital role to maximize the ad revenue. Default Blogger allows to place the ad code on the several places like sidebar and below the post but it won’t allows you to place the ad inside the post. Let me walk you through the step-by-step guide on placing the adsense ad code below the Post title. After Placing ads below the Post Title, your final blog post looks as shown in the image below.

Adsense ad code needs to be converted before placing it to the Blogger Template otherwise your ads won’s shown up.
Before moving directly too the Blogger HTML editor i suggest you to Backup the existing template first.

See How to Backup the Blogger Template.

After you done with that move to the Blogger Dashboard > Template > Edit HTML. Now here inside that search for the below code. Press ctrl+f to search.


There are multiple entries of that code. I have placed the code below the second entry of that code. for some templates it work for below the first <data:post.body/> entry code.

Paste the Below block under the above code.

<b:if cond=’data:blog.pageType == &quot;item&quot;’>
<div style=’float:left; margin-right:15px;’>                   
Your Adsense Ad. Code Goes here.                                

Here, first line suggest that the ad code will appear on the Post pages. You can put the ad code on the left side or right side. Here we have putted in the  left side as show in second line. Third line would be the your Parsed Ad code. Paste it there.

Save the Template and view the changes. Adsense live ads will start appearing below the Post pages.

Facts about Adsense CPC and Blocked Ads

Adsense is the very popular Ad monetize program by Google. Advertisers who wants to promote their product or service, signup through Google Adwords program and decide how they want to display ads according to Banner and link ads size and then also specify how much they want to pay per click, when user click on their Ads. So Advertiser decides the CPC amount as per the competition they had. If the competition is very low then they pick the lowest budget and CPC to well perform the ad in less budget. Its the basic idea on how advertising happens.


Now lets move to the point on some real facts about Adsense Ad serving and why you should not block the Adsense ads even they are of low CPC. People sometimes gets the low CPC (0.01, 0.05, 0.08) when user click on the ad. But getting low Adsense CPC does not mean that you are not displaying the best Adsense Ads. Its upto google how they display Ads. But i want to recommend you check Several reasons for Irrelevant Ads Appear on your Page. By Following this guidelines you may allow your site to display better Adsense ads. Its all depends on Niche of the blog on how you get the CPC (Cost Per click) but you have to make sure that you are not blocking any pages in robots.txt for Ads to be appear.

Adsense Never Display Irrelevant Ads if you use Ad. Targeted Niche –

Adsense Ads are displayed on your website according to the Niche of your Blog contents. So, if you are having the very high quality and competition niche then you gets the best relevant ads to your content but if you are having the very worst niche that not targeted by any of the Advertiser then chances of getting relevant ads are quite low. Which in turn gives you some random low quality Ads to your blog. So Its best idea to pick the high quality Ad. Targeted niche.

Not Relevant Ads. Means not High CPC –

When your site displaying irreverent Ads due to the worst content on the blog then you might not get high Adsense CPC because there is no Advertiser related to your content. Adsense Serves best Ads to the relevant content such that it have more chances to be clicked by viewers. Even you won’t get the high Click through rate (CTR) because people only interested in Ads which best fits the blog content and interest.

People Claiming that they are getting High CPC after blocking the LOW CPC Ads but the fact is that they are Getting high CPC due to the following reasons

  • High quality Ad. Targeted Niche (Help to serve high competition ads.)
  • Traffic from the USA, UK, CANADA (Advertisers Spent more on that Traffic)
  • Traffic Directly from Search engine (serve most relevant content Ads.)
  • Type of the Ads Used in the Blog (Mixed Image and text give high CPC)
  • Ads served based on User Browsing History.
  • Larger Ad unite always gives more per click (Cover major area of blog)
  • Lesser Ad unite gives better CPC (AD unite loaded first in blog have high Advertising Cost) –
  • Don’t Trust me – Try it Out by minimizing Ad unite per page.

Note – If you Have Blocked the Some of the Adsense Ads then you might face the following Issue.

Blog Run Out of Ads –

Your blog might run out of Ads if the Advertisers budget get reached the daily limit and if you blocked some of the Ads even they are of low quality then there is no chances to be appear those ads when your blog not serving any Unblock ads due to budget limit of Advertisers. So you gets the less pageviews even your blog had the maximum traffic. So its recommended to display All the Ads in your Worst Niche to Maximize Pageviews and Revenues.

I had experience on the Same. Once i blocked all the Low quality ads on my blog then i got the notification from the Google to Unblock all the Ads that i have blocked such that they can serve better ads related to contents of the posts and niche. I then unblocked all the Ads and realized that it gave me more pageviews. So i think my blog was not serving the ads at the end of the day when Advertisers budget limit reached.

One more thing i learnt is That, We are Blocking the Ads categories Even they are not displaying in our Blog and far distinct from the Niche type. Those ads are served only when nothing is to be served by Adsense. So its better to allow all ads such that we can’t run out of ads and can maximize the revenue.
Hope you got better understanding on Adsense CPC and Ad serving. Give your Ideas on the Same. Any comment would be appreciated !