« My Journal on Wordpress Workshop (Updated) - (SEO Tips) Get Your Page Number 1 »

Insert Adsense Into Blogger Body Post

26 February 2007

floatadsense.jpg

I make this note because it is looks nice if adsense placed inside post body. Since I publish several Blog on Blogger, I try to find out how to put adsense into New Blogger. I keep this article here to make it easier for me and also for you in the future. If you want to place Google Adsense into your Blogger Post Body, like in the picture, you can use this method.

You should edit your HTML code of your template and don't forget to activate Expand Widget Templates on the right side. Try to locate

CODE:
  1. <div class='post-body'>
  2. <p><data :post.body/></p>
  3. </div>

On your HTML and after that you can start to copy and paste your adsense code.

code.jpg

Since Blogger started using XML everything is more strict and standardized. The above error simply mean the Adsense code is not standized XML and solve it we need to replace all the html character such '<' with '&gt;' '"' with '&quot;'. For example:

Your adsense code

code23.jpg

Should be changed to

CODE:
  1. &lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
  2. google_ad_client = &quot;pub-XXXXXXXXXXXXXXX&quot;;
  3. google_ad_width = 336;
  4. google_ad_height = 280;
  5. google_ad_format = &quot;336x280_as&quot;;
  6. google_ad_type = &quot;text_image&quot;;
  7. google_ad_channel = &quot;&quot;;
  8. google_color_border = &quot;FFFFFF&quot;;
  9. google_color_bg = &quot;FFFFFF&quot;;
  10. google_color_link = &quot;000000&quot;;
  11. google_color_text = &quot;000000&quot;;
  12. google_color_url = &quot;000000&quot;;
  13. //--&gt;&lt;/script&gt;
  14. &lt;script type=&quot;text/javascript&quot;
  15. src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
  16. &lt;/script&gt;

To place your adsense next to the post, just add

CODE:
  1. <div style="float:left;">
  2. your adsense code
  3. </div>

Just before this code

CODE:
  1. <div class='post-body'>
  2. <p><data :post.body/></p>
  3. <div style='clear: both;'/> <!-- clear for photos floats -->
  4. </div>

If you feels the text is too close with the adsense you can change the style by adding margin on style code

CODE:
  1. <div style="float:left; margin:5px 5px 5px 5px">
  2. your adsense code
  3. </div>

Now you can save your new HTML code and enjoy the result.

Posted On , ,

Share This

Related Posts

Random Posts

U COMMENT
I FOLLOW

52 Responses to ' Insert Adsense Into Blogger Body Post '

