BlogSpot

Display Google Adsense Only On Individual Single Post

Put google adsense ads which will shown in only individual post? You can add the following   lines of codes to the top and bottom of the code block respectively:

<b:if cond='data:blog.pageType == "item"'>
</b:if>

The above lines will add in a condition which value is negative is the blog is not showing individual post content page. Thus anything that are wrapped inside it won’t be shown on homepage, label or category pages, or archive pages.

<b:if cond=’data:blog.pageType == “item”‘>
Parsed Google AdSense Ad Code (guide Add Google Adsense and other JavaScript to Blogger (blogspot) Templates)
</b:if>

if you have do the changes,BlogSpot displaying ads on post pages not homepage.

the best way of display google adsense ads or other advisement on blogger may like this:

put the following code into blogger templates( you must Expand Widget Templates) BEFORE <data:post.body/>
make adsense block show only on single post page

<b:if cond=’data:blog.pageType == “item”‘>
<div style=”float:right;”>
&lt;script type=”text/javascript”&gt;&lt;!–
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 = “0000FF”;
google_color_text = “000000”;
google_color_url = “000080”;
//–&gt;&lt;/script&gt;
&lt;script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
&lt;/script&gt;
</div>
</b:if>

make adsense block show only on single post page

see more about Dispaly Adsense Under Title or Wrap Adsense In the Content on Blogspot