Extension:AdManager

What can this extension do?
AdManager is an extension to MediaWiki that allows per-page or per-category placement of ads into a wiki page. It is designed to work with zones from an external advertising server such as OpenX but allows the placement of zones from (probably) any such server. The ads are displayed in the sidebar.

This extension was sponsored by the American Academy of Ophthalmology and was developed by WikiWorks.

Usage
Defines two special pages: Special:AdManagerZones and Special:AdManager. Special:AdManagerZones is used to set which zones are available in Special:AdManager. These should be set to the zone number that the advertising server would normally insert into its insertion code. Special:AdManager is used to assign specific pages or categories to ad zones.

Download instructions
You can download the Ad Manager code, in .tgz format, here.

You can also download the code directly via Git from the MediaWiki source code repository. From a command line, you can call the following:

To view the code online, including version history for each file, go here.

Installation
To install this extension, add the following to LocalSettings.php:

'''Note: After you've included the extension you must run update.php!.

Configuration parameters

 * $wgAdManagerService - This can be (currently) be set to 'openx'. If you set this, you do not have to set the $wgAdManagerCode (which will be ignored anyway).
 * $wgAdManagerCode - Use this parameter to use any other advertising service. The code must include '$1' for any spot where the zone number should be inserted.

User rights

 * admanager - Permission to use the two special pages to add zones or apply them to a page/category.