homepage Welcome to WebmasterWorld Guest from 54.205.197.66
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

    
Change ads' colors
with just a little JS
jonknee




msg:1339574
 12:31 am on Jul 26, 2003 (gmt 0)

Stumbled upon this... I know it's against the TOS, and I don't suggest that you try it. Just letting everyone know it's possible. If you tuck some variables in the code for your ad, you can change its colors (but not the font). Here's an example:


google_ad_client = 'pub-XXXXXXXXXXX';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';

google_color_border = "888888";
google_color_link = "29426C";
google_color_background = "aaaaaa";
google_color_url = "000000";

Change the colors and you'll see your ad change. Very cool. Wonder if this will be a new feature soon?

 

mallu




msg:1339575
 4:21 am on Jul 26, 2003 (gmt 0)

I believe they are beta testing a whole bunch of features which will go live ( hopefully ) sometime soon.

Zygoot




msg:1339576
 4:40 pm on Jul 26, 2003 (gmt 0)

Nice hopefully we can change these things soon in the adsense control panel!

The adsense banner table should be around 40 pixels wider on my site, then it would fit better in the layout.

netguy




msg:1339577
 8:49 pm on Jul 26, 2003 (gmt 0)


I was hoping for a few changes too, and regardless of the FAQ, I thought I would write them and see what they had to say. To make a long story short... NO CHANGES. But they did close with:

"We hope to be able to offer additional options in the future so that the sizes and colors will better suit your needs."

hmmmm... keyword is "future." I'm hoping it is sooner rather than later, as it really clashes with my sites.

Shak




msg:1339578
 8:51 pm on Jul 26, 2003 (gmt 0)

patience is the name of the game :)

who knows maybe they are writing every thing down which we are discussing in order to make us all happy...

Shak

jonknee




msg:1339579
 9:04 pm on Jul 26, 2003 (gmt 0)

There are some other variables you can mess with too... Not as handy as colors, but still cool:

(from the Google code)


w.google_ad_frameborder = null;
w.google_ad_format = null;
w.google_page_url = null;
w.google_language = null;
w.google_hints = null;
w.google_safe = null;
w.google_encoding = null;
w.google_ad_output = null;
w.google_max_num_ads = null;
w.google_contents = null;
w.google_alternate_ad_url = null;

devlin




msg:1339580
 9:11 pm on Jul 26, 2003 (gmt 0)

The adsense banner table should be around 40 pixels wider on my site, then it would fit better in the layout.

Zygoot - bear in mind that the sizes for both the banner and the skyscraper ads are industry standards.

Many publishers - myself included - have had these formats incorporated into our sites prior to the world of AdSense.

I guess that the Google guys had taken this into account.

D.

devlin




msg:1339581
 9:57 pm on Jul 26, 2003 (gmt 0)

jonknee:
There are some other variables you can mess with too... Not as handy as colors, but still cool:

Yea, we've all downloaded and grilled the google.js files

But go back to the TOS:

Prohibited Uses. You shall not, and shall not authorize or encourage any third party to: <SNIP>(ii) edit, modify, filter or change the order of the information contained in any Ad and/or Ad Unit, or remove, obscure or minimize any Ad or Ad Unit in any way, except as expressly provided in the FAQ

Maybe this is not exactly the correct part of the TOS. But the basics are 'don't mess with Google's Javascript' OK, it's not hard to do.

But how long is it going to be before you get the dreaded email boot from Google.

If it wasn't significant to my income generation, I'd have great fun experimenting.

Right now, I'll stay back abd ebjoy the ride as long as it lasts :-)

D.

Zygoot




msg:1339582
 10:00 pm on Jul 26, 2003 (gmt 0)

Zygoot - bear in mind that the sizes for both the banner and the skyscraper ads are industry standards

Yes I know, but those are standards for images banners. With text banners it is a lot easier to change the size isn't it?

jonknee




msg:1339583
 10:08 pm on Jul 26, 2003 (gmt 0)

Maybe this is not exactly the correct part of the TOS. But the basics are 'don't mess with Google's Javascript' OK, it's not hard to do.

But how long is it going to be before you get the dreaded email boot from Google.

If it wasn't significant to my income generation, I'd have great fun experimenting.

Right now, I'll stay back abd ebjoy the ride as long as it lasts :-)

Yep. This is why I said don't do it. "I know it's against the TOS, and I don't suggest that you try it. Just letting everyone know it's possible."

I just thought it was interesting... I haven't even tried it.

Quasimondo




msg:1339584
 10:42 am on Jul 27, 2003 (gmt 0)

With the skyscraper format lots of the texts look very squeezed or have line breaks at the wrong position - probably because they were originally designed for the standard google format. Would be nice of one could mimic the "original" look.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved