Place Ad Here
How To Place Adsense Ads Automatically In Middle, below post title and below post body of All Your Posts In Blogger :
Login to Your Blogger account @blogger.com
But first, make sure you backup your blogger template so you can easily restore it if any error occurs on the process of implementation.
Go to Template >> Edit HTML
If you're using your Smartphone to edit your blogger source code then use this
best source code editor for Android.
Search For Below Code in your template.
<data:post.body/>
When you search for the code you will get multiple codes that are similar to the above code.
So we will use some trick to find the particular code that will work perfectly.
When you search for that code look for the one that has the below code above it.
This way:
<div class='post-body entry-content' expr:id='"post-body-" + data:post.id'>
<data:post.body/>
Or that's close to SHARE BUTTON and RELATED POST this the best option.
If it appears more than once use the second one or try the two.Step 3:
Replace The Place Your Ad Code Here Text With Your Adsense Ad Parsed Code in the above code and save your template.
Today l want to write a tutorial on How To Place Adsense ad In Middle, Below Post Title and Below Post Body Automatically On Blogger.
I wrote an article in how to place Adsense ad at the middle of blogger post automatically and also wrote another article on how to place AdSense ad below post title and below post body.
These are great places you can place your AdSense ads to increase your AdSense earning potential dramatically.
Placing AdSense ads in middle, below post title, and below post, the body is very important because these are the most used places your blog users frequently move around on.
They increase the CTR of your Adsense earning power thereby increasing your AdSense earning.
This tutorial is a tricky one but with little effort, you can achieve a great return on your earning.
Blogger HTML does not have plugins for placing AdSense ads on some basic area of our blog.
But with the help of some important scripts, we can achieve our aims.
In WordPress, we have many AdSense ad plugins which can help you place ads on middle, below the title, and below post body.
Without wasting much of your time lets see the process of placing AdSense ads on middle, below post title and below post body below.
How To Place Adsense Ads Automatically In Middle, below post title and below post body of All Your Posts In Blogger :
Step 1:
Login to Your Blogger account @blogger.com
But first, make sure you backup your blogger template so you can easily restore it if any error occurs on the process of implementation.
Go to Template >> Edit HTML
If you're using your Smartphone to edit your blogger source code then use this
best source code editor for Android.
Step 2:
Search For Below Code in your template.
<data:post.body/>
When you search for the code you will get multiple codes that are similar to the above code.
So we will use some trick to find the particular code that will work perfectly.
When you search for that code look for the one that has the below code above it.
This way:
<div class='post-body entry-content' expr:id='"post-body-" + data:post.id'>
<data:post.body/>
Or that's close to SHARE BUTTON and RELATED POST this the best option.
If it appears more than once use the second one or try the two.Step 3:
Note: it works with all ad format when you implement it and the ad is not showing give it the time it will show up.
Replace The above Code In Red With The Below Code.
<div id='jobmiddlenew'> Place Your Ad Code Here
<data:post.body/> </div>
<b:if cond='data:blog.pageType == "item"'>
<style> #addcodemiddle{display: none;} </style>
<div id='addcodemiddle'> Place Your Ad Code Here </div>
<script type='text/javascript'> var str1=document.getElementById("jobmiddlenew").innerHTML; var str2=str1.length; var str3=str2/2; var substr = str1.substring(str3, str2); var n = substr.search("<br>"); if(n<0) { n = substr.indexOf('.'); if(n<0) { n=0; } var firsthalf = str1.substring(0, str3+n+1); var secondhalf = str1.substring(str3+n+1, str2); } else { var firsthalf = str1.substring(0, str3+n+4); var secondhalf = str1.substring(str3+n+4, str2); } var addcode="<center>"+document.getElementById("addcodemiddle").innerHTML+"</center><br/>"; var newbody=firsthalf+addcode+secondhalf; var strnew=document.getElementsByClassName("post-body entry-content"); strnew[0].innerHTML=newbody; document.getElementById("addcodemiddle").innerHTML=""; </script>
</b:if>Place Your Ad Code Here
<data:post.body/> </div>
<b:if cond='data:blog.pageType == "item"'>
<style> #addcodemiddle{display: none;} </style>
<div id='addcodemiddle'> Place Your Ad Code Here </div>
<script type='text/javascript'> var str1=document.getElementById("jobmiddlenew").innerHTML; var str2=str1.length; var str3=str2/2; var substr = str1.substring(str3, str2); var n = substr.search("<br>"); if(n<0) { n = substr.indexOf('.'); if(n<0) { n=0; } var firsthalf = str1.substring(0, str3+n+1); var secondhalf = str1.substring(str3+n+1, str2); } else { var firsthalf = str1.substring(0, str3+n+4); var secondhalf = str1.substring(str3+n+4, str2); } var addcode="<center>"+document.getElementById("addcodemiddle").innerHTML+"</center><br/>"; var newbody=firsthalf+addcode+secondhalf; var strnew=document.getElementsByClassName("post-body entry-content"); strnew[0].innerHTML=newbody; document.getElementById("addcodemiddle").innerHTML=""; </script>
</b:if>Place Your Ad Code Here
Step 4:
Remember to parse your AdSense codes before placing them where it's required.
Replace The Place Your Ad Code Here Text With Your Adsense Ad Parsed Code in the above code and save your template.
If you try this trick and it helped you achieve your aim please do share it on social media for others to benefit too because there's love in sharing and also leave feedback on the comment box below thanks.
Place Ad Here
Place Ad Here
Join Our Free Newsletter
Sociliaze with Us

5 Comments
Click here for CommentsHelped me a lot. thanks for sharing.
ReplyYour welcome PabanZone am glad it helped you out.
ReplyPrimary education in Nigeria
ReplyI checked your profile and noticed you blog about primary education in Nigeria that's great keep it up.
ReplyI checked your profile and noticed you blog about primary education in Nigeria that's great keep it up.
ReplyThank You For Sharing Your Feedback, We're Happy You're Here, Because We Love To Help Others. I appreciate your comments. ConversionConversion EmoticonEmoticon