Title: Simple PW Ads
Author: Big Bagel
Published: <strong>July 21, 2011</strong>
Last modified: July 19, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/simple-pw-ads.svg)

# Simple PW Ads

 By [Big Bagel](https://profiles.wordpress.org/big-bagel/)

[Download](https://downloads.wordpress.org/plugin/simple-pw-ads.3.0.3.zip)

 * [Details](https://lin.wordpress.org/plugins/simple-pw-ads/#description)
 * [Reviews](https://lin.wordpress.org/plugins/simple-pw-ads/#reviews)
 *  [Installation](https://lin.wordpress.org/plugins/simple-pw-ads/#installation)
 * [Development](https://lin.wordpress.org/plugins/simple-pw-ads/#developers)

 [Support](https://wordpress.org/support/plugin/simple-pw-ads/)

## Description

Provides three (widget, shortcode, and template tag) easy ways to add Project Wonderful
ads to your WordPress site along with a simple management page to handle them.

This plugin was intentionally kept simple. Insert your Project Wonderful publisher
ID/member number on the management page, click “Synchronize Ad Data”, and watch 
as all your ad information is displayed. You can then use the added widget, shortcode,
or template tag to display any of the ads connected to your PW account.

See the [Other Notes](https://wordpress.org/extend/plugins/simple-pw-ads/other_notes/)
page for the shortcode and template tag as well as usage notes.

**Before marking this plugin as broken**, ask for some help in [the forum](https://wordpress.org/tags/simple-pw-ads?forum_id=10#postform)
or on the [author’s site](http://interruptedreality.com/plugins/simple-pw-ads/).
It could be a minor bug with a simple fix specific to your configuration.

#### New in version 3

**Important**:
 Before version 3.0.0 there was a very serious bug. The Project Wonderful
asynchronous code was added to the footer in such a way that it could confuse the
Project Wonderful robot in charge of checking ads. As a result, ads could have difficulty
activating or be automatically deactivated. Do not use any version of this plugin
prior to 3.0.0.

Simple PW Ads now includes a management page to keep track of your ads. Any ads 
added in versions prior to 3.0.0 will need to be checked/re-added once you input
your publisher ID/member number.

Plugin Website: [Simple PW Ads](http://interruptedreality.com/plugins/simple-pw-ads/)

### Notes

This plugin relies on PHP’s SimpleXML extension. SimpleXML is enabled by default
since PHP 5.1.2 (WordPress 3.2 and greater requires PHP 5.2.4). Simple PW Ads will
check for SimpleXML and display a helpful error if not found.

### Usage

Simple PW Ads no longer requires you to mess with ad codes. Simply go to Project
Wonderful and find your publisher ID/member number under “My account > My profile”.
Type your ID on the management page, and click “Synchronize Ad Data”. The information
for all of your ads will be downloaded and shown. You can now use the widget, shortcode,
or template tag to insert your ads.

The added shortcode is: `[spw_ad managed_ad="X"]`
 The added template tag is: `spw_insert_ad('
X' )`

X corresponds to “Ad Number” on the management page.

If you edit your ads within Project Wonderful, you should click “Synchronize Ad 
Data” again to grab the changes. If you delete an ad in Project Wonderful, all your
ad numbers will remain the same; you will not have to check/edit any currently used
ads.

## Screenshots

 * [[
 * The added widget.
 * [[
 * The management page.

## Installation

You can use the “Install Plugins” page in your dashboard to search for and automatically
install the plugin.

If you need or want to manually install the plugin:

 1. Download and extract Simple PW Ads
 2. Upload the `simple-pw-ads` folder to the `/wp-content/plugins/` directory
 3. Activate/Network activate the plugin through the ‘Plugins’ menu in WordPress

If you receive any errors, you can ask about them in [the forum](https://wordpress.org/tags/simple-pw-ads?forum_id=10#postform)
or on the [author’s site](http://interruptedreality.com/plugins/simple-pw-ads/).

## FAQ

None yet!

This plugin is actively maintained and will remain so until the universe implodes.
Create a topic in [the forum](https://wordpress.org/tags/simple-pw-ads?forum_id=10#postform)
or on the [author’s site](http://interruptedreality.com/plugins/simple-pw-ads/) 
if you have any problems, questions, or suggestions.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Simple PW Ads” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Big Bagel ](https://profiles.wordpress.org/big-bagel/)

[Translate “Simple PW Ads” into your language.](https://translate.wordpress.org/projects/wp-plugins/simple-pw-ads)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/simple-pw-ads/), check
out the [SVN repository](https://plugins.svn.wordpress.org/simple-pw-ads/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/simple-pw-ads/) 
by [RSS](https://plugins.trac.wordpress.org/log/simple-pw-ads/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.0.3

 * Testing with version WordPress 3.9.1

#### 3.0.2

 * Minor bug squashing; accidentally used “<?” instead of “<?php” in one spot.
 * Tested with latest 3.3 beta.

#### 3.0.1

 * Added several sanity checks and more detailed error reporting.
 * Switched to WordPress’ HTTP API to make fetching XML from Project Wonderful more
   robust.
 * Fixed a logic error: In 3.0.0 deleting an ad box in Project Wonderful would make
   every subsequent ad number decrease by one. Now, ad numbers are immutable and,
   once associated with an ad, will never change.

#### 3.0.0

 * Now uses Project Wonderful’s xmlpublisherdata.php to retrieve all ad information
   with only a publisher ID/member number.
 * Allows for the use of standard and advanced code in normal or asynchronous mode.
 * General bug squashing.
 * Fixes a major bug in the way the asynchronous Project Wonderful code was added
   to the footer which could prevent new ads from being activated and cause current
   ads to be deactivated. Do not use any version of Simple PW Ads prior to this 
   one.
 * Due to the previous bug, this version was developed and released extremely quickly.
   Please report any bugs.

#### 2.0.0

 * Added management page.
 * Updated widget, shortcode, and template tag to use ads added through management
   page.
 * Replaced any uses of `split()` with `explode()` since `split()` is now deprecated.

#### 1.1.1

 * Added internationalization support.

#### 1.1

 * Made the code nicer. Nothing else.

#### 1.0

 * Initial release

## Meta

 *  Version **3.0.3**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.2 or higher **
 *  Tested up to **3.9.40**
 *  Language
 * [English (US)](https://wordpress.org/plugins/simple-pw-ads/)
 * Tags
 * [ad](https://lin.wordpress.org/plugins/tags/ad/)[ads](https://lin.wordpress.org/plugins/tags/ads/)
   [advertising](https://lin.wordpress.org/plugins/tags/advertising/)[widget](https://lin.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://lin.wordpress.org/plugins/simple-pw-ads/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/simple-pw-ads/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-pw-ads/reviews/)

## Contributors

 *   [ Big Bagel ](https://profiles.wordpress.org/big-bagel/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/simple-pw-ads/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://interruptedreality.com/plugins/simple-pw-ads/)