Information and Links
Join the fray by commenting, tracking what others have to say, or linking to it from your blog.
- Other Posts
- What is the AdSense System ?
- Download
How to use this plugin
You have to upload the file adsense-sharings.php in your plugin directory (default is /wp-content/plugins/).
After this go to Plugins -> Author AdSense Config.
You should see something like this:

Here you have to enter admin’s google ID (something like pub-1234567890123), set the percentage ratio (admin:authors impressions, default is 50:50), set the user level that will be able to use their own google adsense ID.
The next step is to enter your google adsense user/pass in order to view your daily earnings. Go to “AdSense Revenue” menu:

You can alose enter the date range you want to see information (impressions/clicks/ctrs/earnings). Default is 10.
And the final step is to ask your authors to enter their own google adsense IDs.
This option is in Dashboard -> My Adsense:

The next step is very important – you have to modify your theme in order to display google adsense ads.
The Google AdSense code is something like this:
< script type="text/javascript">
google_ad_client = “pub-XXXXXXXXXX”;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = “728×90_as”;
google_ad_type = “text_image”;
google_ad_channel =”";
google_color_border = “99C9FF”;
google_color_bg = “FFFFCC”;
google_color_link = “000000″;
google_color_text = “000000″;
google_color_url = “008000″;
< /script >
Note the bolded line – this is what you shoud change in order to display the correct author ID.
You have to replace pub-XXXXXXX with this code:
< ? php $id=$post->post_author; $google_id = kd_get_google_id($id); echo
$google_id; ?>
You should do this only in the first adsense ad – for the rest you just have to use < ?php echo $google_id; ?>
The final code shoud look like this for your first ad:
< script type="text/javascript">
google_ad_client = “ < ? php $id=$post->post_author; $google_id = kd_get_google_id($id); echo $google_id; ?>”;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = “728×90_as”;
google_ad_type = “text_image”;
google_ad_channel =”";
google_color_border = “99C9FF”;
google_color_bg = “FFFFCC”;
google_color_link = “000000″;
google_color_text = “000000″;
google_color_url = “008000″;
< /script>
and for the rest ads:
< script type="text/javascript">
google_ad_client = “ < ? php echo $google_id; ?>“;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = “728×90_as”;
google_ad_type = “text_image”;
google_ad_channel =”";
google_color_border = “99C9FF”;
google_color_bg = “FFFFCC”;
google_color_link = “000000″;
google_color_text = “000000″;
google_color_url = “008000″;
< /script>
Note: you should remove the space intervals in order to get this stuff work
!!!!!! WARNING !!!!!!!!
!!!!!!!!! YOU ARE NOT ABLE TO USE 2 DIFFERENT ADSENSE IDs ON THE SAME PAGE !!!!!!!!
!!!!!!!!!!!!!!!!!! CHANGE EVERY “GOOGLE_AD_CLIENT=”pub-XXXXXXXXX” TO USE EXACTLY ONE ID !!!!!!!
If you have installation problems – please, write here in the comments, I will help you as soon as I can
Thanks for sharing this plugin , will try and let u know .
from dp .