Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents

There is trick to add Google AdSense and other advertising network such as AdBrite ad unit right beside and inside within Blogger post content, so that the ad block will appear wrapped and floated inline to the top left or top right next to the blog text. If you do not like this layout and dislike the prominent location the ads are displayed, there are other places within blog post to put the ad code.

The guide below provides tips and tricks on where should the parsed HTML ad code (after replacing several special characters with HTML code) be pasted and inserted in the Blogger XML-based template. In essence, the steps are exactly the same when positioning the ad next to and within post content, except that the text string to search (where to paste the ad code) is different.

To recap, go to Blogger Template tab for the blog you want to change, then click on Edit HTML. Remember to tick Expand Widget Templates check box, and perform the backup.

Wrap Around Next to the Post and Float to Left or Right

Blogger AdSense Float LeftBlogger AdSense Float Right

Refer to this guide.

After Post Title Before Post Contents

Blogger AdSense at Top

The ad banner will appear below post title but above and before the start of blog content. It’s actually exactly the same with tip above to wrap AdSense around the post, except that now the ad unit does not float but instead been place at the center without wrapping, and thus pushing content below it.

Search for the line of:

<p><data:post.body/></p>

Paste the parsed Google AdSense ad code inside <center><div> and </div></center> right before the above line so that it looks like below after change:

<div class=’post-header-line-1′/>

<div class=’post-body entry-content’>
<center><div>[parsed Google AdSense ad code]</div></center>
<p><data:post.body/></p>
<div style=’clear: both;’/> <!– clear for photos floats –>
</div>

After Post Content Before Footer Credits

Blogger AdSense at Bottom

The Google AdSense ad unit or other display ads banner will appear at the bottom of the blog post, after the end of content and just before the ending credits, within inside the post.

Search for:

<div class=’post-footer’>

Paste the parsed Google AdSense ad code inside <div> and </div> right before the above line so that it looks like below after change:

<div class=’post-body entry-content’>
<p><data:post.body/></p>
<div style=’clear: both;’/> <!– clear for photos floats –>
</div>
<div>[parsed Google AdSense ad code]</div>
<div class=’post-footer’>

To center the ads unit, add the wrapper of <center> and </center>.

After Footer Credits

Unlike the above where the ad unit appear before the credit right after post content, this time the ad unit will appear after the credit for the post is displayed. The easiest way to achieve the task is using built-in feature of “Show Ads Between Posts” in Blogger. Turn off and enable the feature will display ads between posts when view in home, index or category pages, and also at the bottom most part when view in single individual post page view.

If you plan to use non-AdSense ads or want to add in custom channels, you have to manually edit the template HTML to add in the ad code. In this case, search for:

<p class=’post-footer-line post-footer-line-3′/>

Paste the parsed Google AdSense ad code inside <div> and </div> right after the above line so that it looks like below after change:

<p class=’post-footer-line post-footer-line-3′/>
<div>[parsed Google AdSense ad code]</div>
</div>
</div>
</b:includable>

To center the ads unit, add the wrapper of <center> and </center>.

Between Posts

After it’s pretty much similar to the above where ads appear after post footer. So just follow tips above.

Share and contribute or get technical support and help at My Digital Life Forums.



4 Responses to “Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents”

  1. Move Blogger Inline Ads Between Posts to Inside Within Post Position » My Digital Life
    October 3rd, 2007 01:17
    1

    [...] 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 [...]

  2. avinash
    December 27th, 2007 01:05
    2

    THANK U

  3. expertinvester
    February 18th, 2008 00:54
    3

    hi dude thanks for the wonderful information, but can you help me with one problem. I used your codes very nicely for “After Post Title Before Post Contents” but two ads displayed well before the content, but the third post does not has an ad and there is a blank portion in the post blog. As i have the third ad in my sidebar.
    Kindly help to remove the blank space.
    thanks in advance.

  4. Deepak
    March 22nd, 2008 21:23
    4

    Hi there,

    When I place ads below the topic, the ads appear below all the topics instead of the first one.
    You can check it out @ http://mobilegyaan.blogspot.com
    Please let me know where the problem is?

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 without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

post-body entry-content - how to put google ads at blogger post - insert google adsense under post in blog - ads post title blogger - put adsense code beside posting - placing html code around content - ad banners on blogger html - blogger adsense bottom post - put ads in blogger post - position adsense ad - remove empty space if adsense is place in post body - blogger adsense position - ads float on post left - post-header-line-1 left sidebar adsense - adsense in post - place google ads att top in blogger - adsense float center - place adsense in post blogger 2008 - adsense blogger footer - how to place google ads in content - adsense inside content blogger - blogger center post title - adsense below title - javascript+adsense+box+float - add google adsense under post title - adsense blogspot under blog title - place adcode on the bottom of each post - placed adsense within post - how to add adsense ad unit to blogger content - add adsense footer blogger - How to edit HTML in blogger to place google ads? - add google adsense to post footer - put adsense bottom post - how to place adsense at the top of the page below the blog title - how to paste ads into post body - placing adsese code in blogspot - google adsense footer code - ads inside articles +html - how to put ads in blogger posts - blogspot adsense after post title - html insert an ad within an article - blogger put adsense below title - blogger.com positioning adsense ads - code to center a google ad - how to adsense ad under my blogger blog title - where to place adsense ads on blogspot. - Placing Ads inside JavaScript Code - adsense in center post - ads body blogger - google ads positions blogger -