Skip to main content
Getting StartedLearn more about how open auction line items work with our API here!
 

Endpoints

Info
  • 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

Data Type: stringDescription: Line Item IDAccepted Value: int64Default Values: NoneWrite? NoNullable? No
required
Data Type: stringDescription: Campaign IDAccepted Value: int64Default Value: NoneWrite? NoNullable? No
required
Data Type: stringDescription: Line item name; must be unique within a campaignAccepted Value: 255 char limitDefault Value: NoneWrite? YesNullable? No
required
Data Type: stringDescription: ID of the retailer the line item serves onAccepted Value: int64Default Value: NoneWrite? NoNullable? No
required
Data Type: dateDescription: Line item start date in the account timeZoneAccepted Value: YYYY-MM-DDDefault Value: NoneWrite? YesNullable? No
Data Type: dateDescription: Line item end date in the account timeZone; serves indefinitely if omitted or set to nullAccepted Value: YYYY-MM-DDDefault Value: nullWrite? YesNullable? Yes
Data Type: numberDescription: Line item lifetime spend cap; uncapped if omitted or set to nullAccepted Value: at least 0Default Value: nullWrite? YesNullable? Yes
Data Type: numberDescription: Amount the line item has already spentAccepted Value: at least 0Default Value: 0.0Write? NoNullable? No
Data Type: numberDescription: Amount the line item has remaining until cap is hit; null if budget is uncappedAccepted Value: between 0 and budgetDefault Value: nullWrite? NoNullable? Yes
Data Type: numberDescription: Amount the line item can spend per calendar month in the account timeZone; resets each calendar month; uncapped if omitted or set to nullAccepted Value: at least 0Default Value: nullWrite? YesNullable? Yes
Data Type: numberDescription: Amount the line item can spend per day in the account timeZone; resets each day; overwritten by a calculation if isAutoDailyPacing is configured; uncapped if omitted or set to nullAccepted Value: at least 0Default Value: nullWrite? YesNullable? Yes
required
Data Type: booleanDescription: To activate, either line item endDate and budget, or monthlyPace, must be specified; overwrites dailyPacing with a calculation if not set priorAccepted Value: true, falseDefault Value: falseWrite? YesNullable? No
Data Type: enumDescription: Bid algorithm optimizing for sales conversions, sales revenue, or clicksAccepted Value: conversion, revenue, clicksDefault Value: conversionWrite? YesNullable? No
required
Data Type: numberDescription: If optimizing for conversion or revenue, a target average amount to bid because each bid is modulated up or down by our optimization algorithm; bids stay constant if optimizing for clicks; must meet minBid for line item to serve; minBid depends on selected products and is retrieved through the catalog; input excludes platform feesAccepted Value: at least the greatest value of minBid across all products on the line itemDefault Value: 0.3Write? YesNullable? No
Data Type: numberDescription: If optimizing for conversion or revenue, the maximum amount allowed to bid for each bid; respected regardless of targetBid; must meet minBid for line item to serve; minBid depends on selected products and is retrieved through the catalog; bidding is uncapped if omitted or set to null; does not apply if optimizing for clicks; input excludes platform feesAccepted Value: at least 0.01Default Value: nullWrite? YesNullable? Yes
Data Type: enumDescription: 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 page.Accepted Value: active, paused, scheduled, ended, budgetHit, noFunds, draft, archivedDefault Value: NoneWrite? NoNullable? No
Data Type: timestampDescription: Timestamp in UTC of line item creationAccepted Value: ISO-8601Default Value: NoneWrite? NoNullable? No
Data Type: timestampDescription: Timestamp in UTC of last line item updateAccepted Value: ISO-8601Default Value: NoneWrite? NoNullable? No

Create an Onsite Sponsored Products Line Item

This endpoint creates a new Onsite Sponsored Products line item in the specified campaign. Sample Request
Sample Response

Get All Onsite Sponsored Products Line Items

This endpoint lists all Onsite Sponsored Products line items in the specified campaign. Results are paginated Sample Request
Sample Response

Get a Specific Onsite Sponsored Products Line Item

This endpoint retrieves the specified Onsite Sponsored Products line item Sample Request
Sample Response

Update a Specific Onsite Sponsored Products Line Item

This endpoint updates the specified Onsite Sponsored Products line item. In this example, we enable auto daily pacing by setting a monthly pace simultaneously. Note that with auto daily pacing enabled, daily pacing is automatically calculated and overwrites its previous value, if any. Also, note the draft state of the line item because products to be promoted have not yet been added. Sample Request
Sample Response

Responses