Skip to main content
A new unified Line Item Core endpoint is replacing the type-specific creation routes. This page remains available in the meantime.
  • 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-items Get all Preferred Deals Line items from a specific Campaign
  • POST /campaigns/{campaignId}/preferred-line-items Creates a Preferred Deals Line item
  • GET /preferred-line-items/{lineItemId} Get a specific Preferred Deals Line item
  • PUT /preferred-line-items/{lineItemId} Updates a specific Preferred Deals Line item
  • Create operations using the POST method expect every Required (R) field; omitting Optional (O) fields will set those fields to Default values* Update operations using the PUT method expect every Write (W) field; omitting these fields is equivalent to setting them to null, if possible

Line Item Attributes

Attribute

Description

Values

Required

Default

Write

Nullable

idstring

Line item ID

int64

campaignIdstring

Campaign ID

int64

Required

namestring

Line item name; must be unique within acampaign

255 char limit

R

Write

targetRetailerIdstring

ID of theretailerthe line item serves on

int64

R

startDatedate

Line item start date in theaccounttimeZone

YYYY-MM-DD

R

W

endDatedate

Line item end date in theaccounttimeZone; serves indefinitely if omitted or set tonull

YYYY-MM-DD

R

null

W

Yes

budgetnumber

Line item lifetime spend cap;

at least 0

R

null

W

Yes

budgetSpentnumber

Amount the line item has already spent

at least 0

0.0

budgetRemainingnumber

Amount the line item has remaining until cap is hit;nullif budget is uncapped

between 0 andbudget

null

Yes

pacingenum

Way the budget will be spent, between the following values:

accelerated(Spend as fast as possible) orstandard(Spend evenly)

accelerated,standard

R

cappingobject

Frequency capping object

O

capping:rangenumber

Frequency capping number

rangeline

R

capping:typeenum

Frequency capping type

day,session

R

pageobject

page:pageTypeenum

Page type to serve on

search,home,checkout,category,productDetail,confirmation,merchandising,deals

R

page:categoriesobjects array

Categories to serve on. Only applies tocategory,productDetailandmerchandisingpage types

O

page:categories:categoryId:value

page:categories:includeChildren:value

page:searchKeywordsstring array

Keywords to serve on. Only applies tosearchpage type

O

creativeIdstring

Identifier of the creative to be served with this line item

R

statusenum

Line item status; can only be updated by a user toactiveorpaused; all other values are applied automatically depending on flight dates, financials, or missing attributes required for line item to serve

active,paused,scheduled,ended,budgetHit,noFunds,draft,archived

createdAttimestamp

Timestamp in UTC of line item creation

ISO-8601

updatedAttimestamp

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 Request
Sample Response

Get All Preferred Deals Line Items

This endpoint lists all preferred deals line items in the specified campaign. Results are paginated. Sample Request
Sample Response

Get 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 from accelerated to standard. Also note the draft state of the line item because products to be promoted have not yet been added. Sample Request
Sample Response