Skip to content

Instantly share code, notes, and snippets.

@danielbachhuber
Created February 9, 2012 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbachhuber/1782326 to your computer and use it in GitHub Desktop.
Save danielbachhuber/1782326 to your computer and use it in GitHub Desktop.
ACM readme rough draft
=== Ad Code Manager ===
Contributors: danielbachhuber, rinatkhaziev, automattic
Tags: advertising, ad codes
Requires at least: 3.1
Tested up to: 3.3.1
Stable tag: 0.1
Manage your ad codes through the WordPress admin in a safe and easy way.
== Description ==
Ad Code Manager gives non-developers an interface in the WordPress admin for configuring your complex set of ad codes.
To set things up, you'll need to add small template tags to your theme where you'd like your ads to appear. These are called "ad tags." Then, you'll need to define a common set of parameters for your ad provider. These parameters include all of the tag IDs you've established in your template, the default script URL, the default output, etc.
Once this code-level configuration is in place, the Ad Code Manager admin interface will allow you to add new ad codes, modify the parameters for your script URL, and define conditionals to determine when the ad code appears. Conditionals are core WordPress functions like is_page(), is_category(), or your own custom functions.
Ad Code Manager currently works with Doubleclick for Publishers and [we'd like to abstract it to other providers](https://github.com/danielbachhuber/Ad-Code-Manager/issues/4)
[Fork the plugin on Github](https://github.com/danielbachhuber/Ad-Code-Manager) and [follow our development blog](http://adcodemanager.wordpress.com/).
== Installation ==
Since the plugin is only v0.1 there are some extra steps required to configure it
1. Upload `ad-code-manager` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Incorporate ad tags in your theme template
1. Filter the plugin to make it work with your provider
1. Configure your ad codes in the WordPress admin
= Filters you should use during setup =
There are some filters which will allow you to easily customize output of the plugin:
tk
*You can take a look at fully configured DFP setup here: https://gist.github.com/1631131*
== Changelog ==
= 0.1.2 =
* More explanatory readme
* Bug fix: Save the proper value when editing actions
= 0.1.1 =
* Bug fix release
= 0.1 =
* Initial release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment