Welcome to WebmasterWorld Guest from 23.22.182.29

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Change ads' colors

with just a little JS

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

Full Member

10+ Year Member

joined:June 28, 2003
posts:292
votes: 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?

4:21 am on July 26, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 7, 2003
posts:70
votes: 0


I believe they are beta testing a whole bunch of features which will go live ( hopefully ) sometime soon.
4:40 pm on July 26, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 21, 2003
posts:897
votes: 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.

8:49 pm on July 26, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 2, 2003
posts:724
votes: 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.

8:51 pm on July 26, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member shak is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 28, 2002
posts:4154
votes: 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

9:04 pm on July 26, 2003 (gmt 0)

Full Member

10+ Year Member

joined:June 28, 2003
posts:292
votes: 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;
9:11 pm on July 26, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 17, 2003
posts:82
votes: 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.

9:57 pm on July 26, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 17, 2003
posts:82
votes: 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.

10:00 pm on July 26, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 21, 2003
posts:897
votes: 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?
10:08 pm on July 26, 2003 (gmt 0)

Full Member

10+ Year Member

joined:June 28, 2003
posts:292
votes: 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.

10:42 am on July 27, 2003 (gmt 0)

New User

10+ Year Member

joined:July 12, 2003
posts:3
votes: 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.