Introduction
keywords endpoints allows you to control your Onsite Sponsored Products line item by providing visibility to users on what keyword(s) are applied to line items. This allows to determine which keyword(s) to target positively or negatively.The endpoint can also provide keyword bidding capabilities to optimize line items based on relevant keywords.Visit the Onsite Sponsored Products page for a complete summary of Criteo’s keyword service.search endpoint evaluates each query against product eligibility rules configured for the current page or context.
- Queries may reference products that are not eligible to be displayed on the page. These products will be excluded from the search results.
- Queries may also match products that are eligible to be displayed. These products can be returned in the response.
Endpoints
Verb | Endpoint | Description |
|---|---|---|
GET |
| Retrieve a set of positive and negative keywords for a line item |
GET |
| Retrieve a collection of recommended keywords for a line item |
POST |
| Add or remove keywords from a line item |
POST |
| Set a bid override at keyword level |
Keyword Attributes
Attribute | Data Type | Description |
|---|---|---|
| string | Line Item ID, generated internally by Criteo Accepted values: string of int64 Writeable? N / Nullable? N |
| object | Keywords structure, indexed by normalized keyword phrases each of them containing structure of:
|
| enum | Matching algorithm type to be used when comparing this keyword with shopper search phrases. Accepted values:
Default: Writeable? N / Nullable? N |
| enum | Status of Keyword review, only applicable for Keywords not reviewed by the automatic keyword service will be reviewed and approved by the retailer. Accepted values:
Default: Writeable? N / Nullable? N |
| decimal | The bid override for the positive keyword. The keyword will use the default line item bid if the value is Accepted values: retailer’s Default: Writeable? Y / Nullable? Y |
| boolean | Control flag to add or remove the keyword from the line-item Accepted values: Writeable? N / Nullable? N |
| object | Keywords structure associated with line-item containing normalized keyword phrases and organized by match type. Parameters:
|
| string | Raw text of the keyword to be added or removed Accepted values: up to 255-chars string Writeable? Y / Nullable? N |
| timestamp | Timestamp when keyword was configured in the line-item (or recommended to line-item) Accepted values: Writeable? N / Nullable? N |
| timestamp | Timestamp when keyword was last modified in the line-item (or recommended to line-item) 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.
Get Keywords by Line Item
Sample RequestGet Recommended Keywords by Line Item
This endpoint retrieves a collection of recommended keywords for a line item, created automatically by our keyword models.Add or remove Keyword from Line Item
200 successful status will return an empty object array
Set bid on Keyword
Bids can be set on a keyword at any time, even when the keywords are still in theInReview state
Sample Request
Responses
Response | Description |
|---|---|
🔵 | Call completed with success |
🔵 |
|
🔴
| Setting a bid for a positive keyword that doesn’t exist on the line item. Error Message
Setting a keyword bid above the line-item Error Message
Setting a keyword bid below the retailer Error Message
|