Search This Blog

Saturday, June 25, 2011

How To Add Google Adsense Inside Blogger Post / Below Title

Putting an adsense inside post can generate more income for your blog. It doesn't violate the terms of Google Adsense. Adding an adsense code into HTML template is easy if you do it carefully.
Here's an example of an adsense code (you need to get your own code with your own account):

<script type="text/javascript"><!--
google_ad_client = "ca-pub-4470269547984210";
google_ad_host = "pub-1556223355139109";
google_ad_slot = "1421027945";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Step 1: Change the elements.

You need to replace the symbols:
" replace with &quot;
< replace with &lt;
> replace with &gt;

This is how it should like after replacing them:
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-4470269547984210&quot;;
google_ad_host = &quot;pub-1556223355139109&quot;;
google_ad_slot = &quot;1421027945&quot;;
google_ad_width = 250;
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;

Step 2: Go to Design -> Edit HTML -> and tick 'Expand Widget Templates'.

Step 3: Press CTRL+F and find <div class='post-header-line-1'/>

Step 4: Paste the adsense codes just below it.

Step 5: Save template.

Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo

0 comments:

Post a Comment