How to Put Google Adsense Just Below Post Title or Midle of Blogger Post

Share:
This way is the best to earn revenue through your blog. As we know very well that bloggers are paid on per click basis, So we have to try various ad placements on the blog to get maximum clicks on the ad units. For this best way to the placement of ads on the right where coverage is maximum.  
In this post, we will learn advanced practices to display ads in the right place to generate high revenue from your blogger and earn high money from your writing skill. After analyst on an experiment of increasing CTR of Ads. 

Mostly, There are two places in a post where there is high coverage of an ads unit.

  • Put Google Adsense Just Below Post title

  1.   Open your blogger dashboard >>
  2.     Go to >> Template  

(Don’t forget to Backup your current blogger template.)

      3.   Click on Edit HTML button.

4.    Copy all the template code and paste that into notepad.
5.    Press Ctrl+F and search for <data:post.body/>. You might find this code more than one time in code page but, you’ve to work with the second one.
6.    Now, place the this code just above _------__ <data:post.body/>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
PLACE YOUR AD CODE HERE
</b:if>
7.    Click on Save Template button.
8.    Done!!
Just title below Ads of ad unit means clear visibility to readers and more chances of getting clicks. 
Most of the blogger who works microsite templet, Even though ads just below post of the title looks like a charm but this doesn’t mean that it will work for you as well other works. So, If you want to find the best placement of AdSense ads for your blog, you have to experimenting by placing ads at various locations such as header, sidebar, footer, etc. most of time I try other blog monetization methods as well to effectively monetize own blog.

  • One of the most important locations in the middle of the post. 

This is also the best way to place Ads between Blogger Post because I think that if the deep reader may attract that Ads and get chances to clicks. So, Hereunder is a script that will show ads to Put the middle of the post automatically. This script finds the middle part of the blog post and automatically place an ad. For some blog like tech blogs where HTML code sharing is common will not work perfectly it might come between shared code. But on all other blogs, it will work perfectly.

This below code is for those who are using scripts to show the post excerpt on their home page.
CASE-I: For those who are using a post excerpt on the home page.
To use this script go to theme HTML and search for 
<data:post.body/> and replace this code with the above code, and hit the save button.
CASE-II: For those who are using default Blogger theme i.e. no post excerpt on the home page.
To use this script go to theme HTML and search for 
<data:post.body/> and replace this code with the following code,
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<data:post.body/>

</b:if>

Now paste the following code just above it, and hit the save button. 
<!-- Ads in mid of post: automatically --><b:if cond='data:blog.pageType == &quot;item&quot;'><div expr:id='"atmid" + data:post.id'/><div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at mid of the post --></div><div expr:id='"attop" + data:post.id'><div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at top of the post --></div><data:post.body/><div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at bottom of the post --></div></div></b:if> <script type="text/javascript">var obj0=document.getElementById("atmid<data:post.id/>");var obj1=document.getElementById("attop<data:post.id/>");var s=obj1.innerHTML;var t=s.substr(0,s.length/2);var r=t.lastIndexOf(" ");if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1);}</script><!-- Ads in mid of post: automatically -->

If you want to display ads on certain posts, you can use post label to control ads visibility. The following script may work for you.
To use this script go to theme HTML and search for <data:post.body/> and replace this code with the following code, and save the changes.
<!-- Ads in mid of post: automatically --><b:if cond='data:blog.pageType == &quot;item&quot;'><div expr:id='"atmid" + data:post.id'/><b:loop values='data:post.labels' var='label'><b:if cond='data:label.name == &quot;Label-Name&quot;'>
<div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at mid of the post --></div></b:if></b:loop><div expr:id='"attop" + data:post.id'><b:loop values='data:post.labels' var='label'><b:if cond='data:label.name == &quot;Label-Name&quot;'>
<div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at top of the post --></div></b:if></b:loop><data:post.body/><b:loop values='data:post.labels' var='label'><b:if cond='data:label.name == &quot;Label-Name&quot;'>
<div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at bottom of the post --></div></b:if></b:loop></div></b:if> <script type="text/javascript">var obj0=document.getElementById("atmid<data:post.id/>");var obj1=document.getElementById("attop<data:post.id/>");var s=obj1.innerHTML;var t=s.substr(0,s.length/2);var r=t.lastIndexOf(" ");if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1);}</script><!-- Ads in mid of post: automatically -->
Notes –
1. You can use three different labels for three different ads at the top, mid and bottom of the post. Must change value Label-Name with actual identify Label of your post.
2. Must change following three values with your three different/same ad code.
<!– Paste Ad code here: Appear at top of the post –>
<!– Paste Ad code here: Appear at mid of the post –>
<!– Paste Ad code here: Appear at bottom of the post –>

