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:
- Advertiser: This is the advertiser's name.
- Link ID: This is the (unique) Link Id code.
- Link Name: This is the name of the link. It is
used as the anchor text for text ads.
- Merchandising Text: This is some ad copy for the
link and is displayed with the ad link.
- Alt Text: This is the alterniitive text for image
ads.
- Start Date: The is the starting date, in the
format yyyy-mm-dd.
- End Date: This is the ending date, in the format
yyyy-mm-dd.
- Clickserver Link: This is the tracking URL for the
ad.
- ImageURL: This is the URL of the ad image for
image ads.
- ImageHeight: This is the height of the image (0
for text ads).
- ImageWidth: This is the width of the image (0 for
text ads).
- LinkURL: This is the Link URL.
- PromoType: This is the type of promotion.
- MerchantID: This is the (unique) merchant id.
- enabled? This indicates of the ad is enabled or
not.
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:
- Max ads: The maximum number of ads to display.
- Orientation: The orientation of the ads. Horizontal
means the ads are arranged side by side like one row of a table and
vertical means the ads are arranged in a vertical list. Typically the
horizontal orientation is suitable for a wide but short ad frame and the
vertical orientation is suitable for skyscrapper type ad unit.
- Ad frame width: The width of the ad frame. A value
of zero will cause the frame to use all of the available space.
- Ad frame height: The height of the ad frame.
GAN Image Widget
The GAN Image Widget has six parameters:
- Max ads: The maximum number of ads to display.
- Width: The image width of the image ads.
- Height: The image height of the image ads.
- Orientation: The orientation of the ads. Horizontal
means the ads are arranged side by side like one row of a table and
vertical means the ads are arranged in a vertical list. Typically the
horizontal orientation is suitable for a wide but short ad frame and the
vertical orientation is suitable for skyscrapper type ad unit.
- Ad frame width: The width of the ad frame. A value
of zero will cause the frame to use all of the available space.
- Ad frame height: The height of the ad frame.
GAN_Text shortcode
The GAN_Text shortcode has same four parameters as the GAN
Widget:
- maxads The maximum number of ads to display.
- orientation The orientation of the ads. Horizontal
means the ads are arranged side by side like one row of a table and
vertical means the ads are arranged in a vertical list. Typically the
horizontal orientation is suitable for a wide but short ad frame and the
vertical orientation is suitable for skyscrapper type ad unit.
- ifwidth The width of the ad frame. A value
of zero will cause the frame to use all of the available space.
- ifheight The height of the ad frame.
GAN_Image shortcode
The GAN_Image shortcode has same six parameters as the GAN Image
Widget.
- maxads The maximum number of ads to display.
- orientation The orientation of the ads. Horizontal
means the ads are arranged side by side like one row of a table and
vertical means the ads are arranged in a vertical list. Typically the
horizontal orientation is suitable for a wide but short ad frame and the
vertical orientation is suitable for skyscrapper type ad unit.
- width The image width of the image ads.
- height The image height of the image ads.
- ifwidth The width of the ad frame. A value
of zero will cause the frame to use all of the available space.
- ifheight The height of the ad frame.
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.