Saturday, July 14, 2012

How To Display Google Adsense On The Post


How to add google adsense under the post title or at the end of each post. You just need to put the adsense code in your blog HTML template. Here is how:

1. Login to Google Adsense
2. Select Ads Unit you want to display
3. Copy and paste the adsense code
4. Login to Blogger
5. Select Template
6. Select Edit HTML 
7. Check the Expand Widget Templates. Please back up the template before.
8. Search this code

<p> <data:post.body/> </ p>

9. If you want google adsense appear under each post title, enter the adsense code before the code number (8).

If you want google adsense appear at the end of each post, enter the adsense code after code number (8).

10. Put your adsense code. It is usually like this:

<center> <script type="text/javascript"><!--
google_ad_client = "pub-6352149869991121";
/* 468x60, created 28/06/09 */
google_ad_slot = "2257614645";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>


Delete the code (<-- and //-->)

11. Save Template
12. Done

No comments:

Post a Comment