how to insert Google Adsense ads under post title?

Some people asked me for inserting google adsense ads in blog post under post title .
in general ,we insert ads by creating a HTML/Javascript widget and paste the adsense code into the widget content . But we can't insert a widget under post title in Google Blogger .
Here is a small tip for you to insert google adsense under post title :

1, Get the Adsense code . Your Adsense code will look like this :
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxx";
google_ad_slot = "0976076963";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script
src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>

Go to this address and paste the adsense code into text box ,click on encode . You will have encoded Adsense code .

2,Login to your blogger account , go to Layout ,continue to Edit HTML . Checked "Expand widgets template"
Find this : <data:post.body/>
copy the encoded code in step 1 and paste it above <data:post.body/> like this

Encoded Adsense code
<data:post.body/>

Save template .Ok ,you are done . Until now ,Adsense ads will be displayed under post title in your Blogger
huy signature

Share this post

Advertisement

0 comments:

Post a Comment