Keyword Targeting
Criteo’s API lets you control search placements based on keywords shoppers use. You can specify keywords to target or avoid, and set bids on the most relevant terms.Negative Keywords
Negative keyword targeting lets you exclude keywords from triggering your ads. Two match types are supported:Submitted Keywords
Submitted (positive) keywords target shoppers whose search phrases closely match what you specify, usingPositiveExactMatch. You can also prune matches using NegativeExactMatch and NegativeBroadMatch.
When you submit a positive keyword it enters a pending state. Criteo’s system will automatically approve or reject it:
- Already mapped in the keyword model → approved automatically
- Contains a competitor brand name → rejected and deactivated
- Cannot be validated automatically → sent to manual review
Keyword Bidding
Keyword bidding gives granular control over spend by allowing specific bids per keyword. The bid must respect the line item’s minimum CPC. If a maximum CPC is set on the line item, it is always enforced even if a keyword bid exceeds it. Bids only take effect once a keyword is approved.Endpoints
Method | Endpoint | Description |
|---|---|---|
GET |
| Get all auction line items from a specific campaign |
POST |
| Create a new auction line item |
GET |
| Get a specific auction line item |
PUT |
| Update a specific auction line item |
Createoperations using thePOSTmethod expect every Required field; omitting Optional fields will set those fields to Default values.Updateoperations using thePUTmethod 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 Accepted values: string of int64 Writeable? N / Nullable? N |
| string | Line item name, must be unique within the Campaign Accepted values: between 2 and 255-chars string Writeable? Y / Nullable? N |
| string | Campaign ID, in which the respective line item belongs and generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| string | Retailer ID where the line item will serve ads on Accepted values: string of int64 Writeable? N / Nullable? N |
| date | Start date of the line item, used to schedule its activation and start serving ads. To understand the conditions that will cause a status to change, check out Campaign & Line Item Status ℹ️ This now supports datetime offset to define the desired time zone, in the format of Accepted values: Writeable? Y / Nullable? N |
| date | End date of the line item; serves ads indefinitely if omitted or set to To understand the conditions that will cause a status to change, check out Campaign & Line Item Status ℹ️ This now supports datetime offset to define the desired time zone, in the format of Accepted values: Default: if 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 | Budget amount the line item has already spent 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 the Account time zone Accepted values: Default: Writeable? Y / Nullable? Y |
| decimal | Amount the line item can spend per calendar month (optional), in the Account time zone 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 | Indicate whether Adaptive CPC is enabled or not
Accepted values: 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 a user to To understand the conditions that will cause a status to change, check out Campaign & Line Item Status Accepted values: Writeable? Y / Nullable? N |
| object | Settings allowing custom scheduling for serving ads serving, organized by a combination of In case of Accepted values: see below Writeable? Y / Nullable? Y |
| enum | Keyword strategy used to target users according to the promoted products appended in the line item and their competitors ℹ️ Note: “Conquesting” is not available for all retailers; when creating a new line item for those retailers, a validation error will return which can be avoided by omitting this attribute from the request Accepted values:
Default: Writeable? Y / 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: Default: same as 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.
Flight Schedule Legs Attributes
Attribute | Data Type | Description |
|---|---|---|
| enum | Day of the week or day type that the respective Accepted values: Writeable? Y / Nullable? N |
| time | Start time that the respective ℹ️ This time value will be interpreted considering the time zone provided in the Accepted values: Writeable? Y / Nullable? N |
| time | End time that the respective ℹ️ This time value will be interpreted considering the time zone provided in the Accepted values: Writeable? Y / Nullable? N |
Get all Onsite Sponsored Products Line Items
This endpoint lists all Onsite Sponsored Products line items in the specified campaign. Results are paginated usingoffset and limit query parameters; if omitted, defaults to 0 and 500, respectively. See API Response.
Sample Request
Create an Onsite Sponsored Products Line Item
This endpoint creates a new Onsite Sponsored Products line item in the specified campaign. Sample RequestGet 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 are:- renaming the line item and start date, to be scheduled to deliver during Q4.
- enabling 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.
- modifying the day scheduling to deliver ads during extended weekend evenings only, i.e., Fridays, Saturdays and Sundays from 18h until 0h (local time)
Responses
Responses | Description |
|---|---|
🔵 | Call completed with success |
🔵 | Line item created with success |
🔴 | Bad request leading to a validation error Common validation errors
|