PDA

View Full Version : BLS - Google Adsense Color for Multiple Styles


Bolas
05 Apr 2006, 16:59
Hi Ya!

What appens if you got lot of styles and you need to put a Google Adsense banner with specified color/background-color for each else?
You have to put the code in every style, with the opportune change of color in the code.

This product will save you from that!

live examples with different styles:
http://www.wellage.net/showthread.php?t=18948
http://www.wellage.net/showthread.php?t=18948&styleid=57
http://www.wellage.net/showthread.php?t=18948&styleid=54
http://www.wellage.net/showthread.php?t=18948&styleid=59
http://www.wellage.net/showthread.php?t=18948&styleid=17

1) Install the product
2) Use this code to put the banner (THIS IS ONLY AN EXAMPLE!!! YOU HAVE TO EDIT YOUR GOOGLE ADSENSE CODE WITH THE RIGHT DATA!!! USE ONLY THE GREEN LINES!!!)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


If you want to change color solutions, edit mine GoogleAdsenseColorProduct.xml and try using the following color variables. Then import it again overwriting the old version.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


IMPORTANT! READ THIS! USING THIS PLUGIN WILL BREAK ADSENSE TOS, so use it at your own risk. I will not assume any responsability about your use of this plugin.
The code generated is LIKE an original GOOGLE ADSENSE, but the TOS DENY ANY CHANGE on it using the google adsense control panel.

The adsense TOS says that you cannot modify the code they generate for you in any way.

You're right though, it will probably look and function the same and it would probably go unnoticed (unless something broke). But it is against the adsense TOS.

This was clarified a few times on another forum by a Google employee.

D|ver
05 Apr 2006, 17:13
great product :)
that is what i really need :D

joeychgo
05 Apr 2006, 17:34
Nice hack. One question, did you check with Adsense to make sure this doesnt break their TOS? They can get a little funny when people add to their code.

The Chief
05 Apr 2006, 18:05
screens or demo?

ConqSoft
05 Apr 2006, 18:07
I just use Style Replacement Variables for each color. Works very well, and is already built into vB.

SIINSI
06 Apr 2006, 00:26
I'd like to hear if this breaks TOS...

ConqSoft
06 Apr 2006, 00:29
How is it breaking the TOS? You are allowed to change the colors. When the page is processed, the code looks exactly like any other adsense code.


Here's what I use:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Then just create replacement variables on each style using the names above, and you're done.

Bolas
06 Apr 2006, 01:01
it's the same, using replacement or a plugin.
I decided to use plugin because this is my first one and it's only an exercise for me. Just an easy script to test how vbulletin plugins works.

Replacements are a cleaner way to do the same thing, I suggest to use ConqSoft, but...
...I don't want to create replacements for every style I have, so using my plugin you can recycle the color you used in other part of your layout (for every style)




TOS? Only if you modify the output code, but if you print your final output all is as Google designed! :)

Bolas
06 Apr 2006, 01:07
screens or demo?
Read my first post: you can found links for the same thread in my forum with different styles. This is the live demo.

ConqSoft
06 Apr 2006, 01:11
If you have a main style, and all your other styles as children under that, you only have to set the replacement variables in the "main" style, then only change the ones you need to change for each child style.

MissKalunji
06 Apr 2006, 01:49
great! i needed that as well ready to test it out

ShadowOne
06 Apr 2006, 06:01
Google Ads Enhanced (http://www.vbulletin.org/forum/showthread.php?t=109448)

Check Out That....Its Just A Template MOD... Works With Any Style...

(Not Trying To Take Away Your Credit)

joeychgo
06 Apr 2006, 11:28
How is it breaking the TOS? You are allowed to change the colors. When the page is processed, the code looks exactly like any other adsense code.


It probably doesnt - but you know how Google is -

mholtum
06 Apr 2006, 19:39
How and what would I edit to get the colors to match my site??

ShadowOne
06 Apr 2006, 20:20
click on the link of my last post...

Bolas
07 Apr 2006, 20:24
How and what would I edit to get the colors to match my site??
Edit the xml you have downloaded from this thread.

In the first post you can find a long list of variables. In xml you can replace old variables with the items of the lists. The list contains all available color of your style.

Example:
$stylevar["body_fgcolor"] is the body foreground color
$stylevar["page_bgcolor"] is the page background color
$stylevar["page_fgcolor"] is the page background color
etc..


foo..
Of course, your is a truly fantastic product. Truly.

Snake
07 Apr 2006, 21:50
Truly a great hack!

Thank you!

rrr
07 Apr 2006, 22:50
How is it breaking the TOS? You are allowed to change the colors. When the page is processed, the code looks exactly like any other adsense code.

The adsense TOS says that you cannot modify the code they generate for you in any way.

You're right though, it will probably look and function the same and it would probably go unnoticed (unless something broke). But it is against the adsense TOS.

This was clarified a few times on another forum by a Google employee.

Bolas
08 Apr 2006, 10:34
Ok, I will specify that in the thread in huge chars. Thanx rrr

hilfe-forum
23 Jul 2006, 10:38
Donīt work at 3.5.3 ???

I use the original .xml


but html output is always:


google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "";
google_color_bg = "";
google_color_link = "";
google_color_url = "";
google_color_text = "";


Can you help me please?