Getting Started
- A line item holds promoted products to advertise on a single retailer.
- Line items include basic settings such as start and end dates, optional budget controls, and the associated retailer where ads are served.
- Budgets can also be managed at the campaign level.
- Several reports are available to track line item performance.
- Campaigns are limited to 10,000 non-archived line items.
- Line items are automatically archived 90 days after their end date.
Endpoints
Line Item Attributes
Omitting the status field in line item update calls will result in a 400 error. Ensure that you include the status when updating line items to avoid validation issues.required
Data Type: stringAccepted Value: int64Write? NoNullable? NoDescription: Line Item ID
required
Data Type: enumAccepted Value:
auction, preferredWrite? NoNullable? NoDescription: Campaign typerequired
Data Type: stringAccepted Value: int64Write? NoNullable? NoDescription: Campaign ID
required
Data Type: stringAccepted Value: 255 char limitWrite? YesNullable? NoDescription: Line item name; must be unique within a campaign
required
Data Type: stringAccepted Value: int64Write? NoNullable? NoDescription: ID of the retailer the line item serves on
required
Data Type: dateAccepted Value: YYYY-MM-DDWrite? YesNullable? NoDescription: Line item start date in the account
timeZoneData Type: dateAccepted Value: YYYY-MM-DDWrite? YesNullable? YesDescription: Line item end date in the account
timeZone; serves indefinitely if omitted or set to null. A timestamp can be included as well if the line item is desired to end at a certain time of dayData Type: numberAccepted Value: at least 0Write? NoNullable? YesDescription: Line item lifetime spend cap; uncapped if omitted or set to
nullData Type: numberAccepted Value: at least 0Write? NoNullable? NoDescription: The amount the line item has already spent
Data Type: numberAccepted Value: 0 and
budgetWrite? NoNullable? YesDescription: Amount the line item has to remain until cap is hit; null if budget is uncappedData Type: enumAccepted Value:
active, paused, scheduled, ended, budgetHit, noFunds, draft, archivedWrite? YesNullable? NoDescription: 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 serve. To understand the conditions that will cause a status to change, check out our status pageData Type: timestampAccepted Value: ISO-8601Write? NoNullable? NoDescription: Timestamp in UTC of last line item update