Move Blogger Inline Ads Between Posts to Inside Within Post Position

The new Blogger widget based template that built on XML specification has a feature to add Google AdSense ad unit inline between posts. These inline ads appear between 2 blog posts on homepage, archive and category or label pages, or after the blog content when the single post is viewed individually. However, the placement is kind of awkward and low performing in term of click through rate (CTR).

A lot of bloggers have put Google AdSense ad code inside the post or wrap the ad unit around blog post by editing template’s HTML to insert modified ad code manually. Some users may feel uneasy on modifying the AdSense ad code as it may violates AdSense TOS. Anyway, there is another workaround to put AdSense ads in Blogger posts, by using trick to move or duplicate built-in inline ads between posts block to inside the post section.

  1. To use the trick to move around AdSense ad unit added by Ads Between Posts, enable and configure inline ads in Blogger using this guide. Note that you must login to your AdSense account from Blogger to establish access authentication. If you don’t have AdSense account yet, you can click on Sing Up button to register for one.
  2. To display this ad within blog post also, click on Template tab, and then click on Edit HTML sub-tab link to open Blogger HTML code template editor to edit the contents of your template.

    Blogger Edit HTML

  3. Backup a copy of your template by click on Download Full Template link, in case it’s is needed be uploaded to Blogger server to recover the template in the event of mistake or corruption.

    Blogger Download Full Template

  4. Click to tick the Expand Widget Templates checkbox.

    Blogger Expand Widget Templates

  5. Find the line with the following text:

    <data:post.body/>

    And paste the following block of text before (for ad position before content) or after (for ad position after content) the line above:


    <b:if cond='data:post.includeAd'>
    <data:adEnd/>
    <data:adCode/>
    <data:adStart/>
    </b:if>

    Note that maximum of 3 AdSense for Contents (non Link Unit type) ads are allowed on each page.

  6. If you want the AdSense ads inside blog post to appear only when individual blog post is visited, and not on homepage, category or archive pages, wrap the following lines to before and after code added above

    <b:if cond='data:blog.pageType == "item"'>
    </b:if>

    The whole block added will look like below:


    <b:if cond='data:blog.pageType == "item"'>
    <b:if cond='data:post.includeAd'>
    <data:adEnd/>
    <data:adCode/>
    <data:adStart/>
    </b:if>
    </b:if>

  7. After enabling Show Ads Between Posts in step 1, you will notice that AdSense ads will be shown between posts on all multiple blog posts page, and also after the article on individual single post view. If you don’t want these ads to appear, i.e. to move built-in inline ads to within post, the locate the following block of text which is same with the one we added above:


    <b:if cond='data:post.includeAd'>
    <data:adEnd/>
    <data:adCode/>
    <data:adStart/>
    </b:if>

    And delete these code from template. Note that we have just added a same block of code from step above, so do not remove the newly added code, but the existing code in the template.

    If you still want the AdSense ad unit to appear between posts when visitors view your blog homepage, label or category pages or archive pages, wrap the code above on top and bottom with the following 2 lines:

    <b:if cond='data:blog.pageType != "item"'>
    </b:if>

    so that it looks like the following:


    <b:if cond='data:blog.pageType != "item"'>
    <b:if cond='data:post.includeAd'>
    <data:adEnd/>
    <data:adCode/>
    <data:adStart/>
    </b:if>
    </b:if>

    Note that the two lines should be added to the existing block of code in template, not the block which we added in step above.

  8. Click on SAVE TEMPLATE button to save the new hacked template. Now the ad should be appear inside blog post without actually modify ad code. You can also use the same hack theory above to place the ads on different location.

10 Responses to “Move Blogger Inline Ads Between Posts to Inside Within Post Position”

  1. Sebb
    September 18th, 2009 23:49
    10

    Thanks for this post, made my life easy.

  2. Subby
    August 19th, 2009 22:51
    9

    Hi, how can I display google ad after specific number of posts and the number of ads displayed after activating the blogger inline ads? Thanks in advance

  3. How to insert AdSense, Chitika or any other Javascript code into new Blogger template | WEBMASTER - SEO - TIPS - TOOLS - MARKETING
    June 24th, 2009 15:57
    8

    [...] – Edit – Show Ads Between Posts). After that you can move these ads position using this technique. But sometimes it is not enough: for example you cannot specify channel, you cannot insert AdSense [...]

  4. Jane
    October 4th, 2008 10:42
    7

    Thanks so much for your guide. I have applied the technique.

    I am wondering if you are able to assist on the following issue: I have a warning sign that appears at the left bottom corner that says that ‘Done, but with error on page’ on my website: http://www.asiaworkingparent.com. Would you be able to diagnose? not sure if it is related to adsense.

  5. Yamato
    September 29th, 2008 00:39
    6

    thanks!

  6. How to insert AdSense, Chitika or any other Javascript code into new Blogger template | adsensecool.com
    September 28th, 2008 01:41
    5

    [...] – Blog Posts – Edit – Show Ads Between Posts). After that you can move these ads position using this technique. But sometimes it is not enough: for example you cannot specify channel, you cannot insert AdSense [...]

  7. janaxx
    August 9th, 2008 03:27
    4

    cant locate post body tag in my template..

  8. Where do I put my ad codes in the HTML box on Blogger? - Bloggeries Blog Forum
    June 13th, 2008 01:04
    3

    [...] expand widget and look for the codes where you wanted to put the codes.. <dataost.body/> Move Blogger Inline Ads Between Posts to Inside Within Post Position

  9. microsoftmic
    February 5th, 2008 12:03
    2

    they had I didn’t and saw and climb in a hollow more than came by themselves

  10. spiderman05
    December 4th, 2007 02:58
    1

    Very interesting post and a very clean way to modify the location of Adsense ads. I applied it to my blog and it works like a charm.

    Thanks.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

ad that serves between posts in blog - adsense inline posts blogspot - adsense inside post blogger - display ad blogger - how to position the ads in blogger blogs - i cant show ads between post - ads between posts, blogger - put ads between posts - blogger ads between posts - placing ads on blogger - step by step show ads between post for blogger - delete ads between the post - - ads in posts in blogger - ads after blog post - blogger ads between posts how to - ads after posts blogger - how can show the inline ads between my post - insert adsense inline blogger contents - my adsense ads appear after the box comment - "inline ads" blogger - how to place ads after each blogger post - insert ads within post blogspot - place ads in posts blogger - adding adsense - blogger ads - google ads post into blogger new post -