Author Advertising Revenue Sharing Plugin- Complete Tutorial

by Bilal Ahmad on October 22, 2010

Revenue Sharing programs are very helpful for both: blog owner and contributors. One of the popular revenue sharing website is, where contributor can earn from Adsense, Amazon, Ebay and Kontera. As a wordpress user you can also convert your blog to a revenue sharing blog, where you can allow your readers to write for your blog. It has numerous advantages, for example: increase in traffic, alexa rank, readers, comments, establishment of brand and so on..

revenue sharing plugin Author Advertising Revenue Sharing Plugin  Complete TutorialAuthor Advertising Plugin is a revenue sharing plugin that allows you to start Adsense, Yahoo, Amazon or any other PPC or Affiliate revenue sharing on your blog. Even you can also use it for Direct Advertisement Revenue sharing. The plugins works great with all wordpress versions and Thesis Themes.

For Adsense Revenue Sharing this plugin is one of the most secure and working plugin. There is no need to worry about your adsense account, the plugins works on % concept. If you want to start 50%, 50% revenue sharing on your blog. You just need to enter the percentage and the plugin will only show advertisement on the posts according to the prescribed percentage. You can see the plugin on TechMaish, where it is working fine.

1. How to Use Author Advertising Revenue Sharing Plugin?

1. Download Author Advertising Plugin, install and activate it.

2. Go to Setting>Author Advertising Config

3. If every thing is fine, then the plugin Configuration will open correctly, Otherwise you will get a error message. In order to correct the error, you will have to run SQL Query from your WebHosting Account.

author advertising SQL error Author Advertising Revenue Sharing Plugin  Complete Tutorial

2. How to Run SQL Query for Author Advertising Plugin?

Depending on your webhosting the setting can be different, but the method for running SQL query is the same. In this tutorial i will show you that how can you run a SQL query in Hostgator.

1. Login to your Hostgator Panel

2. Go to phpMyAdmin from Database Section.

3. A list of database will open. From here you will have to select the database of your blog.

phpmyadmin data base Author Advertising Revenue Sharing Plugin  Complete Tutorial4. After selecting the database a list of files will appear. Click on “SQL” button as highlighted in the screen shot.

running sql Author Advertising Revenue Sharing Plugin  Complete Tutorial

5. A new page will open. Where you will have to paste the error code that was shown to you after activating the plugin. Paste the code as highlighted in the screen shot (Step 3 of 1) in the box and click on “Go” button. Make sure that you copy only the code without the word “CODE:”, otherwise SQL query will not run.

SQL in hostgator Author Advertising Revenue Sharing Plugin  Complete Tutorial

The SQL query has been successfully done.

3. How to Configure Revenue Sharing?

1. Go to Setting>Author Advertising Config>

2. Now you will be able to see the configuration page. Configure the plugin and enjoy Revenue Sharing on your Blog.

  • Admin Advertising ID = Type your Adsense Pub ID Here
  • Admin Percentage = Type the Percentage for Admin. For Example %20. It means that %20 revenue will goes to admin adsense account and %80 to the contributor. If you want to share %100 revenue then type “0″.
  • Allowed Roles = Select Roles for whom you want to enable Author Advertising Feature
  • The Author Page = From here you can configure the author page, that your users will see when they are putting there Adsense Pub ID from there Dashboard.
  • Advertising Code = It is a important option in the plugin. Go to your Adsense account and create 300×250 Ad. (You can create ad of any other format). Copy the code of your adsense ad and paste in this box. However you will have to replace your Pub ID and Google Ad Slot ID number with the following code.

<script type=”text/javascript”><!–
google_ad_client = “%pubid%“;
google_ad_slot = “%custom1%“;
google_ad_width = 300;
google_ad_height = 250;
<script type=”text/javascript”

Only 2 Changes will made to the Code.

Pub ID = %pubid%

Google_Ad_Slot = %custom1%

Save changes and you are done.

4. Placing Adsense Code in Blog

Now the final step is to add the code in your blog to show Adsense Ads for Revenue Sharing. Copy the below code and paste in single.php file. Normally all bloggers place adsense ads below posts title. So you can also paste the code there.

For WordPress Users

  • Open your single.php file.
  • Scroll down to <div class=”entrytext”>
  • Just below that code paste the below code.

<?php kd_template_ad(1); ?>

For Thesis Theme Users

If you are Thesis Theme User then follow the below steps.

  • Open your custom-function.php file
  • And paste the below code there.

