Articles Comments

Computer Tips and Tricks | WordPress Technology Hints » Easy Peasy Adsense Plugin

Easy Peasy 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/

13 Responses to "Easy Peasy 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.

Leave a Reply