how to put adsense code in post of blogspot

go to adsense account and create 300*250 ads code
copy code, and change as following.
< to &It;
> to &gt;
" to &quot;

log in to blogspot->design->edit html
find code
 <data:post.body/>

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
google_ad_host = &quot;pub-xxxxxxxxxxxxxxxx&quot;;
/* 300x250, created 5/24/11 */
google_ad_slot = &quot;1113535223&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
past the adsense that you changed to above ( if you adsense to apear above the post and under the title )

past the adsense that you changed to above (if you want adsense to appear below the post )

you can add some style such as

<div style='float: left;'> to the top of this code
and </div> to the bottom
click save template

but if you want adsense to appear only the first post, just follow this code
<!-- BloggerPlugins.ORG Adsense Above Posts start --> 
<b:if cond='data:post.isFirstPost'> 
Put your parsed adsense code here 
<br/> 
</b:if> 
<!-- BloggerPlugins.ORG Adsense Above Posts End -->














0 comments em “how to put adsense code in post of blogspot”

Post a Comment

 

Personal I.T blogs Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger