Daftar Isi - 1

Thursday, June 7, 2007

Google AdSense Code

It is very easy to prepare your website and website pages to start serving Google Adsense ads. All you have to do is paste a code similar to the one below into your webpage's. This can be done with any text editor program, or wysiwyg editors like Dream weaver or FrontPage.
Simply enter the code where you want it to appear on your webpage, and you are ready to go. Let's try and go over the code - you can actually change your Google Adsense ad appearance here and more..

google_ad_client = "pub-xxxxxxxxxxxx";

The first line of code holds your unique Google Adsense publisher identification - don't change this!

google_alternate_color = "ffffff";

The second line is used if Google cant find Adsense ads that are relevant to your page content. If you don't define this colour, Google will instead server Public Adsense ads, that unfortunately doesn't generate income for you when clicked on.

google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as"

Line 3-5 determines what type of Google Adsense ads you want to serve on your webpage's. In this example we are serving the "Skyscraper" format seen to the right on your screen. It has a width of 160 pixels, and a height of 600 pixels - so you want to make sure that there is room for this on your page.

google_ad_channel ="xxxxxxxx";

The sixth line is used for defining what ad channel these Google Adsense ads belong to. The code is generated by Google from within your Google Adsense members area, so don't change this.

google_ad_type = "text_image";

The seventh line determines what type of content Google should serve in your Google Adsense ads. There are 3 variations possible:
1. "text_image" this serves a mixture of both text and graphical Google Adsense ads. This is the standard setting.
2. "text" this server only text Google Adsense ads.
3. "image" this serves only graphical advertisements in your Google Adsense ads.

google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";

These lines determines the exact colours used when displaying Google Adsense ads on your website. You can change these colours directly, and instantly see the updated version of your Google Adsense ads on your website. The colour codes used are binary colours, meaning that white is "FFFFFF", black is "000000" etc.
The only drawback of using the Google Adsense code, is that you will manually have to enter it on every page of your website. This means that if you change your design, or are trying to optimize your Google Adsense income - it requires work!

0 komentar: