Adsense Plugin
Current Version: 1.2.2 | Version Release Date: 13 June 2010
How to install
An easy peasy way to insert Google Adsense ads into your WordPress posts and pages
How to use it:
There are two ways you can use this plugin:
Add the trigger text [ wp_campaign_1] for the first ad, in your page or post.
Use [ wp_campaign_2] for the second ad and [ wp_campaign_3] for the third. (Without the space after the square bracket though)
Alternatively you can add the following to the relevant template files:
<?php echo show_campaign_1(); ?> for the first ad
<?php echo show_campaign_2(); ?> for the second ad
<?php echo show_campaign_3(); ?> for the third ad
The plugin is available here: http://wordpress.org/extend/plugins/easy-peasy-adsense/



Pingback: Easy Peasy Adsense Plugin für WordPress
thanks vey nice…
Hi Martin, great plugin!
For some reason I’m not able to use the third slot. No matter what I write there and “save,” it’s never actually saved. The first two slots work fine.
I deleted and re-installed the plugin, but the same problem exists. Have you heard of this? Any fixes you can think of!
Cheers!
Matt
Matt,
Can you tell me which version of WordPress you are using please?
The save issue raised by Matt has been resolved and will shortly be available for update from wordpress.
Version 1.2 now released with the bug fix in: http://wordpress.org/extend/plugins/easy-peasy-adsense/
All fixed — thank you!
Hello martin,
I have installed the plugin on my website, i just need to know how to show the google ads on my hompage?, i am using wordpress 2.9.2 if thats any help,
Thank you.
Danny,
Once you have pasted your code in and saved it in the admin panel:
Add the trigger text [wp_campaign_1] for the first ad, in your page or post.
Use [wp_campaign_2] for the second ad and [wp_campaign_3] for the third.
If you want to add the ad to the template file itself, you can use the following PHP code shown in the plugin support page to add to the template.
Hi Martin,
This seems like an easy plug-in, but I’m having problems integrating it visually into my theme. Is there a way to adjust how and where the ads line up. I tried putting one in the header, but it occurs to far down and interferes with the body. I also tried putting one right above the posts, but it sits all the way to the left without the left border like the posts.
Thanks,
Ann
Ann,
I would image you would need to use some DIV tags in your code to wrap it in to make it appear where you want to.
Calling the DIV tags from your CSS would allow you to adjust and align as necessary. I think using the php echo show_campaign would work better for you so you can edit them directly in the template.
There may be more experienced coders to assist you at http://www.linkswapforum.net in the WordPress section, but I hope that gives you something to start with?
Martin.
For some reason this is not working for me. I am running WordPress 3.0 and have placed the adsense code in the settings panel and placed [wp_campaign_2] in a text widget in the sidebar. The size of the ad is narrower than the sidebar. But for some reason no adds are appearing. No public service ads either. All I see is [wp_campaign_2] in the widget.
Any suggestions?
You may need to try the php code in the widget if that is not working. Let me know if that works. I am still looking into a bug fix for that issue.
I have installed the plugin in my blog. I will let you know the outcome later. Thanks.
Pingback: Top 10 WordPress Plugins for Google Adsense | Webmaster Crunch
Martin,
Great plugin — I use it on two different WP 2.9 sites. However, I’m trying to use it on a WP 3.01 site and I just can’t make it work. All I get is blank space where the ad is supposed to be. I even used the same ad code from a working site. What am I doing wrong?
I had a similas issue with another chap. Basically he removed and readded the plugin (checking permissions on his uploads directory) and it worked for him.
I got the same problem with the code and the widget. The ads won’t show up. I tried both codes. I did chmod 777 on the upload folder. What else could it be?
Pingback: Easy Peasy AdSense » Saving Dave dot com - The website and weblogs of Dave Braddon
I am still very new to blogging and WordPress and I cannot figure out where to put the [wp_campaign_1] or the template file. The other was very clear but this part was not for me. I am still in review for AdSense and need to get this code in to be approved.
thanks for your help!