AdSense revenue sharing widget for WordPress-MU
There is an updated version of this plugin here.
The AdSense revenue sharing widget for WordPress-MU will allow you, the owner of a WPMU site, to share Adsense revenue with your users. You can set the percentage of your share (default is 20%) and enter your AdSense publisher code via the ‘Site Admin‘ backend panel (no files to edit).
Download: adsense-share-mu.zip
Current version: 1.1 (see change log below)
Installation: extract the adsense-share-mu.php file and upload it to the mu-plugins directory.
How to use? Goto ‘Site Admin‘ -> ‘Adsense share‘ and set your Adsense share and your Adsense publisher code - that is it!
All your users will have to do is drag the ‘Google Adsense‘ widget to the sidebar, click the configuration icon and enter their google_ad_client ID.
Todo for version 1.2:
add a function that could be called from the themes to place ads on pages.add an option for the user to enter his Adsense code when not using a widget.
Change log:
Ver 1.1
- If the user did not enter his Adsense code the site admin’s code will be used.
- A small “Sign up for Adsense” link is placed on the widget in the backend. Site admin’s code is used.
Did you find this post interesting? Please subscribe to my feed.




I just want to make it automatic for members. So they login and simply enter in an adsense ID and their done.
Thanks for your help.
Elad, I hope this helps http://rapidshare.com/files/45763489/adsense.rar.html
The only things that miss on this feature would be some line of code to insert ads anywhere on templates, and the option for the user to insert their adsens code (let’s say in their profile) so we can still share revenues!
Thanks in advance for your replies!
Author, do you have any plan of writing a mod which will help us to display 3 ad unit, 3 link unit and 3 referrals in every blog participated in revenue sharing.
One widget is not enough for a revenue sharing program. there are few mods available for WP we just need to make them compatible with wpmu!!
Any chance it is cached on your side?
I did not place ads on the admin panel. I just have an Adsense sign up referral link on the widget.
(And that’s not only my opinion, my users may enjoy it as well !)
PS : For the function that display ads in the template, don’t forget to give the admin the possibility to hardcore ads format and color, in order that user just need to fill in his account id to make money… Maybe this could be done with the actual version, but I don’t know how to call the function (and its parameters) outside the widget.
Maybe you should use a function like this (or at least give the possibility) : wich seems very easy to hardcore as there is no possibility to modify it outside the .php page…
btw, the option for the user to enter his Adsense publisher code via the option menu is done
Don’t use ‘<?’ (that is <? in html) use ‘<?php’ (that is <?php in html) to start the PHP code section, this is causing the plugin not to work at all.