Forum Moderators: martinibuster

Message Too Old, No Replies

Dynamic page backgrounds and google ads

         

normanp

4:14 pm on Nov 16, 2007 (gmt 0)



I have a small problem (big actually) and just didnt get answers anywhere.

The background color of the pages on my site are not static, neither are the text colors.
This being the case I was thinking of using whatever color is used for the page background and text, in the google ads.
So if pagebackground=f1f1f1 then google_color_bg="f1f1f1". Anything else will be just this way.

Can I do it like this? Can i use my own colors in the ads without creating them on the google site or using only what they offer?
I've seen a few sites have these options as below, but my codec did'nt have any. Can I add them in?

google_ad_width = 468;
google_ad_height = 15;
google_color_bg="my color here that has not been created on the google site";
google_color_link="my color here that has not been created on the google site";
google_color_url="my color here that has not been created on the google site";
google_color_text="my color here that has not been created on the google site";

Will this be OK? or is it against the rules.

Thanks

jatar_k

5:44 pm on Nov 19, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I;m not sure why you would want the colour to be the same as the bg as that might make the ads impossible to see but I assume there is something I don't understand.

How many bg colours are there? If you have a set of colours you could create the ad code for each and then dynamically include the appropriate code. I would suggest naming the files after the colour, such as f1f1f1-adsense.txt or something of that nature.

Though you could dynamically create the ad code I believe that would be against the Terms.

Skeptic

5:53 am on Nov 21, 2007 (gmt 0)

10+ Year Member



Are you creating the pages with PHP code? You can easily code different Adsense.PHP pages to load, based on what a color choice is (like mentioned above me).