Forum Moderators: martinibuster
the reason why i'm asking these questions is because i have a bunch of skins on my site and i want the adsense to fit in nicely. so is there any way to modify the background color(not the text color) of the adsense ad dynamically? if not, why is google not letting this happen?
thanks
then just have that table color show as the background color of the adsense ad.
You cannot set the background to transparent. Google does want some control over how the ads appear, which is why you cannot have the background as transparent.
Can you apply a different AdSense script to each skin, perhaps via an include?
If they don't know about it, how can you be so sure that they don't care?
What jouwpagina is doing is a perfectly acceptable solution.
Google doesn't care becase he's not altering the code, just the colors, which we are all allowed to do. He just happens to be doing it dynamically based on which style the visitor has chosen for his site.
The output of his server side script would be one of the following:
google_color_bg = "000000";
google_color_bg = "FFFFFF";
and so on.
That should be legal, I don't see any problem, all are you doing is server side, so they don't know if you have it done by copy-paste from the adsense panel or dinamically, just be supercarefully it really renders the same javascript code.
Premium publisers can do whatever they want with adsense code, take a look at eWeek, they are using adsense and the code is changed a lot.
Using an adserver you can rotate adsense ads with different colors.
But you are talking about random rotation... correct?
If I'm not mistaken, rysolag want's to change the colors so it matches his user's selected skin for his site... not random rotation.
If he's already using an adserver/rotater, it may already be an option or require a minor tweak to serve different color combinations depending on the set cookie values. However if he's not already using one, it seems like an unnecessary step, considering how easy it is to implement with a simple server-side script.