How To Add AdSense Ads In the Middle of Post In Blogger – Works in Any Template

How To Add AdSense Ads In the Middle of Post In Blogger

Placing Ad Units in the Middle of Blog Posts will give you High CTR and more exposure from Visitors, Which will also eventually increases your Earnings.In WordPress, there are many Ready to use Plugins for Adding Ads inside or Middle of Posts. But to add Ads in the middle of Posts in Blogger is a bit tricky task.

Today in this Article, I’m sharing a Custom developed Script for Blogger, By which you can actually Show Ads in Middle of Posts in Blogger.It is completely easy to use, all you want to do is to Replace an existing code from your Template with the below given Code.

Check: How To Add Adsense Ads Below Post Title In Blogger Post

How to Place Ads in Middle Of Post Blogger

Login to your Blogger Account

Step 1: Go to Templates > Edit HTML

Step 2: Search for below code in your template.


 You can use Ctrl+F function to launch Search Box inside Template Editor

You will find this code multiple times in your Template, You have to select second or Last occurance of the same code.

Step 3: Replace the above Code with the below Code.

<div id='jobmiddlenew'>



<b:if cond='data:blog.pageType == &quot;item&quot;'>

#addcodemiddle{display: none;}
<div id='addcodemiddle'>

Place Your Ad Code Here


<script type='text/javascript'>

var str1=document.getElementById(&quot;jobmiddlenew&quot;).innerHTML;
var str2=str1.length;
var str3=str2/2;
var substr = str1.substring(str3, str2);

var n =;&lt;br&gt;&quot;);
n = substr.indexOf('.');
var firsthalf = str1.substring(0, str3+n+1);
var secondhalf = str1.substring(str3+n+1, str2);


var firsthalf = str1.substring(0, str3+n+4);
var secondhalf = str1.substring(str3+n+4, str2);
var addcode=&quot;<center>&quot;+document.getElementById(&quot;addcodemiddle&quot;).innerHTML+&quot;</center><br/>&quot;;

var newbody=firsthalf+addcode+secondhalf;

var strnew=document.getElementsByClassName(&quot;post-body entry-content&quot;);




Step 4: Replace “Place Your Ad Code Here” with your AdSense Ad code.

If you are facing any problem let us know, Comment down Below your Doubts. 🙂

Check: A Complete Guide to Optimize Google Ads and Maximize your AdSense Earnings
            Top 5 Most Paying URL Shortener Sites to Make Money Online
            How to Get A Website/Blog Approved and Listed in Google News Tips & Tricks
            How To Setup AdSense Page-level Ads in WordPress & Blogger Blogs?

About the author

Astro Joseph

Hey Guys, I'm Astro K Joseph, Founder and CEO of IPEE World from Kerala, India. I started this blog as a passion and it now empowering thousands of readers around the globe.Here I usually share stuff related to How To, Android, Windows, Facebook, WhatsApp, Blogging, etc.

Leave a Comment