Getting Started1- A line item holds promoted products to advertise on any single retailer
2 - Line items have bid settings, start & end dates, and optional budgeting & pacing controls
3 - Budgets may additionally be controlled at the campaign level
4 - Several reports are available to measure line item performance
5 - Campaigns are limited to 10,000 non-archived line items
6 - Line items are archived automatically 90 days after their end date
2 - Line items have bid settings, start & end dates, and optional budgeting & pacing controls
3 - Budgets may additionally be controlled at the campaign level
4 - Several reports are available to measure line item performance
5 - Campaigns are limited to 10,000 non-archived line items
6 - Line items are archived automatically 90 days after their end date
Endpoints
Verb | Endpoint | Description |
|---|---|---|
GET |
| Get all Preferred Deals Line items from a specific Campaign |
POST |
| Creates a Preferred Deals Line item |
GET |
| Get a specific Preferred Deals Line item |
PUT |
| Updates a specific Preferred Deals Line item |
- Create operations using the
POSTmethod expect every Required (R) field; omitting Optional (O) fields will set those fields to Default values* Update operations using thePUTmethod expect every Write (W) field; omitting these fields is equivalent to setting them tonull, if possible
Line Item Attributes
Is Nullable? -Line item IDValues: int64Read or WriteRead
Is Nullable? -Campaign IDValues: int64Read or Write Read
Is Nullable? -Line item name; must be unique within a campaingsValues: 255 char limitRead or Write Write
Is Nullable? YesLine item end date in the account `timeZone`; serves indefinitely if omitted or set to `null`Values: YYYY-MM-DDRead or Write WriteDefault Value
nullIs Nullable? YesLine item end date in the account `timeZone`; serves indefinitely if omitted or set to `null`Values: at least 0Read or Write WriteDefault Value
nullIs Nullable? -Amount the line item has already spentValues: at least 0Read or Write -Default Value
0.0Is Nullable? YesAmount the line item has remaining until cap is hit;
\null“ if budget is uncappedValues: between 0 and `budget`Read or Write -Default Value nullIs Nullable? -Way the budget will be spent, between the following values:
accelerated (Spend as fast as possible) or standard (Spend evenly)Values: accelerated, standardRead or Write -Default Value -Optional.Is Nullable? -Frequency capping objectValues: -Read or Write -Default Value -
Is Nullable? -Frequency capping numberValues:
range[0,]Read or Write -Default Value -Is Nullable? -Frequency capping typeValues:
day, sessionRead or Write -Default Value -Is Nullable? -
Is Nullable? -Page type to serve onValues: -Read or Write -Default Value
\search`, `home`, `checkout`, `category\, \productDetail`, `confirmation`, `merchandising`, `deals“Optional.Is Nullable? -Categories to serve on. Only applies to
\category`, `productDetail`and`merchandising“ page typesValues: -Read or Write -Default Value -Is Nullable? -
Is Nullable? -
Optional.Is Nullable? -Keywords to serve on. Only applies to
\search“ page typeValues: -Read or Write -Default Value -Is Nullable? -Identifier of the creative to be served with this line itemValues: -Read or Write -Default Value -
Is Nullable? -Line item status; can only be updated by a user to
\active`or`paused“; all other values are applied automatically depending on flight dates, financials, or missing attributes required for line item to serveValues: -Read or Write -Default Value \active`, `paused`, `scheduled`, `ended`, `budgetHit`, `noFunds`, `draft`, `archived“Is Nullable? -Timestamp in UTC of line item creationValues: ISO-8601Read or Write -Default Value -
Is Nullable? -Timestamp in UTC of last line item updateValues: ISO-8601Read or Write -Default Value -
Create an Onsite Display Line Item
This endpoint creates a new onsite display line item in the specified campaign Sample RequestGet All Onsite Display Line Items
This endpoint lists all onsite display line items in the specified campaign. Results are paginated usingpageIndex and pageSize query parameters; if omitted, defaults to 0 and 25, respectively. See API Response.
Sample Request
Get a Specific Onsite Display Line Item
This endpoint retrieves the specified onsite display line item. Sample RequestUpdate a Specific Onsite Display Line Item
This endpoint updates the specified onsite display line item. In this example, we update the pacing status fromaccelerated to standard. Also, note the draft state of the line item because products to be promoted have not yet been added.
Sample Request
Responses
Response | Description |
|---|---|
🔵
| Call executed with success |
🔵
| Preferred deals element created with success |
🔴
| Bad request validation error |