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).

adsense-share-1.PNG

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.

18 Responses to “AdSense revenue sharing widget for WordPress-MU”

  1. Is there any way this can be called outside the widget area (sidebar)?

  2. adm, where would you like to place it?

  3. I would like to place more than one… ie.) at top of page and one other. Yes, I understand Google only allows you 3 places for adsense.

    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.

  4. + 1
    Elad, I hope this helps http://rapidshare.com/files/45763489/adsense.rar.html

  5. But I do not use Widgets, that is the problem.

  6. Actually, this is absolutly great! Though I can see the point of the people above… That plugin does exactly what I’d like it to do, except for the location. I mean, the sidebar isn’t the best place to put ads in every single theme out there, now isn’t it? ;)

    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!

  7. I think that would be cool too, ads anywhere on the page. Looks like a cool mod, Thanks Guys.

  8. Could someone explain how this works? I am a little confused as to how my blog writers can “drag the google adsense widget to the sidebar”. Where is the widget? What are they dragging it into?

    Thanks in advance for your replies!

  9. Once you place the plugin in the mu-plugins directory users can use the widget like any other widget. They have to use the Presentation -> widgets menu.

  10. Is there some way to just directly call the widget? I mean, it’s just a function, so what code would you use to hard code it?

  11. We failed to run revenue sharing blog because we didn’t find a proper adsense sharing mod. We got it for SMF. We have started Revenue sharing forum at http://forum.bloglipi.com

    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!!

  12. Elad, unless I made a mistake, the download link is pointing to the old version.

  13. Mark, just checked and it seems to be fine. The file is labeled version 1.1 dated 1-Oct-2007.

    Any chance it is cached on your side?

  14. No, I probabaly misunderstood your post at the forum. My impression was that you have found a way to add a referral button to the WPMU admin panel, something that I have failed to do, and after thinking about it I decided that it is probably against the adsense TOS to place ads at pages to which access is restricted, so I was curious to find out how you have done it and could not find it at the code, therefor I assumed its outdated.

  15. Mark,
    I did not place ads on the admin panel. I just have an Adsense sign up referral link on the widget.

  16. When you’ll be done with teh todo list, this will be the best mu-plugin ever !

    (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…

  17. indeepdark, sure I will try to give control on all ad parameters.

    btw, the option for the user to enter his Adsense publisher code via the option menu is done :)

  18. Note to author:

    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.

Leave a Reply