b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Business Channel

Work Boxers

AdSense Revenue Sharing

by Paul on February 28th, 2005

On almost all of my sites now I have implemented a system of AdSense revenue sharing that allows the authors to make as much money as they put into the site. On more than one occassion I have been asked how this was implemented so I figured I might as well show you since it really isn’t that hard. This is for MovableType, but can be implemented on any CMS system that allows specific author names.


google_ad_client = " $author = “<$MTEntryAuthor$>“;
if($author == “luke”) {
echo “pub-77777777777777777″;
}
elseif($author == “mike”) {
echo “pub-3333333333333333″;
}
elseif($author == “petey”) {
echo “pub-1111111111111111″;
}
else {
echo “pub-2222222222222222″;
}
?>
“;
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = “336×280_as”;
google_ad_channel =”
if($author == “luke”) {
echo “2136272304″;
}
elseif($author == “mike”) {
echo “2626759925″;
}
elseif($author == “petey”) {
echo “8912052830″;
}
else {
echo “1419107200″;
}
?>”;
google_color_border = “4A525A”;
google_color_bg = “4A525A”;
google_color_link = “CCCCCC”;
google_color_url = “666666″;
google_color_text = “FFFFFF”;

Notice that the last entry should be your ID because not everyone will care about using AdSense (you must learn to love those writers). Also it is not necessary to have the channel code in there if people don’t care about tracking.

As you can see the code is very basic and could probably be done better in an array or if you had a large number of authors a database. However, this is the quick and easy way for me and it has worked solidly.

POSTED IN: Google Adsense

15 opinions for AdSense Revenue Sharing

  • Bryan
    Feb 28, 2005 at 4:31 pm

    hmmm, interesting. I might have to look into this.

    I believe I have to get aquinted more with the google adsense maintainence tool first.

    but good idea.


  • Feb 28, 2005 at 7:06 pm

    I’m sure a lot of folks over at Webmasterworld would love to see this. On the flip-side, many would tell you this is against Adsense’s TOS. Who knows… I don’t.

  • Scrivs
    Feb 28, 2005 at 9:11 pm

    It’s not against the TOS because it doesn’t alter the ads at all and only one ID is used per page.

  • Darren Rowse
    Feb 28, 2005 at 10:57 pm

    i noticed you write about this a while back and was wondering how you did it.

    So google doesn’t allow more than one pub code per page?

  • Scrivs
    Feb 28, 2005 at 10:59 pm

    I’m not sure and in any case I wouldn’t risk it. Also why would your authors want there to be more than one person’s code on a page if they wrote the content?

  • Darren Rowse
    Mar 1, 2005 at 12:25 am

    the only reason i could think of would be if you wanted to have two ads per page - one with revenue going to the author and the other with revenue going to the site owners.

  • Scrivs
    Mar 1, 2005 at 12:31 am

    In that case you are better off throwing in some logic to the code that shows the ads a % of the time for the author and a % of the time for the site owner’s. This works best because there is only going to be one set of Google ads with primetime placement.

  • Darren Rowse
    Mar 1, 2005 at 1:31 am

    aah yes - very wise.

    I’m going to have to get my designer onto this because I’m no coder - but she’s already looked at your code and seen the sense in it.

    thanks again

  • James Henderson
    Mar 14, 2005 at 10:23 pm

    Yeah, I can see the logic in this; however, it does seem kinda bulky if you’ve got more than just a couple of writers for your website.

    I’m no coder either, so it’s hard for me to say any way to improve the method which it uses to get the person’s pub-id.

  • BobbyMasteria
    Mar 23, 2005 at 4:02 pm

    Paul, have you made agreements with the authors of your network taking profit of this ?
    A TOS or something.

  • Scrivs
    Mar 23, 2005 at 4:41 pm

    Bobby,

    In most cases it probably would be best, but in my case I just give them 100% of the revenue they earn. Since they are in control of the money anyways (it’s not like Google pays me and then I pay them) so in this case the TOS is not needed and everyone seems to be pleased so far with it.

  • BobbyMasteria
    Mar 23, 2005 at 9:16 pm

    Automation is what make AdSense perfect for this purpose.
    But you own the Web sites and have rights over the content they publish.
    What if you make changes such as ad positioning that decrease their revenue ?

  • Deep
    Nov 8, 2005 at 4:35 am

    Awesome, I am using the same kind of thing on my wordpress blog, the only difference is, I am using switch conditions rather than if (switch can do the job easily :) )

    Regards,
    Deep

  • Minic
    Dec 15, 2005 at 4:43 pm

    Scrivs, I am planning to bring in additional authors in my blog. I want them to have a share in any Adsense that I get (no matter how small it is :) Would you happen to know a hack on this since my would-be authors doesn’t have their own Google Adsense accounts. Thanks in advance!

  • adsensepublishing.com »
    Oct 11, 2006 at 10:22 am

    […] AdSense Revenue Sharing Work BoxersWorkBoxers - Making money online since 1891 .. AdSense Revenue Sharing February 28th, 2005 by Scrivs. On almost all of my sites now I have implemented […]

Have an opinion? Leave a comment: