Installation

Installation is just a matter of installing from the new plugin page. Once installed and activated, the plugin is ready to start displaying affilate ads.

Configuring

There is only one configuration option: Autoexpire. The option is true by default. It enables the automatic removal of ads that have expired. While it is possible to disable this option it is not recomended

If you have upgraded from an older version of the plugin, the configure page will display a button to upgrade the database to the new version.

Inserting Ads

In order to display ads, you need to have some ads in your database. There are two ways to insert ads: manually, one by one or in bulk from a TSV (Tab Separated Value) file. Manual insertion is done on the Add new admin page and bulk insertion is done on the Add new bulk admin page.

Add new admin page (manual insertion)

This page has a form for adding a single ad. The fields include:

Add new bulk admin page (bulk insertion)

This page uploads a TSV file of ads previously downloaded from your Google Affiliate Network management page. You get this file by visiting your Google Affiliate Network management page and clicking the Links tab. On this page you can select the sorts of ads you would like by selecting one or more of your approved advertisers and selecting the type of ads (text and/or banner), and other criteria such as size, etc. It is then possible to export these ads as a TSV file, which can then be downloaded. This same file can in turn be uploaded to the GAN plugin and the ads in this file will be added to your ad database.

Showing Ads

There are two ways to show ads on your pages and/or posts. You can use one of the two widgets (GAN Image Widget or GAN Widget) or one of the two shortcodes (GAN_Text or GAN_Image). The widgets of course need to go into a 'sidebar' that supports widgets. The shortcodes can go into any post or page.

GAN Widget

The GAN Widget has four parameters:

GAN Image Widget

The GAN Image Widget has six parameters:

GAN_Text shortcode

The GAN_Text shortcode has same four parameters as the GAN Widget:

GAN_Image shortcode

The GAN_Image shortcode has same six parameters as the GAN Image Widget.

Editing Ads

When displaying the data on the main admin page, links are provided to edit, delete, or toggle the enabled flag for each ad. The ads are displayed ordered by expiration date, with the soonest to expire displayed first. It is possible to select only a single merchant's ads to be displayed and/or a single width of ad (a width of zero implies text ads).

Ad Subsriptions

A Tcl script is included to process E-Mailed Ad Subsriptions and insert them into the database. This requires the ability to receive E-Mail on the server running the database server and requires that Tcl and the MySQLTcl package be installed as well as the use of procmail as a mail delivery agent.

Statisics

Both ad and merchant statisics are available for display. The statisics are ordered from fewest impressions to most impressions. A summary of the statisics is also displayed on the dashboard.