Site icon Hip-Hop Website Design and Development

How to implement AppNexus ads in Cheap WordPress maintenance support plans 8

One of our clients requested to integrate AppNexus ads with their WordPress maintenance support plans 8 site. The requirements were very simple:

Ability to display ads as blocks.
Ad blocks should be configurable: tagId, Sizes. And pass those variables via apntag.defineTag().
Ability to pass global page options via apntag.setPageOpts().
Since there wasn’t any plugin that would support this I decided to create a plugin that will be very easy to use and at the same time will be extendable and useful in other projects.

The plugin comes with a simple PHP class that helps to generate pageOpts from hook_page_attachments(). You may create your own class using that class as an example.
Source: New feed