reddit/reddit-plugin-adzerk — pull request #6 by bsimpson63 (2013-06-19 19:00:47+00:00)
Title: Use adzerk as ad server for selfserve

companion to https://github.com/reddit/reddit-public/pull/1355

This update includes:
* an api wrapper for adzerk
* methods to create and manage adzerk objects associated with reddit promote objects
* methods to request ads from adzerk to insert into subreddit listings or the spotlight

Adzerk object hierarchy http://help.adzerk.com/Hierarchy_of_Adzerk

Adzerk objects map to reddit objects like:
* adzerk campaign: reddit Link (promoted Link)
* adzerk flight: reddit PromoCampaign
* adzerk creative: reddit Link (this is essentially just the link title and url)

Also, there's a adzerk creative flight map that is used to link a creative to a flight. This is redundant for us because each reddit PromoCampaign is associated with a single reddit Link, but is needed for adzerk because adzerk flights can contain multiple creatives (or a single creative could be included in multiple flights).