How To Display AdSense ads anywhere of Inside Blog Post?

How To Display AdSense ads anywhere of Inside the Blog Post? Apply the trick to place your AdSense ads banner anywhere of your Blog Content area.

This is about an old trick that how to display your AdSense ads inside the blog posts. This post is to cover all the AdSense related information. Though I am trying to cover all the topic in my blog so you will get some basic topic that already most of the blogger knows.

How To Display AdSense ads anywhere of Inside Blog Post?

But this is very effective trick for the newbie. Placing AdSense ads inside the blog posts can generate more click on it, which means more revenue for you. So just follow the below steps to place the AdSense ads inside anywhere of your blog posts.

Step #1: Log in to your blogger account and Click on Template ->Edit HTML-> Proceed

Step #2: Click on  Now click on -> Template -> Edit HTML-> 

Step #3: Now find <data:post.body/> by Pressing Ctrl+F (Windows) or CMD+F (Mac)    

You will find 3/4 time this code go for second one.

Step #4: Now Replace <data:post.body/> with below code.

<div expr:id='&quot;adsmiddle1&quot; +'/>
<div style='clear:both; margin:10px 0'>
<!-- Place Your Ads Here (Already Parsed) -->
<div expr:id='&quot;adsmiddle2&quot; +'>
<script type='text/javascript'>
var obj0=document.getElementById(&quot;adsmiddle1<>&quot;);
var obj1=document.getElementById(&quot;adsmiddle2<>&quot;);
var s=obj1.innerHTML;
var\x3C!-- adsense --\x3E/igm);
if(r&gt;0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}


  • Replace <!-- Place Your Ads Here (Already Parsed) -->with your AdSense Code.

Learn how to display AdSense ads anywhere of the Blog posts?

For display ads you have to use the below code. That mean wherever you place the below code there your AdSense code will display.

<!-- adsense -->


  • Change left with right or center
  • Change right with left for margin

Congratulation you have successfully applied the trick.

You can show up AdSense ads anywhere within your Blog content. Such as, after first paragraph or second paragraph. And the benefits of using this trick it will generate more income from your ads. Because visitors will prompt to click on ads when it will display inside content area. Thank you.
Unknown says: 7/29/2015

this trick is not working

BloggerSpice says: ADMIN 7/29/2015

Hi Chauhan.. I am using this trick in my Blog. And all of my designed Blog added this trick. you must find the appropriate code--


because you will find above code 3/4 times in a Blogger template.

Unknown says: 7/30/2015

ya now working thanks again

Unknown says: 7/30/2015

but only one ad showing i have added this code 2 or 3 times in my post

BloggerSpice says: ADMIN 8/01/2015

Yes only 1 ads unit will display. because you are using ad banner on other places of your site, Google AdSense allow only 3 banner ads per site.

SamaraSsr says: 12/31/2015

when i use this procedure my adcode is not coming at the post middle, but below the title of the post.

BloggerSpice says: ADMIN 12/31/2015

I think you didn't select the right <data:post.body/>

because without right code AdSens won't display. After selecting the right code replace it. Instruction is on Step 4. the switch to HTML view from your Blog post editor and place the below line for displaying the ad banner.

<!-- adsense -->

this is very simple. I am using this trick in my Blog.

SamaraSsr says: 12/31/2015

i got three occurrences of i selected the third one.

and another thing, do i need to insert every time inside new post html?

BloggerSpice says: ADMIN 12/31/2015

To make any changes on your template please take backup first.
Yes every time you have to put the code. Because this widget for displaying ads anywhere within the Post. So not fixed.

<!-- adsense -->

Thank you.

Unknown says: 12/31/2015

ভাই, আমার সাইটে হেডারের যে জায়গাটা অ্যাডের জন্য খালি রাখা হয়েছে সেখানে কি নিজে কোন ব্যানার বানিয়ে অন্য কোন সাইটের লিংক শেয়ার করতে পারবো?

BloggerSpice says: ADMIN 12/31/2015

Yes ofcourse.. Please use below code for adding ad banner

<a href="Destination Link"><img alt="Image Title" src="Image URL" height="200" width="158" /></a>

Thank you. ^_^

JhonnySan says: 5/19/2016

Brother, as you can center the notice. And that piece of code must be added. Tell me something, notices can go into different parts.

BloggerSpice says: ADMIN 5/19/2016

Hi Jhonny..You can search different notification widget in my Blog. Please visit the below URL for notification widget. If you search throuhg search box then you will find more widget. thank you.

JhonnySan says: 7/28/2016

Mohammand, you could put this system two blocks of adsense ads. But the second box warning that only comes when I decide.

BloggerSpice says: ADMIN 7/31/2016

Hi Jhonny, Its all about number of ad banner. You can show maximum 3 banner ads per page. so if in your post page has 4 adsense script then it won't properly work. And you can display only only one ads at the middle of the Blog post by using the above script. I am using this script in my Blog. But you can also display another ad banner at the end of the post if you are displaying only 3 ad banner in your post page. :wr

Contact Form


Email *

Message *