Home Random / Rotating Ads Plugin
Random / Rotating Ads Plugin for WordPress

The Datafeedr Random Ads plugin is a free plugin which allows you to simply and easily show random ads anywhere in your template files or using widgets. If you need support, please visit our support forums.

Download Plugin (v1.1) - Requires WordPress 2.5+

Subscribe Below and Get Notified About Any Updates or New Plugins!

First Name:       Email:
* Please Note: This is a SPAM-FREE site. Your name and email address will NEVER be sold or traded.

Introduction

Let's say you have 3 banner ads that you want to randomly appear in your header. One ad is Google Adsense, one is an affiliate banner and one is an ad for your own site.

Just add the code snippet for each ad to a text file, separate each ad with the pipe "|" symbol and add a function call to your template file. Now, a random ad will be shown in your header.

You can also easily add ads to your sidebar using the built-in widget.

For a more detailed description, see 'How does it work' or watch the video below.

The player will show in this paragraph

Installation Instructions

  1. Unpack the zip file you downloaded.
  2. Upload the /wp-content/ads/ directory to your /wp-content/ directory
  3. Upload the /wp-content/plugins/datafeedr-ads.php file to your /wp-content/plugins/ directory.
  4. Activate the plugin
  5. Create .txt files containing your ads separated by pipe "|" symbols.
  6. Add the function calls to your template files to show the ads.

How does it work?

This plugin allows you to show 1 or more ads in a specific part of your site. The ads rotate randomly and there is no limit to the number of ads that can be put into rotation.

For example...

Let's say we have a 468x60 ad spot we want to fill and we have 3 different 468x60 ads that we want to randomly show in that spot.

Those ads are:

  1. Google Adsense
  2. An affiliate banner
  3. A house ad

First, we need to create a .txt that will hold our ads. Here are the contents of a file named "ads_468x60.txt" which is saved here: /wp-content/ads/. Notice that each ad is separated with a pipe "|" symbol.

<script type="text/javascript"><!--
google_ad_client = "pub-1234567812345678";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FF0000";
google_color_text = "000000";
google_color_url = "000000";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

|


<a href="http://www.datafeedr.com?aid=123" title="Datafeedr.com">
<img src="http://www.datafeedr.com/affiliates/image.php?bid=18" border="0" alt="" width="468" height="60" />
</a>


|


<div style="width: 468px; height: 60px; overflow: hidden;">
<strong><a href="http://www.wordpress.org/">My Site</a></strong><br />
I really hope you like my site. I made it using WordPress!
</div>

Now that we have added our ads, we need to place a call to the ad function somewhere in our templates.

Here is how we would call the .txt file named "ads_468x60.txt" from within a template file:
<?php if (function_exists('dfrad')) { echo dfrad('ads_468x60'); } ?>

Now, when you reload the page, one of the following 3 ads will be displayed:

That's all there is to it. There is some sample code and ad files included in the download package. If you need support, please visit our support forums.

Changelog

2008-06-24
  • plugin released
 

Testimonials

Just to tell you that once in a while a great product comes along that you feel is worth every cent, well, this is the case with your product, what a great product you have developed. I am so glad that my buddy Charlie got me into it. Your product and your support ROCKS!!! I setup my first site at www.chefpilot.com/mart very good!
-Tito DiPietro

As an affiliate manager I am always looking for tools to help our affiliates promote our merchant products. Datafeedr not only makes importing datafeeds into Wordpress sites easy, it also permits easy editing of pages so that the presentation from one affiliate site to another can be truly unique. The video tutorials are first class, you can tell they worked hard to cover every detail and an active support forum is available as well. I highly recommend datafeedr to any affiliate wanting to import datafeeds into their Wordpress sites.
-Ron Bechdolt

One thing I gotta say is that your customer service is top notch.

You guys saved my life. Thank you, thank you, thank you. If you ever come to Malaysia (that's where I'm from), I'd buy you dinner.
-Juzaily Ramli

I just wanted to let you know I'm really enjoying using Datafeedr. I've installed it on a few sites now, and one of them has gone from less than 20 unique visitors a day to over 100 unique visitors a day - all due to datafeedr.

The stats show that people are searching on products descriptions, our site is coming up in the #1 - 2 spot on Google SERPS for those terms and we are getting traffic. Some click through to the merchants. No sales yet, but we've only had this feed installed for a few days, literally. Now I'm working on duplicating this success for my other sites.

Your support is second to none as well. I really appreciate that, a rare occurrence indeed these days. Well done!
-Donna Miller

This is the simplest and most powerful store building system I've seen so far. As an added benefit, customer service is top notch.
-Dmitri Bombine

Read More Testimonials >>