/* Adsense after every post Author advertising */
function add_adsense_media1 () {
<p><?php if (function_exists(‘kd_template_ad’)) { kd_template_ad(1); } ?>
add_action(‘thesis_hook_before_post’, ‘add_adsense_media1′);

Complete Manual for using this plugin is written by the developer of the plugin in .pdf File. [Download PDF File] Download the file and read the manual, you will be able to use the plugin for all type of Revenue Sharing Programs on your blog.

What’s Next

Share this article with your friends through facebook, twitter and other social media. Don’t forget to share your comments and votes for this plugin.

email1 Author Advertising Revenue Sharing Plugin  Complete Tutorial

Get Daily Reviews and Tutorials about WordPress Plugins

Enter your email address:

{ 18 comments… read them below or add one }

kbharath November 4, 2010 at 6:25 am

This is really a great plugin for the blog like me where we accept Guest posts. the tutorial is very clean and easily understandable Bilal.


[email protected] November 28, 2010 at 9:47 am

Hey I tried this but is not showing up any ads..


Mani Viswanathan December 1, 2010 at 6:15 pm

I was thinking of starting Revenue sharing on my blog. This tutorial helped a lot. Thanks :) !


usman January 27, 2011 at 6:57 pm

I install revenue sharing plugin. I read your guide for installation and i easily configure this plugin.

Thank you very much


subzero525 February 11, 2011 at 6:43 pm

i installed this plugin and i configured it exactly as you said the admin ads appears at his pages but the author pages shows no ads
plz help


Bilal Ahmad February 19, 2011 at 9:17 am

Subzero@ Did you place the ID code for the advertisement in the correct place. If the ID code for the advertisement is not place in the theme, then the ad will not appear in your blog.


Tiziana March 8, 2011 at 1:04 am

Hello Firstly I want to thank you for your guidance on the plugin author advertising that is really well done congratulations. In the last part but I have a question that I hope you can clarify. When I insert my adsense banner with colors, formatting, etc., in the banner to be generated from adsense appears

google_ad_client (which I replaced with “% pubid% “)


google_ad_slot. For this second I leave the number you gave me for my adsense banner or do I replace it with a variable? (PS GOOGLE AD SLOT identifies what actually ’cause I just want users to enter their pub id without them choose banner size, color, etc.). I hope you can help me thanks.



Bilal Ahmad March 8, 2011 at 8:43 am

Tiziana@ In Author Advertising Panel you have the the option to insert slot_id for all the authors. However you will have to enter slot_id for your own ads in the plugin. Otherwise ad will not reflect the format color, size etc when it is live for your articles.
Let me know if the answer is not satisfactory.


Tiziana March 8, 2011 at 1:07 pm

So, if I understand I’ve to insert the adsense code as adsense have created and leave the number near ad slot (that indetify my banner’s color, font size, banner size, ecc) and replace the ad client with the variable “% pubid% “. Isn’t it? Thanks for your help,



Bilal Ahmad March 9, 2011 at 12:43 am

Tiziana@ Yes exactly.


Tiziana March 9, 2011 at 3:30 am

Thanks ;) . I’ve send you an email please reply me as soon as possible. Best regards



Alex Farias March 9, 2011 at 4:40 am

How can I insert the ads block of this plugin to the left side corner at the beginning of the post?


Bilal Ahmad March 9, 2011 at 10:07 pm

Alex@ The adsense ads in your blogposts are already floated to left side. Do you still need answer for this comment? Let me know so that i can assists you.


Alex Farias March 9, 2011 at 10:45 pm

What you see to left side is another automatic plugin for Adsense (Quick Adsense). I disable this plugin and try to insert in the same position the block for Author Revenue Sharing but it haven’t been able to do that. What file I need to modify to put Author Revenue Plugin where actually appear the Quick Adsense plugin?



Bilal Ahmad March 9, 2011 at 10:50 pm

Alex@ Just before the author advertising (adsense code) paste

and paste the code
after the author advertising code.

You can change the value padding-top and padding-right to further customize the position.

Let me know if it is not working.


Santhosh May 18, 2011 at 7:06 am

Thanks for sharing, started Revenue sharing on my blog, but one problem ,how to add media permission to contributor.


Amy September 21, 2011 at 11:12 pm

Do you know how the authors can track which earnings are coming from the ads on our site?

Also, I’ve read that you have to use the old adsense code (instead of the new adsense code) or else this plugin doesn’t work. Do you know if that is true?


Bilal Ahmad September 22, 2011 at 10:52 pm

Amy@ Yes you need to use new code. Not completely the new code, but a modified one. You can learn that from the pdf file that is available on the website of the plugin developer.


Leave a Comment

Previous post:

Next post: