Google Affiliate Network

A Widget / shortcode plugin to display Google Affiliate Network ads.
Both text links and image ads can be displayed.

Author:Robert Heller (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:3.5.1
Plugin version:6.1.5.1
Added to WordPress repository:14-03-2011
Last updated:26-04-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:20
Rated by:1
Plugin URI:http://http://www.deepsoft.com/GAN
Total downloads:18 065
Active installs:20+
plugin download
Click to start download

A Widget / shortcode plugin to display Google Affiliate Network ads. Both text links and image ads can be displayed. The widgets are parameterized. There is backend access to the database table of links. Links can be added and/or edited by hand or can be added in bulk from a Tab Separate Value file, as downloaded from Links (Beta) tab from the Google Affiliate Network page. A Tcl script is included to insert E-Mailed links (link subscriptions). The Widgets and shortcodes are parameterized for both sidebar display (vertical layout) as well as leader/footer display (horizontal layout).

The ads are rotated, with the least viewed ads from the lest viewed avertisers being shown in preference to ads that have been viewed more from avertisers than have been viewed more. As ads are displayed, their impression counts are incremented, which moves such ads to the back of the list. Ads are displayed in iframes, which keeps the ads contained on the page. Either widgets can be used to display ads in side bars or shortcodes can be used to display ads in pages or posts (both can be used if desired). A given ad unit can only display text or image ads, not both. As a convience, a media insert button is available on the post and page editor to generate and insert short codes to display ad units on posts and pages.

The plugin provides an administration page to view the database of ads, with the ability to add ads one at a time or in bulk (from a TSV file downloaded from your Google Affiliate Network Links tab). There are also administration pages to view ad impression statistics and merchant (advertiser) impression statistics. The statistics can be downloaded as CSV files. The plugin also includes a help page and a printable PDF user manual.

Notice: Google is planning on retiring the Google Affiliate Network. I am going to stop working on this code. It is available for whoever wants to look at it and maybe use it as example code or the basis of some other affiliate advertising system.


Plugin uses its own database tables:
dws_gan, dws_gan_ad_stats, dws_gan_ad_stats_view, dws_gan_merch, dws_gan_merch_stats, dws_gan_merch_stats_view, dws_gan_products_ad_table