- A line item holds promoted products to advertise on any single retailer
- Line items have bid settings, start & end dates, and optional budgeting & pacing controls
- Budgets may additionally be controlled at the campaign level
- Several reports are available to measure line item performance
- Campaigns are limited to 10,000 non-archived line items
- Line items are archived automatically 90 days after its end date
Endpoints
GET /campaigns/{campaignId}/preferred-line-itemsGet all Preferred Deals Line items from a specific CampaignPOST /campaigns/{campaignId}/preferred-line-itemsCreates a Preferred Deals Line itemGET /preferred-line-items/{lineItemId}Get a specific Preferred Deals Line itemPUT /preferred-line-items/{lineItemId}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
Attribute | Description | Values | Required | Default | Write | Nullable |
|---|---|---|---|---|---|---|
| Line item ID | int64 | ||||
| Campaign ID | int64 | Required | |||
| Line item name; must be unique within acampaign | 255 char limit | R | Write | ||
| ID of theretailerthe line item serves on | int64 | R | |||
| Line item start date in theaccount | YYYY-MM-DD | R | W | ||
| Line item end date in theaccount | YYYY-MM-DD | R |
| W | Yes |
| Line item lifetime spend cap; | at least 0 | R |
| W | Yes |
| Amount the line item has already spent | at least 0 |
| |||
| Amount the line item has remaining until cap is hit; | between 0 and |
| Yes | ||
| Way the budget will be spent, between the following values:
|
| R | |||
| Frequency capping object | O | ||||
| Frequency capping number | rangeline | R | |||
| Frequency capping type |
| R | |||
| ||||||
| Page type to serve on |
| R | |||
| Categories to serve on. Only applies to | O | ||||
| ||||||
| ||||||
| Keywords to serve on. Only applies to | O | ||||
| Identifier of the creative to be served with this line item | R | ||||
| Line item status; can only be updated by a user to |
| ||||
| Timestamp in UTC of line item creation | ISO-8601 | ||||
| Timestamp in UTC of last line item update | ISO-8601 |
Create a Preferred Deals Line Item
This endpoint creates a new preferred deals line item in the specified campaign Sample RequestGet All Preferred Deals Line Items
This endpoint lists all preferred deals line items in the specified campaign. Results are paginated. Sample RequestGet a Specific Preferred Deals Line Item
This endpoint retrieves the specified preferred deals line item.Update a Specific Preferred Deals Line Item
This endpoint updates the specified preferred deals 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