How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content

When you look to the top left corner of this article, there is a Google AdSense ads unit block that has a style that is aligned inline beside and wrapped the article body (only on single post view). This format of layout is considered and proofed to be able to generate higher CTR (click through rate) for AdSense ads, directly increasing the revenue publisher earned. The new Blogger service with widget-based XML template allows authors at best to insert AdSense ad blocks in between blog posts by using AdSense or HTML/JavaScript page elements, but not inline within and wrap around blog post itself.

Here’s the trick and hack on how to put AdSense ads in within and beside of Blogger.com blog post body, and has the content wraps around the ads to make the ads look like part of the content. Coupled with using ad colors which blend the borderless ads to the blog overall color scheme, and choosing bigger ad format such as 336×280 large rectangle or 300×250 rectangle will definite optimize placement of AdSense ads, increase ads click thru rate and improve publishers income. Beside, the AdSense ads put in by this trick will also be shown and displayed in the blog main page, or when individual blog post content page is visited.

  1. Login to Blogger account.
  2. At Blogger Dashboard, click on Settings link listed behind “Manage” for the blog that you want to enable to show AdSense ads between posts.
  3. 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

  4. 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

  5. Click to tick the Expand Widget Templates checkbox.

    Blogger Expand Widget Templates

  6. Seach for the following line in the new Blogger template HTML code in the text box:

    <data:post.body/>

    or

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

    Blogger Expand Widget Templates

  7. Append the following lines of code into the template BEFORE the line of <data:post.body/> located above:

    Parsed Google AdSense Ad Code (guide to parse the HTML code of AdSense JavaScript with escape character)

    AdSense Ad Code in Blogger Template

    Note the above code will align AdSense ad block to the left. You can also make it make it float to the right, but change the “float: left;” to “float: right;”.

    Note that you can also make the ads appear only on single post view.

  8. Click on SAVE TEMPLATE button when done.

If the alignment of your blog layout is not good, you can try to add the code above directly after the following line in the Blogger widget template:

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

The above trick may work to add ad code wrap beside the post content in Blogger from other advertising networks too, such as AdBrite, BlogAds, Chitika, Tribal Fusion, ValueClick, and etc, in case you can’t use AdSense for reason such as account banned. And there are more position inside posts to put AdSense.

Update: Blogger can also add AdSense ads inside post using Ads Between Posts trick.

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



9 Responses to “How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content”

  1. Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents » My Digital Life
    September 23rd, 2007 18:22
    1

    [...] is trick to add Google AdSense and other advertising network such as AdBrite ad unit right beside and inside [...]

  2. How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View » My Digital Life
    October 3rd, 2007 01:15
    2

    [...] it won’t be shown on homepage, label or category pages, or archive pages. For example, while wrapping the AdSense ads manually beside the post content, you can make the ads displayed only when individual posts are viewed by adding above 2 lines to [...]

  3. asterix
    October 31st, 2007 18:13
    3

    editing the google adsense code violate google terms ??? isnt it ? is it safe to use the above method

  4. Hye
    December 13th, 2007 16:41
    4

    Hello. Is it okay to use the codes above. Will it not violate the Adsense TOS? Please reply. Thanks.

  5. admin
    December 13th, 2007 16:59
    5

    After you use the parsed code above, when you view source HTML code, the adsense ad code is exactly the same as you see in AdSense account. So effectively there is no change at all.

  6. rara
    December 17th, 2007 10:24
    6

    this works for the beta blogger, but how about for the old blogger? will this work too? how?

  7. debashish
    January 30th, 2008 00:02
    7

    Hi i tried to add ads between post by editing the blogger posts but unsuccessful.Message was” Try to remove the errors from this page” while trying to save the changes.

    Help please!!

  8. Ben
    April 1st, 2008 23:29
    8

    @debashish

    This will only work on blogger classic, looks to me like the error you mentioned is from trying to use this on Blogger with Templates (or blogger beta/new blogger)

    Is there a way to get this to work on blogger beta

  9. Michael Miles
    April 14th, 2008 11:31
    9

    Thanks for this article. I’ve being going nuts trying all sorts of things to get the text to wrap around my adverts, but it was this article that finally cracked it. It’s so simple when you know how. 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 without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

wrap around adsense - display inline adsense blogger - wrap image around text google blogger - how to put adsense beside post - float adsense - align inline ads blogger - adsense inline - adsense inline blogger blog - wrapping text around adsense blogger - wrapping adsense - wrap content around adsense - how to make text wrap around adsense ads - put adsense code beside posting - wrap text around adsense ad - how to wrap adsense - Wrap adsense in post wordpress - adsense beside posts - adbrite blogger wraparound text - wrap adsense wordpress - adsense wrap around text blogspot - how to trick adsense - post wrap around google ad block blogger - wrapping text javascript ads - how to get text to wrap around adsense ads - adbrite violate adsense - wrap around post - how to wrap text around adsense - adsense beside post - adsense blogger inline post - content around adsense blogger post - wordpress wrap adsense - get text to wrap an adsense ad - change color iinline ads adbrite - float adsense ads - align adsense with text - inline post google adsense - adsense inline post - how to make the ads in between content in adsense - how to float the ads in blogger - blogger float ad - format google adsense blocks for wraparound - "wrap-around" adsense - adbrite blogger after every post - putting adsense on the post not widget - adsense to post blogspot - wrap text around adsense - how to float adsense - how do i put adsense ads in between my text on blogger - blogger add ad in single post - how do i wrap text around adsense in my blog -