≡ Menu

How to add AdSense Code to Your Website/Blog

Here is the step by step guide how to add AdSense code to your website or blog. You can add AdSense to any Web site or blog(blogger, wordpress, Typepad etc), so long as you follow Google adsense program policies (TOS), if you fail to comply with these policies, google will disable your AdSense account at any time. Google AdSense is one of many ways to earn money from the Web which supplies image and video ads for the website publishers.

First create a AdSense code snippet by logging into your Adsense Account and copy the code exactly as it appears in your account. Try to experiment with a variety of placements and ad formats for better CTR and eCPM. Here is the list of available Google AdSense Ad Formats and it’s sizes.

Generated adsense code will look similar as shown below. This is a adsense 300×250 code snippet.

<– Begin Google Adsense code –>
<script type=”text/javascript”>
google_ad_client = “ad-client-code-goes-here”;
google_ad_slot = “ad-slot-code-goes-here”;
google_ad_width = 300;
google_ad_height = 250;
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
<– End Google Adsense code –>

Adding AdSense Code as Inline

If you want to warp your adsense code as inline, copy the below code snippet and place it into your web page with your adsense code inserted.

adsense-inline-ads.png

<div align=”center”>
<– YOUR ADSENSE CODE –>
</div>

Adding AdSense Code as Inline

If you want to warp your adsense code as inline, copy the below code snippet and place it into your web page with your adsense code inserted.

<div style=”float:left;padding-right:15px;margin-top:10px;”>
<– YOUR ADSENSE CODE –>
</div>

Change the div style value to float:right, if you want to display the ad in right side

AdSense with high click through rate

According to publishers, these 3 Good AdSense ad formats will fetch you high click through rate

  • 300×250 inline rectangle
  • 336×280 large rectangle
  • 160×600 wide skyscraper

Google AdSense program policies allow you to place up to three ad units and three link units on any page.

{ 1 comment… add one }
  • sheeraz December 21, 2009, 6:13 am

    bro , i just want to know that where shud i put this adsense code sothat it will appear on the website , google adsense help doesnt provide me the satisfying answer, hop u will tel me the step to step guide , some says that u have to put the code in ur template in between div and div head plz show me the demonstration

    in the end a big thanx and looking for ur ans

Leave a Comment