Ad Buttons Plugin

Monetizing a blog is often done with ad buttons sized 125 x 125 pixels. The ads displayed can be affiliate links or you can sell ad spots directly to advertisers. I’ve tried adding the image ads to my WordPress template files, but whenever you want to add a new ad or take one off, you’ll have to get into the template files again and change them.

After looking for a WordPress plugin to manage my ads and trying a few, I realized none of them did exactly what I wanted. Editing someone else’s code to customize the plugin to my liking can be a painstaking process, so I decided to look a little deeper into how the WordPress plugins work and write my own ad management plugin.

My plugin is far from finished, but I decided to release a first beta version into public. The version available for download here is still a bit limited in functionality, but it can do the most basic things needed. I’m currently trying out some new functions and have a list of things to add.

The current version contains the following functionality:

Add new ad buttons
By entering image URL, link URL and link text a new ad button will be created

Enable/disable individual ad buttons
Each ad button can be enabled or disabled from the admin panel

Select how many ad buttons to display in the sidebar widget
Displaying the ad buttons on your blog is done by randomly selecting ads from your total list of active ads. You can select how many ads are displayed on your blog.

See how many times each ad button has been displayed and clicked
Ad performance is an important measurement, especially when your ads link to affiliate programs. The number of views, clicks and CTR (click thru rate) are displayed for each ad button. Views by search engine bots are automatically filtered from the count.

AdSense integration
A Google AdSense 125 x 125 ad unit can be displayed by filling in your AdSense publisher ID. AdSense ad colors can be controlled right from the Ad Buttons admin panel.

Ad scheduling
Ads can be scheduled by specifying a start and end date

Geo targeting
You can choose to show certain ads only to visitors from certain countries

Ad Buttons Ad Network
Show your ad button on other people’s blogs

The current release is version 2.1.7 and can be downloaded here: spacer (last update 01-01-1970)

If you want to be informed when new versions are released, please sign up for my newsletter by filling in your name and email address in the form on the right.

Like this plugin? Please consider making a small donation.


updated ip2nation database

fixed a bug that messed up affiliate urls with an extra http or https in the url parameters

extended the stats graphing to be able to switch to other months

incorporated ad network.

select a custom url for the ‘your ad here’ button

added geo targeting capabilities

statistics graphic output bug fixed

changed the plugindir retrieval to fix errors when installation directory differs from blog directory

fixed some bugs in the statistics graphic output

added support for https links

Stats have been improved

graphical view and click statistics have been added

detailed view and click tracking will be stored in a separate table. Viewing the statistics will be incorporated into a future release. The views and clicks as seen on the admin page can be altered, this does not affect detailed stats and should be seen as a trip meter.

Added a little note to the widget, so people can find the Ad Buttons settings menu

css styling can now be disabled on the settings page since it can break the layout on some wordpress themes

Database has been changed to accomodate very long URL’s like the affiliate links from et al.

a ‘your ad here’ button has been added that can be linked to an existing page on your wordpress site

custom widget title was deleted when any other option on the settings page was changed: fixed.

small ‘powered by Ad Buttons’ link, can be disabled if needed.

optional nofollow tag selectable on the settings page

ad scheduling by specifying a start and end date has been added

edit function has been added to change individual ad buttons

fixed error message on the permalinks screen caused by the Ad Buttons plugin

incorporated color picker by to control Google AdSense ad colors

ad layout properties can now be controlled from within the admin menu with a handy preview

google AdSense ads have been incorporated

fixed permission problem in the activation/deactivation of ads and added a delete option

link target attribute is now controlled by a configuration setting. ( _top, _blank or not used)
menu structure has been changed, everything related to the ad buttons plugin is now located under the Ad Buttons top-level menu.
added a shiny new wordpress style custom icon to the admin menu
division by zero bug on the stats page has been suppressed

installation bug fixed that prevented the installation procedure, which creates the database table, from running

Custom widget title bug fixed

Minor bugfix to prevent double count of clicks

First release available at plugin repository

