Insert Adsense Into Blogger Body Post
26 February 2007
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
-
<div class='post-body'>
-
<p><data :post.body/></p>
-
</div>
On your HTML and after that you can start to copy and paste your adsense code.

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 '>' '"' with '"'. For example:
Your adsense code

Should be changed to
-
<script type="text/javascript"><!--
-
google_ad_client = "pub-XXXXXXXXXXXXXXX";
-
google_ad_width = 336;
-
google_ad_height = 280;
-
google_ad_format = "336x280_as";
-
google_ad_type = "text_image";
-
google_ad_channel = "";
-
google_color_border = "FFFFFF";
-
google_color_bg = "FFFFFF";
-
google_color_link = "000000";
-
google_color_text = "000000";
-
google_color_url = "000000";
-
//--></script>
-
<script type="text/javascript"
-
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
-
</script>
To place your adsense next to the post, just add
-
<div style="float:left;">
-
your adsense code
-
</div>
Just before this code
-
<div class='post-body'>
-
<p><data :post.body/></p>
-
<div style='clear: both;'/> <!-- clear for photos floats -->
-
</div>
If you feels the text is too close with the adsense you can change the style by adding margin on style code
-
<div style="float:left; margin:5px 5px 5px 5px">
-
your adsense code
-
</div>
Now you can save your new HTML code and enjoy the result.
Posted On AdSense, Blogger, new blogger Share ThisRelated Posts
- Download
- Hacking Firefox
- Conserving Bandwidth
- A Short of SEO List You Can Add
- Great News From Google Adsense
Random Posts
- 08/30/2007: Easy Domain Parking Monetization Tips from Lazy Domainer
- 04/21/2008: How to get the best easy diet program
- 03/09/2007: My Web Server Space And Ringtones
- 05/05/2008: Look Of The Year Model Contest
- 02/26/2007: My Journal on Wordpress Workshop (Updated)




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
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.
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
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
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
on July 20th, 2007 at 8:56 pm
nice
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
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
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
on August 11th, 2007 at 4:17 am
I just can´t find the
1.
2.
3.
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
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
on August 22nd, 2007 at 7:35 pm
i use older blogger…
so helpme to insert adsense to oldest blogger body post
on October 1st, 2007 at 9:17 pm
Sklep komputerowy z tanimi czesciami komputerowymi:
sklep komputerowy
on October 9th, 2007 at 4:54 am
1 http://www.egoist.bg/forums/posting.php?mode=newtopic
on March 6th, 2008 at 3:33 pm
hi nice site thx
on July 6th, 2008 at 12:07 am
hi nice site thx man
on July 6th, 2008 at 3:34 am
Best Site good looking
on July 7th, 2008 at 10:06 am
gdfgdsfggdsfg your amateur pornstargals
on July 7th, 2008 at 2:39 pm
hgfhfghf amaturealbum
on July 17th, 2008 at 9:09 pm
Sorry, all anal galleries, =),
on July 18th, 2008 at 3:21 am
Sorry, anal itch severe night, mllw,
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,
on July 26th, 2008 at 4:28 am
Thanks for the tips! Am about to try them out!
D.
on July 31st, 2008 at 10:53 pm
good site dude
on August 1st, 2008 at 4:58 am
gdfg hgfh hj ggdgfh fghjgf jdf hfg j youpornovideofree
on August 4th, 2008 at 5:31 pm
Cool site,
on August 8th, 2008 at 1:55 am
Hi I’m newby here, my site
on August 10th, 2008 at 9:32 am
Ciekawa strona, trafilem tu przypadkowo, ale od dzis bede wpadal czesciej, pozdro
on August 24th, 2008 at 5:14 pm
8aThank’s for greate post.6a I compleatly disagree with last post . tsb
ламинированный паркет 6x
on August 24th, 2008 at 6:18 pm
0iGood idea.8z I compleatly agree with last post. ain
ламинат 7g
on August 24th, 2008 at 7:29 pm
6jGood idea.7l I compleatly disagree with last post . xbq
паркет и ламинат 4b
on August 27th, 2008 at 11:09 pm
comment1, ïèñàþùèå äåòè ôîòî, 8PP,
on August 28th, 2008 at 11:46 pm
comment3, ïîëíî èçíàñèëîâàíèé áåñïëàòíî, 74088,
on August 29th, 2008 at 2:40 am
comment3, áåñïëàòíîå ïîðíî îðãàçìû, mivn,
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.
on September 15th, 2008 at 6:22 pm
one cup
on October 4th, 2008 at 2:22 pm
comment6, keygen any dvd hd 6.1.9.3, puu,
on October 6th, 2008 at 11:58 pm
comment4,
on October 7th, 2008 at 12:27 am
comment4, singles 2 patch
, 100,
on October 11th, 2008 at 3:23 pm
comment3, bald patch rabbits hind quarters, :-]]],
on October 21st, 2008 at 10:00 pm
comment1, raggame ep11 2 update exe, 441593,
on October 22nd, 2008 at 4:58 am
Thank you for your info.
on October 23rd, 2008 at 9:53 am
indri.wahyuastuti@pajak.go.id
on November 9th, 2008 at 9:41 am
not so very helpful
http://zeopedia.blogspot.com/
on November 13th, 2008 at 2:30 am
comment6, amiture housewife porn, vtkaq,
on November 13th, 2008 at 11:03 pm
comment6, peliculas pornos gratis, tovdv,
on November 14th, 2008 at 1:17 am
comment6, traci lord porn picture, tun,
on November 14th, 2008 at 5:25 am
comment5, porn star arrested, jhaum,
on November 14th, 2008 at 1:47 pm
comment3, pinup porn, %]]],
on November 14th, 2008 at 7:16 pm
comment1, porn puma star swede, :-(,
on November 18th, 2008 at 9:15 am
comment4, hotbot fotzen, >:OOO,