Subscribe to comments with RSS or TrackBack to ' Insert Adsense Into Blogger Body Post '.

  1. IndoDX said,

    on February 28th, 2007 at 5:23 am

    Can explain more detail? does this will show on first post only? or will show in every post?

    Thanks

  2. Mind said,

    on March 1st, 2007 at 4:32 am

    This will show adsense only on full post view and for all posts.
    Jadi tidak di halaman muka. Kalau ada yang pingin read more baru adsensenya akan muncul.

  3. Bossxero said,

    on March 8th, 2007 at 7:12 pm

    Hi man,

    Getting my hand dirty with the template editing proved to be very helpful. I managed to put the adsense ads in the post. You explanation was very helpful and more than clear. Thanks for that.

    By the way, you can have a look at my blog @ http://forexkid.blogspot.com

    Thanks once more

  4. bizon said,

    on July 2nd, 2007 at 1:56 am

    How to add google adsense in the below post in new blogger if i have active “read more” fitur(using post template)?
    Thanks

  5. Lance Eh said,

    on July 19th, 2007 at 10:26 pm

    Thank you so much! I kept getting errors with the XML in blogger, even with other ad servers besides Adsense and had almost totally abondoned them. I’ll try the XML fixes you listed. Thanks again!

    Lance
    Http://Lanceeh.blogspot.com

  6. Daniel said,

    on July 20th, 2007 at 8:56 pm

    nice

  7. buzzchore said,

    on July 30th, 2007 at 12:14 am

    Why am I got this error when applying your code:
    ‘XML error message: The content of elements must consist of well-formed character data or markup.’
    ‘XML error message: The element type “div” must be terminated by the matching end-tag ” ‘

    This is what my html code looks like, is it correct or I made a mistake?

    <script type="text/javascript"><!–
    google_ad_client = "pub-xxxxxxxxxxxxx";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468×60_as_rimg";
    google_cpa_choice = "fffffffffffffffff";
    //–>
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    Sorry, I have no knowledge of Html basic, so I can’t do anything about this. Please help me

  8. MKS said,

    on August 9th, 2007 at 1:45 pm

    Hii,thanks for that clear explanation,
    but it isn’t against adsense TOS.
    http : //hottysexywood.blogspsot. com

  9. j-bay said,

    on August 10th, 2007 at 4:46 am

    thank’s for your info.
    i try to make my blog body become part by par per each post. but still can’t

  10. Bruno Sette said,

    on August 11th, 2007 at 4:17 am

    I just can´t find the

    1.
    2.
    3.

  11. Mind said,

    on August 11th, 2007 at 7:46 am

    The line number was added automatically by my wordpress plugin. You should remove those line number before inserting adsense script code

  12. dewa said,

    on August 14th, 2007 at 3:05 pm

    I think this tool can help you guys. http://www.blogcrowds.com/resources/parse_html.php

    Blogcrowds make this tools to parse your html to xml code

  13. Erch said,

    on August 22nd, 2007 at 7:35 pm

    i use older blogger…
    so helpme to insert adsense to oldest blogger body post


  14. on October 1st, 2007 at 9:17 pm

    Sklep komputerowy z tanimi czesciami komputerowymi:
    sklep komputerowy

  15. Breilopmil said,

    on October 9th, 2007 at 4:54 am

    1 http://www.egoist.bg/forums/posting.php?mode=newtopic

  16. john said,

    on March 6th, 2008 at 3:33 pm

    hi nice site thx

  17. Nyfczszg said,

    on July 6th, 2008 at 12:07 am

    hi nice site thx man

  18. Ntudohrd said,

    on July 6th, 2008 at 3:34 am

    Best Site good looking

  19. pornstargals said,

    on July 7th, 2008 at 10:06 am

    gdfgdsfggdsfg your amateur pornstargals

  20. amature said,

    on July 7th, 2008 at 2:39 pm

    hgfhfghf amaturealbum

  21. Sfkqhhud said,

    on July 17th, 2008 at 9:09 pm

    Sorry, all anal galleries, =),

  22. Jmtxwcta said,

    on July 18th, 2008 at 3:21 am

    Sorry, anal itch severe night, mllw,

  23. Pooceggj said,

    on July 18th, 2008 at 10:40 am

    Cool site, http://sites.google.com/site/analcreampiemovies1/anatomy-of-anal-intercourse asian anal download videos sluts, 8D,


  24. on July 26th, 2008 at 4:28 am

    Thanks for the tips! Am about to try them out!
    D.

  25. Rnqjmsdz said,

    on July 31st, 2008 at 10:53 pm

    good site dude

  26. youtubeporno said,

    on August 1st, 2008 at 4:58 am

    gdfg hgfh hj ggdgfh fghjgf jdf hfg j youpornovideofree

  27. Kfwbxpdj said,

    on August 4th, 2008 at 5:31 pm

    Cool site,


  28. on August 8th, 2008 at 1:55 am

    Hi I’m newby here, my site


  29. on August 10th, 2008 at 9:32 am

    Ciekawa strona, trafilem tu przypadkowo, ale od dzis bede wpadal czesciej, pozdro


  30. on August 24th, 2008 at 5:14 pm

    8aThank’s for greate post.6a I compleatly disagree with last post . tsb
    ламинированный паркет 6x


  31. on August 24th, 2008 at 6:18 pm

    0iGood idea.8z I compleatly agree with last post. ain
    ламинат 7g


  32. on August 24th, 2008 at 7:29 pm

    6jGood idea.7l I compleatly disagree with last post . xbq
    паркет и ламинат 4b


  33. on August 27th, 2008 at 11:09 pm

    comment1, ïèñàþùèå äåòè ôîòî, 8PP,


  34. on August 28th, 2008 at 11:46 pm

    comment3, ïîëíî èçíàñèëîâàíèé áåñïëàòíî, 74088,


  35. on August 29th, 2008 at 2:40 am

    comment3, áåñïëàòíîå ïîðíî îðãàçìû, mivn,

  36. lysy said,

    on September 10th, 2008 at 5:57 am

    Ciekawy wpis. Ostatnio zauważyÅ‚em, że przy przełączaniu na tryb MathML na mojej ulubionej stronie dla maturzystów http://www.zadania.info firefox siÄ™ wysypuje. Pewnie to podobny problem z xml’em.

  37. girls2008d said,

    on September 15th, 2008 at 6:22 pm

    one cup


  38. on October 4th, 2008 at 2:22 pm

    comment6, keygen any dvd hd 6.1.9.3, puu,

  39. name said,

    on October 6th, 2008 at 11:58 pm

    comment4,


  40. on October 7th, 2008 at 12:27 am

    comment4, singles 2 patch
    , 100,

  41. dw8000 patch said,

    on October 11th, 2008 at 3:23 pm

    comment3, bald patch rabbits hind quarters, :-]]],


  42. on October 21st, 2008 at 10:00 pm

    comment1, raggame ep11 2 update exe, 441593,

  43. idham said,

    on October 22nd, 2008 at 4:58 am

    Thank you for your info.

  44. indri.wahyuastuti@pajak.go.id said,

    on October 23rd, 2008 at 9:53 am

    indri.wahyuastuti@pajak.go.id

  45. sami said,

    on November 9th, 2008 at 9:41 am

    not so very helpful

    http://zeopedia.blogspot.com/


  46. on November 13th, 2008 at 2:30 am

    comment6, amiture housewife porn, vtkaq,


  47. on November 13th, 2008 at 11:03 pm

    comment6, peliculas pornos gratis, tovdv,


  48. on November 14th, 2008 at 1:17 am

    comment6, traci lord porn picture, tun,


  49. on November 14th, 2008 at 5:25 am

    comment5, porn star arrested, jhaum,


  50. on November 14th, 2008 at 1:47 pm

    comment3, pinup porn, %]]],


  51. on November 14th, 2008 at 7:16 pm

    comment1, porn puma star swede, :-(,


  52. on November 18th, 2008 at 9:15 am

    comment4, hotbot fotzen, >:OOO,

Leave a reply

Search terms for this post   insert adsense in blogger (7),  The element type "div" must be terminated by the matching end-tag " (7),  adsense (4),  inserting link into blogger (3),  The element type "div" must be terminated by the matching end-tag (3),  XML error message: The element type "meta" must be terminated by the matching end-tag "". (3),  blogspot show adsense only in first post (3),  insert adsense blogspot (3),  google adsense in post blogger (3),  The element type "div" must be terminated by the matching end-tag (3),  Insert Google Adsense Into Blogger XML Post Body (3),  insert adsense body post new blogger (2),  how to add adsense code into blog (2),  adsense in post content (2),  blogspot INSERT ADSENSE (2),  blogger insert adsense in post (2),  adsense in post body (2),  adsense in blogger post (2),  "The element type "div" must be terminated by the matching end-tag" (2),  blogger adsense in post (2),  adsense blogger (2),  how to insert adsense in blogspot (2),  adsense in blogspot posts (2),  how to put adsense into post blogspot (2),  insert adsense into blogger posts (2),  insert adsense into blogspot (2),  wordpress insert javascript in post (2),  insert adsense below post (2),  insert adsense into blogger post (2),  how to insert adsense in blog post (2),  The element type "img" must be terminated by the matching end-tag "". (2),  adsense at the end of post (2),  inserting adsense in blogspot (2),  blogger adsense under first post (2),  adsense in blogger post body (2),  how to insert an ad into blogger post (2),  how insert adsense in blogspot (2),  insert adsense in blogger post (2),  Blogger body (2),  add adsense in blogger post (2),  insert line in blogger (1),  paste adsense in blogger posts (1),  insert javascript into blogger (1),  ads inserted in posts blogger templates (1),  put adsense only first post blogger (1),  wordpress insert html script post (1),  float adsense post wordpress (1),  Blogger insert code (1),  code adsense im text blogspot (1),  insert google adsense referrals to blog post (1),