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;” (some user reported that you may need to use only single quote (’) instead of double quote (”) for it to work, i.e. ‘float: left’ and not “float: left”).

    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.


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

  1. Move Blogger Inline Ads Between Posts to Inside Within Post Position « Scrapur.com
    September 25th, 2009 22:16
    23

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

  2. FM
    July 12th, 2009 16:37
    22

    It works. ty !

  3. The Wizz
    May 8th, 2009 05:17
    21

    Hi I have successfully got the adsense unit appearing alongside my text using the float right but unfortunately the alignment is out. The adense unit appears 2-3 lines higher than the first line of text. How do I fix this please?

  4. sharaj
    April 17th, 2009 06:25
    20

    You are great guru. Can you help me how to add ‘read more’… plz show me the path. Thanks a lot.

  5. GONDES
    April 12th, 2009 06:30
    19

    Thanks you so much very helpfull
    but how if we use read more??
    how to show ads
    like this code,i want to show ads inline but im use read more


    .fullpost{display:inline;}

    <script type="text/javascript"><!–
    google_ad_client =

    but i got error
    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.

  6. Yaya Rave
    March 15th, 2009 05:31
    18

    Very helpful for WordPress users too. The ‘float’ command was exactly what I needed for my WP blog. Thx s’muches!

  7. How to Wrap Your Text Around Google Ads? - WordPress Tips | Exploring The Internet
    February 17th, 2009 04:23
    17

    [...] are using Google Blogger, you’ll find How to Wrap Your Blogger Post Around Google Ads? and How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content very [...]

  8. liza
    February 13th, 2009 16:01
    16

    Thank you

  9. sang
    February 2nd, 2009 07:05
    15

    wow.. great info.. many tks.. ill try it

  10. Money Starts Now.com » Get Adsense Traffic - Part 2
    October 9th, 2008 08:24
    14

    [...] by selecting the rectangular 336×280 “adsense for content“ ad from adsense, and placing it only once in “Blogger” using this guide, so that the ad blends in with the [...]

  11. seo
    September 26th, 2008 11:20
    13

    好 支持 写的不错

  12. 13 Most Wanted Google Adsense Optimization Tips | K-Director.com
    September 8th, 2008 23:13
    12

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

  13. Andy
    August 29th, 2008 00:44
    11

    Thanks dude..it work..

  14. hannah
    August 1st, 2008 13:16
    10

    i followed each and every step but why is it that the adsense ad is not wrapped in the text. it’s aligned on the left instead and above the post.

    what i want is to have the text around the adsense ad

    Please help..
    thanks

  15. 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!

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

  17. 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!!

  18. 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?

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

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

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

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

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

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

code to wrap text around ad - wrap adsense - make post content wrap around adsense ads blogger - wrapping google adsense - adsense wrap text - wrap text around adsense in blogger - adsens in tex in blogger - WRAP ADSENSE INSIDE POST - how to get adsense to wrap around tex in blogger post - how to wrap adsense - how to wrap blog article around adsense - wrap adsense in post - wrap adsense blogger - wrap adsense code in blogspot - how to parse google adsense left aligned in blogger - wrap adsense in text - adsense inside blogger posts - how to get adsense to wrap - how to insert a adsense in text in blogger - how to wrap content around adsense - insert adsense in classic blogger body post - what is the best adsense widget for wordpress 2009 so I can wrap image ads in my text - wrap artcle around adsense - how to wrap text around adsense in blogger.com - how to wrap adsense inside content - how do I put adsense in left top corner - templates blogger inline adsense - google adsense flash wrapped - 2 adsense rectangle beside each other - how wrap text around ads in blog - how to wrap text around ads in blog - put adsense in inline text - wrap text around javascript html in blogger - wrap blogger post around adsense - adsense wrap blogger - wrap text around adsense unit - blogger adsense in text - flash wrapped adsense - wrap text around advert - how to wrap adsense in content - putting adsense inside the topic - wrap adsense code in post - wrap adsense in blogger post - wrapping adesnse ads around post - blogger google ad wrap - how to wrap adsense code in every post - how to add inline adsense add in nav bar - income beside adsense - post widget in blog pages but not in homepage - WRAP ADSENSE POST -