Articles Comments

Computer Tips and Tricks | WordPress Technology Hints » Adsense Plugin

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

Screenshot of admin section

Screenshot of admin section

The plugin is available here: http://wordpress.org/extend/plugins/easy-peasy-adsense/

20 Responses to "Adsense Plugin"

  1. [...] Peasy Adsense Plugin für WordPress 19. Januar 2010 | Autor: KHK Das Easy Peasy Adsense Plugin von  Martin Glover erleichert das Einbinden von Google AdSense Werbung in WordPress Beiträge [...]

  2. sesli sohbet says:

    thanks vey nice…

  3. Matt says:

    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

  4. martinglover says:

    Matt,

    Can you tell me which version of WordPress you are using please?

  5. martinglover says:

    The save issue raised by Matt has been resolved and will shortly be available for update from wordpress.

  6. Matt says:

    All fixed — thank you!

  7. Danny says:

    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.

  8. martinglover says:

    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.

  9. Ann says:

    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

  10. martinglover says:

    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.

  11. Ed says:

    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?

  12. martinglover says:

    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.

  13. Sola Awolaja says:

    I have installed the plugin in my blog. I will let you know the outcome later. Thanks.

  14. [...] Easy Peasy Adsense -an easy-peasy solution to insert Google Adsense ads into your WordPress posts and pages. Simply put your Adsense code into the boxes provided and then insert the corresponding tag into the post, page or sidebar widget that you wish it to appear. [...]

  15. Rick W says:

    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?

  16. Martin says:

    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.

  17. G.Danken says:

    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?

  18. [...] of the first plugins that I added to my site right away was the “Easy Peasy Adsense” plugin. Once installed this gives you a fast way to add three different advertisements to [...]

  19. Annette says:

    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!

Leave a Reply