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
- 03/06/2007: Publishing A New Blog
- 02/28/2007: Tools
- 07/24/2007: Home Decorating Ideas
- 02/01/2007: Premium Web Hosting VS Blogger Hosting
- 02/10/2007: My Daily Thoughts on Our Food Choices



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 19th, 2008 at 11:23 am
thank you so much, very useful info.
on November 20th, 2008 at 10:28 pm
There has come winter

It became cold and cloudy!
Mood very bad
Depression Begins
on November 21st, 2008 at 6:14 am
Depression Depression Depression aaaaaaaa
:( 
HEEEEELP
I hate winter! I want summer!
on December 5th, 2008 at 9:38 am
hi, i looked through ur post and i was hoping you could help me..
I’ve got a blog and an active adsense account. I’d like to include adsense for just ONE of my blog entries.. not the entire blog.
however, trying to paste the adsense code into the post editor didn’t work; nothing happens.
how do i get about doing this?
on December 18th, 2008 at 2:11 pm
sextir.com is a free porn site - We provide the world with free: porn videos,porn movies,xxx free movies,free porn,free sex.
Best porn hub and tube on the web
on December 26th, 2008 at 2:18 am
hello it is test. WinRAR provides the full RAR and ZIP file support, can decompress CAB, GZIP, ACE and other archive formats.
on December 26th, 2008 at 7:30 pm
Visit,
on December 27th, 2008 at 4:20 am
Privet,
on January 2nd, 2009 at 5:54 pm
Hello, thx for all, http://www.kaboodle.com/tube8 tube8 porn, baxxq,
on January 3rd, 2009 at 1:01 pm
Hello, thx for all, brazzers sample clips, 570241,
on January 4th, 2009 at 10:17 am
cheap airfare
on January 4th, 2009 at 1:57 pm
dirt cheap airfare
on January 4th, 2009 at 11:19 pm
My site is great, free pics nude beach, >:]],
on January 5th, 2009 at 11:34 am
Privet,
on January 5th, 2009 at 3:51 pm
Hello, thx for all,
on January 12th, 2009 at 8:38 am
http://www.kaboodle.com/selioneer
on January 12th, 2009 at 10:49 am
http://www.kaboodle.com/kerolisa
on January 16th, 2009 at 11:08 am
pornhub video downloader
on January 16th, 2009 at 3:01 pm
pornhub gay
on January 25th, 2009 at 8:06 am
Hi, visit my link please, naughty tube, >:-O,
on March 5th, 2009 at 3:29 am
Hello, thx for all, mujeres sin ropa, yah,
on April 29th, 2009 at 3:34 am
is it allowed? not break TOS ?
on May 26th, 2009 at 2:43 am
And who does not wish to pay for a hosting, is urgent here - the best free web hosting!
on May 26th, 2009 at 5:01 pm
The friend recommended recently a good free web hosting, all the same the best service among the free!
on June 12th, 2009 at 9:25 pm
very useful tips.. Thanks to share.