Sunday, March 18, 2007

Adsense Money

The purpose of this procedure is to display with each page load a different color palette from a predefined selection of custom colors.

2 methods to change color palette of your Google AdSenseGoogle's method for maximum 4 different color palettes Perl SII method to randomly select from any number of of ad-code or banner-code 1. Use of Google's method to select up to 4 different custom palettes for one same ad.you can generate ad code from your account that will automatically rotate up to 4 color palettes. To generate ad code with multiple palettes of your choice:

Log in to your account at https://www.google.com/adsense Click 'Ad layout code' under the 'Ad Settings' tab Select up to 4 color palettes by holding down the Ctrl key Choose the appropriate ad layout Copy-and-paste the AdSense ad code into your web pages If you have a look at such Google rotation-code - you will see all as usual, except each color code has 4 color entries as below example shows from such original Google Adsense color palette change:

google_color_border = ["FFFF00","999900","FF33CC","00FFFF"]; google_color_bg = ["FFFFCC","FFFFCC","FFFFFF","EEFFFF"]; google_color_link = ["CC00CC","FF0066","339900","FF0000"]; google_color_url = ["9999FF","66CC33","3300FF","009966"]; google_color_text = ["00CC00","CC3399","CC3366","FF0000"];

Talking about custom palette - of course you have seen that instead of selecting with the point a color you also can actually edit on the page Google AdSense colors each of the values to fine tune any color you love to have.

2. Perl SII method to randomly select from any number of of ad-code or banner-codeSome where on top of THIS page - there is an example of such Ad rotation - Google Adsense and various banners and one JavaScript with the last hot posts from my Cyberspace Ashram forums - all are on a list of 10+ Ad codes on a sample page - different formats, different colors - only one at a time - hence fully compliant with current Google TOS and OTHER TOS to serve only ads at any given time from one single source.

Of course i have a little mixed salad of formats on THIS demo Google AdSense SSI rotate howto page that may be far from ideal for that one spot on top. You would want to select only truly matching styles / sizes on a real page depending on exact place on each page. Above is just to show you the wide variety of uses you may have.
The same procedure can be used for banner rotation, rotation of text or banner ads and even mixed with Google AdSense - because ONE only is displayed at any given time - whatever advertisement or affiliate partner you have.

Legal stuff regarding Google TOSOf course you want to know whether this is according to Google TOS ( Terms of Service ) .. if it would violate i would never publish such HOWTO ! I made sure it is - how ? By sending a formal inquiry to Google and receiving an official answer from Google.

I describe it here for my own use - to properly and correctly display Google Adsense on my pages.These Google AdSense are inserted using common known perl scripts to SSI random texts. If you have already such a perl script for the word of the day or whatever other purpose - then you may prefer to use this and just adapt it to the needs of your Adsense color palette rotation or banner rotation.

If you have none - then you can download the Google AdSense rotation script directly from my site if above site. All original Google Adsense code - duly copied and pasted from Google and stored in a folder/file are randomly selected and inserted via SSI upon page load.
The random selecting perl script is called by a default SSI call

You have verified that either your server's Apache httpd.conf OR your .htaccess - file is configured for SSI.
The entry in your .htaccess file is:

AddHandler server-parsed htm html
Note that above entry allows SSI in any .htm or .html file - NO need to change file names to SHTML !!

If you have a similar rotation script using PHP - the entry for .htaccess would be
AddType application/x-httpd-php .html .htm AddHandler x-httpd-php .html .htm
All pages are regular static HTML pages. This procedure will load a different colored Adsense OR banner OR text modules in rotation each time the page is reloaded.

The Google Adsense code is created on the page
https://google.com/adsense/code and beautified by custom color palette from https://google.com/adsense/colors
Have fun, success and enjoy !
--------------------------------------------------------------------------------