Skip to main content
A Few Things to KnowShoppers browsing through the retailer’s search page may utilize search for phrases associated with line item products where the line item may not be allowed to search on that page. Similar to this scenario, the shopper can also enter search phrases that align with products permitted to serve on a page. The keyword API endpoint allows you to control your Onsite Sponsored Products line item by providing visibility to users what keywords are applied to line items, and also allows for users to determine which keyword to target positively or negatively. The endpoint can also provide keyword bidding capabilities to optimize line items based on relevant keywords.Check out the Onsite Sponsored Products page for a complete summary of Criteo’s keyword service.

Endpoints

Keyword Attributes

  • bid
  • inputKeywords
  • reviewState
  • createdAt
  • updatedAt | | matchType* | enum | Matching algorithm type to be used when comparing this keyword with shopper search phrases.Accepted values:- PositiveExactMatch: normalized keyword is an exact match for the normalized search phrase bid
  • NegativeExactMatch: normalized keyword is an exact match for the normalized search phrase do not bid
  • NegativeBroadMatch: normalized keyword is a substring of the normalized search phrase do not bid Default: PositiveExactMatch Writeable? N / Nullable? N | | reviewState | enum | Status of Keyword review, only applicable for PositiveExactMatch match type keywords. Keywords not reviewed by the automatic keyword service will be reviewed and approved by the retailer.Accepted values:- InReview: keyword has been submitted manually, and the review is still pending
  • Approved: keyword was approved manually
  • AutoApproved: keywo rd was approved automatically
  • Rejected: keyword was rejected manually
  • AutoRejected: keyword was rejected automatically
  • Recommended: keyword was recommended by our keyword model Default: InReview Writeable? N / Nullable? N | | bid | decimal | The bid override for the positive keyword. The keyword will use the default line item bid if the value is null. The currency of the bid is the default currency for the retailerAccepted values: retailer’s minBidbid ≤ line-item’s maxBid, available in the endpoints detailed in Catalog Endpoints and Onsite Display Line Items, respectively- *NOTE:** Keyword bids must be equal or greater than the retailer minBid and equal or less than the line item maxBid.Default: null Writeable? Y / Nullable? Y | | isDeleted | boolean | Control flag to add or remove the keyword from the line-itemAccepted values: true / false Writeable? N / Nullable? N | | inputKeywords* | object | Keywords structure associated with line-item containing normalized keyword phrases and organized by match type.Parameters:- positiveExact: list of supplied positive exact phrases
  • negativeExact: list of supplied negative exact phrases
  • negativeBroad: list of supplied negative broad phrases | | phrase | string | Raw text of the keyword to be added or removedAccepted values: up to 255-chars string Writeable? Y / Nullable? N | | createdAt | timestamp | Timestamp when keyword was configured in the line-item (or recommended to line-item)Accepted values: yyyy-mm-ddThh:mm:ss(in ISO-8601) Writeable? N / Nullable? N | | updatedAt | timestamp | Timestamp when keyword was last modified in the line-item (or recommended to line-item)Accepted values: yyyy-mm-ddThh:mm:ss(in ISO-8601) Writeable? N / Nullable? N |
*Required

Get Keywords by Line Item

Sample Request
Sample Response
This endpoint retrieves a collection of recommended keywords for a line item, created automatically by our keyword models.
A FEW THINGS TO KNOW
  • Only the top 100 keywords will be returned
  • Automatic recommended keywords can change day to day, as are determined based on click volumes by users on Retailer’s environment. Although significant changes are not expected, it is possible that the long tail of the top 100 keywords change slightly
Sample Request
Sample Response

Add or remove Keyword from Line Item

Negative Targeting v1The negative keyword targeting in this API will eventually replace the Negative Keyword Targeting endpoints. You may continue using those endpoints without disrupting your services. We recommend reviewing and testing the new Keyword endpoints to prepare for a future migration to these new endpoints.
Sample Request
Sample Response 200 successful status will return an empty object array

Set bid on Keyword

💡Info: Bids can be set on a keyword at any time, even when the keyword are still InReview state Sample Request
Sample Response 200 successful status will return an empty object array

Responses

  • The call to set keyword bid to the line item was executed successfully | | 🔴 400 - Bad Request | Setting a bid for a positive keyword that doesn’t exist on the line item. Error Message "On line item {lineItemId} normalized keyword \"{keyword}\"/en_US not found"Setting a keyword bid above the line-item maxBid value will result in a 400 bad request error message. In this example, the maxBid value is at least 0.40. Error Message "Invalid bid value, bid greater than maximum of 1.00000000, found for keyword: <keyword>"Setting a keyword bid below the retailer minBid value will result in a 400 bad request error message. In this example, the minBid value is at least 0.40. Error Message "Invalid bid value, bid less than minimum of 0.4000, found for keyword: <keyword>" |