Old AdSense Code

The old AdSense code is more convenient to change its color and style. However, Google AdSense won’t provide the old-style code any more. Here are some notes about the old-style AdSense code.

Text Ad:

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

google_ad_format” indicates the format of the ad. There are 11 options: “720x90_as”, “468x60_as”, “234x60_as”, “120x600_as”, “160x600_as”, “120x240_as”, “336x280_as”, “300x250_as”, “250x250_as”, 180x150_as, 125x125_as.
google_ad_type” can be one of the three values: “text_image”, “text”, “image”.
google_ui_features” indicates the coner style: “rc:0″ — Square, “rc:6″ — Slightly rounded, “rc:10″ — Very rounded.

Link Unit:

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FFFFFF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

For link units, there are 6 kinds of ads. “728×15″, “468×15″, “200×90″, “180×90″, “160×90″, “120×90″. “google_ad_width” and “google_ad_height” set the size of the link unit. The “google_ad_format” consists of its “size” and a suffix. Some link units have 4 links while other have 5 links. If a link unit has 4 links, the suffix of the “google_ad_format” is “_0ads_al”, for example, “728x15_0ads_al”. For the ones which have 5 links, the suffix is “_0ads_al_s”, for example, “728x15_0ads_al_s”.

Tags: ,

2 Responses to “Old AdSense Code”

  1. you can easily earn lots of dollars from adsense if you have a high traffic site..*;

  2. I could not express how much thankfulness i have when i was reading thru this article. Keep on the nice work and i believe all your hard work will not be wasted. I will keep reading your blog. Have a great day my great writer.

Leave a Reply