Campaigns

The Campaign object contains the details of the campaign the advertiser would like to run, along with a list of units. It starts out as a proposal, then moves into a booked state once purchased.

The Campaign Object

The campaign can be of 2 types:

  • Direct

  • Rtb

In addition to standard data, the campaign object involves three other sub-objects: geography, resolutions, and units. These are detailed below.

Proposal Object

When submitting a campaign you use a proposal object like below

campaign_type: direct | rtb
advertiser_id: integer
start_date: string (Format: MM/DD/YYYY)
end_date: string (Format: MM/DD/YYYY)
target_budget_cents: integer (USD cents)
media_types: array[media_types object] (optional)
placements: array[placements object] (optional)
geographies: array[geography object] (optional)

The Media Types Object

You can call the media type

The Geography Object

By default the API only supports U.S.-based inventory, but non-U.S. inventory can be included upon request.

The API currently supports three ways of targeting via geography:

  • Nielsen DMA IDs

  • U.S. ZIP Codes.

  • Market IDs

You can use both zip codes and DMAs/Markets in the same request.

This is the expected format for the geography object:

Important: Please note that DMA ids and Market ids are integers and zip codes are strings.

Endpoints

Create Campaign

create campaign

post
Header parameters
X-PARTNER-TOKENstringOptional
Body
campaign_typestring · min: 1Required
partner_idnotRequired
advertiser_idnotRequired
start_datestring · date · min: 1Required
end_datestring · date · min: 1Required
target_budget_centsnotRequired
Responses
post
/v1/campaigns
200

successful

Get Campaign

List Campaigns

list campaigns

get
Query parameters
start_datedateOptional
end_datedateOptional
campaign_typeanyOptional
statusstringOptional
Header parameters
X-PARTNER-TOKENstringOptional
Responses
get
/v1/campaigns
200

successful

Book a Campaign

When you book a campaign, in our system we'll execute against the proposed inventory matching your preferences.

You need to have approved creatives for the campaign in order to book an auction campaign. Our system will automatically match each unit with a matching creative based on the resolution.

You can submit more than one creative per unit and they will automatically alternate.

If there are units that don't have a matching creative resolution, the booking will not be completed and the endpoint and will return a 402 along with the resolutions that are missing.

Last updated