Put AdSense in the Middle of Blogger Post

If you want to place an ad at the custom location in between post, then there is also a solution for you. You have to place <– ads –> tag where you want to show the ad i.e. at the custom location in between your every post.
To use this script go to theme HTML and search for <data:post.body/> and replace this code with the following code, and save the changes.
<!-- Ads in mid of post: automatically --><b:if cond='data:blog.pageType == &quot;item&quot;'><div expr:id='"atmid" + data:post.id'/><div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at mid of the post --></div><div expr:id='"attop" + data:post.id'><div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at top of the post --></div><data:post.body/><div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at bottom of the post --></div></div></b:if> <script type="text/javascript">var obj0=document.getElementById("atmid<data:post.id/>");var obj1=document.getElementById("attop<data:post.id/>");var s=obj1.innerHTML;var r=s.search(/x3C!-- ads --x3E/igm);if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+13);}</script><!-- Ads in mid of post: automatically -->

Same as I explained above if you want to display ads on desire posts, you can use post label to control ads visibility. The following script may work for you.
If you want to place an ad at the custom location in between post, then there is also a solution for you. You have to place <– ads –> tag where you want to show the AdSense inside Blogger post.
To use this script go to Theme HTML and search for <data:post.body/> and replace this code with the following code, and save the changes.
<!-- Ads in mid of post: automatically --><b:if cond='data:blog.pageType == &quot;item&quot;'><div expr:id='"atmid" + data:post.id'/><b:loop values='data:post.labels' var='label'><b:if cond='data:label.name == &quot;Label-Name&quot;'>
<div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at mid of the post --></div></b:if></b:loop><div expr:id='"attop" + data:post.id'><b:loop values='data:post.labels' var='label'><b:if cond='data:label.name == &quot;Label-Name&quot;'>
<div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at top of the post --></div></b:if></b:loop><data:post.body/><b:loop values='data:post.labels' var='label'><b:if cond='data:label.name == &quot;Label-Name&quot;'>
<div style="clear:both; margin:10px 0;text-align:center"><!-- Paste Ad code here: Appear at bottom of the post --></div></b:if></b:loop></div></b:if> <script type="text/javascript">var obj0=document.getElementById("atmid<data:post.id/>");var obj1=document.getElementById("attop<data:post.id/>");var s=obj1.innerHTML;var r=s.search(/x3C!-- ads --x3E/igm);if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+13);}</script><!-- Ads in mid of post: automatically -->
Notes –
1. You can use three different labels for three different ads at the top, mid and bottom of the post. Must change value Label-Name with actual Label of your post.
2. Must change following three values with your three different/same ad code.
<!– Paste Ad code here: Appear at top of the post –>
<!– Paste Ad code here: Appear at mid of the post –>
<!– Paste Ad code here: Appear at bottom of the post –>

3. Add <– ads –> tag in each post in HTML mode.
hosting
Web hosting


Pint to Note: Before adding/injecting AdSense or some other ad codes in a Blogger theme, you have to Parse it otherwise it will not appear in the posts. To parse AdSense code you can use our AdSense code parser code.

Youtube Promotion

1 comment:

  1. Casino 2021 - A Look at 17 Casino Cities
    The 삼척 출장샵 Casino's most exciting experience is located in 당진 출장안마 our new location on West Virginia Highway 315. 구리 출장샵 At 논산 출장안마 a cost of $100/capita 안양 출장안마 $500,000, this hotel's

    ReplyDelete