Losing AdSense Revenue from All in One AdSense and YPN

I had done a review of the All in One AdSense and YPN plug-in and mentioned it to my readers several times, but when Udegbunam Chukwudi from Make Money Online Nigeria mentioned that he was concerned about losing revenue and asked if I had read a wordpress.org article on the plug-in that talked about losing AdSense from WordPress Plugin.

I decided to do a little digging to see if you really can lose money from the All in One AdSense and YPN! plug-in and what you can do to ensure you won’t lose any earnings.

First that article is over a year old and the developer of the plug-in had added a “donation” box inside the wordpress plug-in where you can specify a % if you are willing to donate some of your earnings, by default this is shaded out so you don’t know what % is going to the developer of the plug-in.

I dug through the PHP code of the plug-in and found the developer uses random statement combined with the value of the donation field to see if the ad will go to their AdSense account or your own.  Though my investigation of the code, it appeared there was no foul play, if you set your % to 0, then indeed according to what I can interpret in the code, none of the earnings would go to the developer of the plug-in.  But if you still don’t trust the plug-in, you can edit the source code of the plug-in with your WordPress “Plug-in” editor, and look for these lines:

$donation = get_option(‘ai_donation’);
$d_first = get_option(‘ai_dfirst’);
$d_pct = intval($donation);
if($d_pct){
$d_rand = mt_rand(1,100);
if($d_rand <= $d_pct){
$client_ypn = ‘XXXXXXXXXXXXXX‘;
$channel_ypn = ‘XXXXXXXXX‘;
$client = ‘XXXXXXXXXXXXXX‘;
$channel = ‘XXXXXXXXX‘;
}
}
else if($randd==”2″ && $d_first == ‘1’){
$client_ypn = ‘XXXXXXXXXXXXXX‘;
$channel_ypn = ‘XXXXXXXXX‘;
$client = ‘XXXXXXXXXXXXXX‘;
$channel = ‘XXXXXXXXXX‘;
}

Replace the $client_ypn XXXXXXXXXX and $channel_ypn with your “Yahoo client and channel ID’s”, replace the $client XXXXXXXXXX and $channel with your AdSense Client and Channel ID’s then save the plug-in.  Do this replacement for both sections.

This will ensure that all of your earnings from the All in One AdSense and YPN! plug-in stays on your own AdSense account in case you don’t trust the developer of the plug-in.  I still think the plug-in is the best plug-in for WordPress and the ability to turn off AdSense for specific posts is the main crucial reason why I use the plug-in.  For a while I was donating 5% of my AdSense earnings (1 in 20 displayed ads) to the developer for about 6 months and then I turned it back to 0%.

-Dragon Blogger

Justin Germino
I have been obsessed with computers, tech, gadgets and games since the early 1980's having grown up on the Commodore 64 and Amiga computers. By day I work in the IT Security Industry and have been in IT for over 20 years. On my spare time I am a Vlogger, Blogger, Streamer, Gadget Reviewer, affiliate marketer, influencer and entertainer. I am also an avid movie fan, TV Show fan, Anime fan, video game fan and fan of trying anything and everything new.
Justin Germino

@dragonblogger

Content Creator/Owner of https://t.co/iWP6afuOc9 for Tech, Game, Entertainment and streamer at https://t.co/594fXMdMIA
Burrowed only pillows, I wish I could be as comfy as he looks https://t.co/kgIeN0yOq0 - 59 mins ago
Justin Germino
Justin Germino
Share Feedback We Want to Hear From You