Skip to main content

Overview

A campaign groups line items that share attribution settings, flight dates and budget. It is the entity you create first, before adding the line items that control delivery. The campaigns endpoint is shared across campaign types. It exposes common fields through one contract instead of separate Sponsored Products and Onsite Display routes. The campaignType attribute is the discriminator. Type-specific fields are carried in a matching details object alongside the common attributes. Include only the details objects supported by the campaign type.
scheduleDetails and budgetDetails apply to SponsoredProducts campaigns only. OnsiteDisplay campaigns reject them.objective accepts Manual for either type. The automatic objectives Clicks, Conversion and Revenue require a SponsoredProducts campaign with the Auction buy type.

Endpoints Overview

Create a Campaign

Path parameter

The authenticated user must have permission to manage campaigns on the requested account.

Request attributes

All attributes below are nested under data.attributes in the request envelope, and the resource type is CampaignCreateModel.

Attribution settings attributes

Defaults applied when a setting is omitted:

Schedule details attributes

Budget details attributes

Sample request

An OnsiteDisplay campaign omits scheduleDetails and budgetDetails:

Response attributes

All attributes below are nested under data.attributes in the response envelope, and the resource type is CampaignResponseModel. Alongside the attributes accepted on creation, the response carries:

Sample response

Responses

Validation failures return type: validation and a code identifying the rule that rejected the request.