What you add for showing google ads on your website ? It is a javascript , right ?


Parameters are: Client Id
format, channel,url for the caller webpage, background color, link color, border color, text color, javasupport, flash support etc

The width and height of the iframe is calculated from google_ad_width = 468 and google_ad_height = 60 parameters.

This is not the end of the story. The actual story just begins now. The loading iframe contains all the advetisement according to your adsense configuration. If you check the links of add unit, you can see all the event with the link is tracked by google adsense code.

See a sample ad link:


<a id=”aw0″ class=”adt” target=”_top” onmouseover=”return ss(”,’aw0′)”
onmousedown=”st(’aw0′)” onfocus=”ss(”,’aw0′)” onclick=”ha(’aw0′)”
href=”http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=
BW7_Ir6xGSKf3Npz6vQOespnnDdO6yVvXoIDxAs
CNtwGgnAEQARgBIL3C4wMoAjgAUKnM2_f6_____
wFg5aLmg7gOoAHNhrj5A7IBEHd3dy5zYWppdGhtci5jb226AQk0Njh4NjBfYXPIA
QHaAT9odHRwOi8vd3d3LnNhaml
0aG1yLmNvbS9kb3dubG9hZC15b3V0dWJlLXZpZGVvcy11
c2luZy1waHAtY29kZS_gAQKAAgGoAwHIAwfoAx_oA_g
D6AOmA-gDBegDDfUDCAAQAYgEAZAEAZgEAA&num=1&
adurl=http://www.codango.com/
&client=ca-pub-2389393537983674&nm=5″>
<span>Free PHP Code & Scripts</span>
</a>

Free PHP Code & Scripts
See onmouseover, onfocus, onmouseout etc functions are used. It means google studies user behaviour with google ads. The click on the link does not go directly into the corresponding website, instead it redirected inot googlesyndication.com and from then redirected into real website. You can guess the reason.

Depending on your browser configuration, google shows text ads, image ads and flash (shock wave) ads

This is a very small introduction of hows adsense works. There are a lot of steps behind the show_ad.js file. But this is will give you a rough idea.

I think

Regards

Sajith.M.R


Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It!

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!