Wednesday 4th June 2008
by Sajith M.R 
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
Tags: google.adsense, how, implementaion, works
I recently added an Adsense square ads on my travel blog. my adsense earning is still low since i dont have large volume of internet traffic yet.
`
can you make it more clear please, can you tell me how people make money from this and how exactly it works.
great explanation sajith, that gives me the basic knowledge of how google can track us. very impressive,keep it up and keep coming more
hi sajith,
can you make it more clear please, can you tell me how people make money from this and how exactly it works.
Thanks,
Sudhi
Brilliant observation. All of the post are excellent.
That was good. I have spent time learning SEO and google adsense optimization which I have discussed in my blog MindRivet but this is good – understanding how what works!
Thanks! That was cool !
I never observed the javascript so closely !