Multiple colors for your Adsense ads
While checking the Blogs of my blogotition “opponents” I came along this blog about some code I wrote before to gave an Adsense ad random colors…
Actually this code is not always needed ![]()
Adsense users from other countries then the Netherlands and also Germany (???) are having the possibility to select more than one color schemes. While selecting more than one color schemes at the same time, Adsense will show up an ad in random colors.
But for sure putting the color values into a php variable or better isolate the whole Adsense code in one central file, makes it easier to change the Adsense code on a later moment (maybe in one step for the whole site…)
Related posts
- Some nice Google Adsense updates
- AdSense for Domains, just another Domain Parking Service?
- A new Wordpress theme for our blog
Comments
OK, right this way it’s usefull but do you think that people will click an ad because of the color? I think visitors are attracted by the advertisement first…
To add the channel into the color array use this code:
$color[] = array(”border”=>”FFFFFF”, “bg”=>”FFFFFF”, “link”=>”0000FF”, “text”=>”000000″, “url”=>”008000″, “channel”=>”XXXXXXXX”);
and inside the adsense snippet:
google_ad_channel =”< ?php echo $color[$i]['channel']; ?>“;
Sorry, the comment form is closed at this time.










I think your script is extremely usefull if expanded with custom channels for each color combination in order to find out which colors work best on a site.