Endpoints
Verb | Endpoint | Description |
|---|---|---|
GET |
| Get all Open Auction Line items from a specific Campaign |
POST |
| Create an Open Auction Line item |
GET |
| Get a specific Open Auction Line item |
PUT |
| Update a specific Open Auction Line item |
- Create operations using the
POSTmethod expect every Required field; omitting Optional fields will set those fields to Default values - Update operations using the
PUTmethod expect every Writeable field; omitting these fields is equivalent to setting them tonull, if possible
Line Item Attributes
Attribute | Data Type | Description |
|---|---|---|
| string | Auction line item ID, generated internally by Criteo Acceptable values: int64 Writeable? N / Nullable? N |
| string | Line item name, must be unique within theCampaign Accepted values: between 2 and 255-chars string Writeable? Y / Nullable? N |
| string | CampaignID, in which the respective line item belongs and generated internally by Criteo Acceptable values: int64 Writeable? N / Nullable? N |
| string | RetailerID where the line item will serve ads on Accepted values: int64 Writeable? N / Nullable? N |
| date | Line item start date, in theAccounttimezone Accepted values: Writeable? Y / Nullable? N |
| date | Line item end date (optional), in theAccounttimezone Accepted values: Writeable? Y / Nullable? Y |
| decimal | Lifetime spend cap of line item (optional), uncapped if omitted or set to Accepted values: Default: Writeable? Y / Nullable? Y |
| decimal | Amount the line item has already sent Accepted values: Default: Writeable? N / Nullable? N |
| decimal | Amount the line item has remaining until cap is hit; Accepted values: 0 ≤ Default: Writeable? N / Nullable? Y |
| decimal | Amount the line item can spend per calendar month (optional), in theAccounttimezone Accepted values: Default: Writeable? Y / Nullable? Y |
| decimal | Amount the line item can spend per calendar month (optional), in theAccounttimezone It resets each day overwritten by calculation if Accepted values: Default: Writeable? Y / Nullable? Y |
| boolean | To activate, either line item Accepted values: Default: Writeable? Y / Nullable? N |
| enum | Bid algorithm optimizing for sales conversions, sales revenue or clicks Accepted values: Default: Writeable? Y / Nullable? N |
| decimal | If optimizing for Bidding is uncapped if omitted or set to ℹ️ Note:
Accepted values: at least the greatest value of Default: Writeable? Y / Nullable? N |
| decimal | If optimizing for Bidding is uncapped if omitted or set to ℹ️ Note:
Accepted values: at least Writeable? Y / Nullable? Y |
| enum | Line item status, can only be updated by user to Other values are applied automatically depending start/end dates, financials or missing attributes required for line item to deliver ads. To understand the conditions that cause status changes, check outCampaign & Line Item Status Accepted values: Writeable? N / Nullable? N |
| timestamp | Timestamp of line item creation, in UTC Accepted values: Writeable? N / Nullable? N |
| timestamp | Timestamp of last line item update, in UTC Accepted values: Writeable? N / Nullable? N |
- Writeable (Y/N): Indicates if the field can be modified in requests.
- Nullable (Y/N): Indicates if the field can accept null/empty values.
- Primary Key: A unique, immutable identifier of the entity, generated internally by Criteo. Primary keys are typically ID fields (e.g.,
retailerId,campaignId,lineItemId) and are usually required in the URL path.
Create an Onsite Sponsored Products Line Item
This endpoint creates a new Onsite Sponsored Products line item in the specified campaign. Sample RequestGet all Onsite Sponsored Products Line Items
This endpoint lists all Onsite Sponsored Products 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 Sponsored Products Line Item
This endpoint retrieves the specified Onsite Sponsored Products line item Sample RequestUpdate 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 RequestResponses
Responses | Description |
|---|---|
🔵 | Call completed with success |
🔵 | Line item created with success |
🔴 | Bad request leading to a validation error Common validation errors
|