![]() |
||||
|
||||
|
« Still working on the BBCodes... | Windows XP64 Professional » |
AdSense, now you can click them on your site
by: JdS - May 18, 2005
I have been with Google's Google AdSense for Content programme since June 2003, so almost 2 years ago, today. AdSense is a hugely popular & successful programme by the way. One of my pet peeves about the programme however, is that as a web publisher, I may not click on the ads off my own web sites or on those ad units that contain my publisher ID. Which kinda makes sense, I suppose... I don't know about you, but sometimes, some of these ads really make me curious enough to want to click on them. Like for instance, the time I was considering putting my sites on a dedicated server and I see one of those Sure, I could use the AdSense Preview Tool like everybody else - but I simply loathe the idea of installing every little computer program on my PC unless it's absolutely necessary. I was hoping for something simpler, something that will allow me to click on AdSense ads that interests me on my own web pages and not worry about getting booted out of the programme for "invalid clicks" or worse, have the advertiser "pay me" for my curiosity and interest. I searched the Net for a long time looking for that "brilliant idea" I was sure I would find. I even lurked for a while at popular webmaster communities discussing AdSense specifically.. all in vain! Everyone was suggesting blocking the ads completely; either by (my) IP (and some server-side scripting) or by editing the HOSTS file on my PC. Neither sounded very efficient, since ads are completely blocked from even being displayed 8O The IdeaRecently, the Google AdSense support team sent me some AdSense Code for Testing, allowing me to place them on as-yet-incomplete web pages online. They also said:
That was the "brilliant idea" I was looking for... The only thing I asked myself then was, AdSense for me, on my websiteIn other words, if I, the webmaster of this web site, were to visit this site and view the HTML markup off this page, the AdSense javascript will most certainly look like this (note line number 2): Generic Code Example: <script type="text/javascript"><!-- google_adtest = "on"; // line no.2 google_ad_client = "pub-0000000000000000"; google_alternate_ad_url = "http://www.gidnetwork.com/alt-300.html"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_type = "text_image"; google_ad_channel ="0000000000";; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "000000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> AdSense for everybody elseBut everyone else visiting this page will find the regular AdSense javascript code i.e.: Generic Code Example: <script type="text/javascript"><!-- google_ad_client = "pub-0000000000000000"; google_alternate_ad_url = "http://www.gidnetwork.com/alt-300.html"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_type = "text_image"; google_ad_channel ="0000000000"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "000000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> It didn't take me very long to plan and write the PHP script that allows me to do this with any page off my sites: Step 1 Step 2 Anyway, now I am no longer worried about clicking on AdSense ads on my site(s) - even accidentally. I am at peace! :D
|
GIDNetwork Sites
Archives
Recent GIDBlog Posts
Recent GIDForums Posts
Contact Us
|
« Still working on the BBCodes... | Windows XP64 Professional » |