23 Responses to Ad Buttons Plugin

  1. Pingback: Ad Button : Eats N Gadgets

  2. Pingback: Ad Buttons to Manage your Ads! : Eats N Gadgets

  3. Pingback: Fortschrittsbalken: Der Blog | Lukas Hermann

  4. Pingback: Themes and Plugins Used for this Site | Grizzly Groundswell

  5. Pingback: WordPress Plugins für die Bannergröße 125×125

  6. Pingback: How to Display 125×125 Ads in a Thesis Sidebar Widget | Gurushala

  7. spacer SKB says:
    August 12, 2011 at 4:35 pm

    Hi. I want to delete the widget, but Ad Buttons do not appear under WIDGETS.
    Please tell me: How do I delete this plugin?
    Kind regards

  8. spacer Shanae says:
    August 18, 2011 at 1:57 pm

    Are you going to update this to the newest version?

  9. spacer A. Heinesen says:
    August 26, 2011 at 2:13 pm

    Hi! LOVE your plugin. I just have one problem with it, the size 125×125 dosn´t work. The sizes og the ad buttons are as big as the image I link to spacer
    What to do? Do you know what might be wrong?

  10. spacer Nico says:
    September 6, 2011 at 6:07 am

    Yes, that is how the plugin works. If you want your image to show as 125×125 you’ll have to resize the image and link to the resized one instead

  11. spacer Nico says:
    September 6, 2011 at 6:08 am

    It should be listed under plugins

  12. spacer Jim says:
    September 21, 2011 at 3:46 pm

    How come I can only use this in one side bar? I want it on all my pages.

  13. spacer Svea says:
    September 23, 2011 at 9:56 am

    I will try your plugin. Thank you for Ad Buttons Plugin!

  14. spacer ed Frebow says:
    September 26, 2011 at 11:27 am

    Hello, wonderful plugin. Is it possible to add a second Ad Button widget in the widget area so I can have two campaigns running in a widgetized area? Thank you for your help.

  15. spacer Wilfred Reinke says:
    September 26, 2011 at 11:48 pm

    I wanted to change an image in my ad buttons, But after I changed the url to the new image the ad does not show up just the name I gave it, any idea what I did wrong? the only thing I noticed is my other images that work has a url like this

    while the new one that will not work has a url of

    is it because it does not have wp-content in the url? maybe I uploaded the image to the wrong place?

    Any help would be appreciated

  16. spacer Nico says:
    September 27, 2011 at 4:39 am

    Jim, why don’t you use the same sidebar on all of your pages?

  17. spacer Nico says:
    September 27, 2011 at 4:40 am

    Ed, the plugin currently only supports one widget, but I’ll look into multi-widget support

  18. spacer Martin says:
    September 27, 2011 at 4:44 am

    Does this plugin work on WPMU?

  19. spacer Nico says:
    September 27, 2011 at 4:45 am

    Wilfred, you have to put the URL of the image into the field, not the URL of a page containing the image. Just right-click on the image and select properties, this should show you the url:×300.jpg which is the one you’ll want to put into the image field

  20. spacer Wilfred Reinke says:
    September 27, 2011 at 8:21 pm

    Thanks Nico I got it to work now, in my blog when I uploaded the image I found that only needed to click on File URL rather than Post URL,

    Thanks for your help, I was lost with out ya spacer

  21. spacer Nico says:
    September 28, 2011 at 6:00 am

    Martin, I have no idea if the plugin works with WPMU. I have not done anything to specifically support WPMU, so my guess is that it doesn’t. Might be a thing to look into for future releases.

  22. spacer Susan B. Bentley says:
    February 6, 2012 at 5:32 am

    Hi there,
    great plug-in. Only issue is how do I get rid of the ‘Sponsored Links’ title – doesn’t give the option to remove this in settings for Ad Buttons or the widgets page.

  23. spacer Nico says:
    February 9, 2012 at 12:37 pm

    Susan, you can change the title of the widget under ‘Appearance’ / ‘Widgets’ in the main WordPress menu

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a class="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>