Google AdSense Revenue Sharing

By sadcox | Apr 26, 2008

I’m working on a group blog project and I wanted to share AdSense revenue with my contributers. I quickly found Harley’s WordPress plugin for AdSense sharing and got it activated–it’s very easy to use and works nicely. The only problem is that the new style of AdSense ads cannot be assigned to another publisher just by changing the publisher ID. In order to make this work you have to assign a field with Harley’s plugin and the users have to go set up their own ads that are just like yours with their Publisher ID and the GoogleAdSlot value.

This is a little dangerous because it lets users who don’t know what they are doing screw up or leaves you open to displaying horrendous ads on your site. So I looked around the web and found some examples of the older ads. Here are the ones I’m using if you’d like to copy and paste them if you’re using Harley’s plugin–may save you a little time.

Old code for the 468×15 text link units

<script type=”text/javascript”><!–
google_ad_client = “xxxxxxxxxx”;
google_alternate_ad_url = “”;
google_alternate_color = “FFFFFF”;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = “468×15_0ads_al_s”;
google_ad_type = “text_image”;
google_ad_channel =”xxxxxxxxxx”;
google_color_border = “FFFFFF”;
google_color_bg = “FFFFFF”;
google_color_link = “000000″;
google_color_url = “000000″;
google_color_text = “cccccc”;
//–></script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

Old code for the 300×250 text and image ads

script type=”text/javascript”><!–
google_ad_client = “xxxxxxxx”;
google_alternate_ad_url = “”;
google_alternate_color = “FFFFFF”;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = “300×250_as”;
google_ad_type = “text_image”;
google_ad_channel =”xxxxxxxxxx”;
google_color_border = “FFFFFF”;
google_color_bg = “FFFFFF”;
google_color_link = “000000″;
google_color_url = “000000″;
google_color_text = “000000″;
//–></script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

Old code for a 468×60 text ad

<script type=”text/javascript”><!–
google_ad_client = “xxxxxxxx”;
google_ad_channel = “xxxxxxx”;
google_alternate_ad_url = “”;
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = “468×60_as”;
google_color_border = “FFFFFF”;
google_color_bg = “FFFFFF”;
google_color_link = “000000″;
google_color_url = “000000″;
google_color_text = “000000″;
//–></script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

If these are the ad types you were looking for, I’ve tested them and they work. Thanks again to Harley for writing such a great and useful plugin!

3 Comments so far
  1. Jim August 2, 2008 12:02 am

    Hi, I just tried this plug-in, but I found even in classic template, AdSense displaying will goes wrong, the ads are supposed to be just on the top or bottom of a post, but it will be displayed on sidebar, on top or bottom of “recent posts.”

  2. sadcox August 2, 2008 12:29 am

    I’m not sure that’s because of the plugin Jim. All the plugin does is change the publisher ID for the ad unit. It doesn’t change anything else.

    Check your template by deactivating the plugin and displaying the ads with your default publisher ID. This will tell you if it’s plugin related or template related.

  3. Harley August 2, 2008 9:56 am

    Have sent Jim info on why it’s doing that. The Wordpress API is a bit dodgy with actions at times.. anyway it’s easily remedied. I’ve been told though that old adsense doesn’t work anymore so there’s no choice but to use the slot ID. I really don’t like it but what adsense does with its code is its own business ;) Anyhoo just thought I’d share that titbit of info. I’d really recommend using another advertising provider if you want to share revenue, adsense just doesn’t like site publishers anymore :’o/ Thanks for the linkage and for supporting my plugin!

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 Openside Solutions, - PassionDuo WordPress Theme