AdSense ad in the body of the post, but only in the body of one post per page.
Blogger provides an easy way of
adding AdSense to your blog. The best place to put ads is to put them very close to the content - at the end or at the beginning of your post. Unfortunately, you cannot just copy-paste the Google code right after the <$BlogItemBody$>. If you do so, ad will be shown in all your posts and Google permits only three ads per page.
The solution is to have a small javascript that will output the actual code only once per page. That is, only in the first post of the index page.And the ad will also be shown in the permalink pages.
Paste the following code into your template right after the </head> tag:
<script language="JavaScript">var i=0;</script>
Then put the following code to somewhere around the <$BlogItemBody$>. Browse this blog pages to see how it looks like.
<!-- AdSense only after the first post -->
<script type="text/javascript"><!--
google_ad_client="ca-pub-6248714847105944";
google_ad_width=234;
google_ad_height=60;
google_ad_format="234x60_as";
google_ad_type="text";
google_color_border="FFFFFF";
google_color_bg="FFFFFF";
google_color_link="CC6600";
google_color_url="CC6600";
google_color_text="999999";
//-->
</script>
<script language="JavaScript">
i++;
if(i == 1)
document.write('<div><scr' + 'ipt type="text/javascript" ' +
'src="http://pagead2.googlesyndication.com/pagead/show_ads.js"' +'> </scr' +'ipt></div>');
</script>
<!-- End AdSense only after the first post -->
Technorati tags: Google AdSense Blogger