Skip to main content
We recommend using Line Item Core for new integrations. The unified POST /line-items endpoint is the new standard for creating and updating line items across campaign types. Sponsored Products support is not yet available in Line Item Core — the endpoints on this page remain the supported path for SP campaigns in the meantime.

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: Broad match is a subset of exact match — keywords set as broad are treated as both broad and exact matches.

Submitted Keywords

Submitted (positive) keywords target shoppers whose search phrases closely match what you specify, using PositiveExactMatch. 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

/campaigns/{campaignId}/auction-line-items

Get all auction line items from a specific campaign

POST

/campaigns/{campaignId}/auction-line-items

Create a new auction line item

GET

/auction-line-items/{lineItemId}

Get a specific auction line item

PUT

/auction-line-items/{lineItemId}

Update a specific auction line item

Field Definitions
  • Create operations using the POST method expect every Required field; omitting Optional fields will set those fields to Default values.
  • Update operations using the PUT method expect every Writeable field; omitting these fields is equivalent to setting them to null, if possible.

Line Item Attributes

Attribute

Data Type

Description

id

string

Auction line item ID, generated internally by Criteo

Accepted values: string of int64

Writeable? N / Nullable? N

name*

string

Line item name, must be unique within the Campaign

Accepted values: between 2 and 255-chars string

Writeable? Y / Nullable? N

campaignId*

string

Campaign ID, in which the respective line item belongs and generated internally by Criteo

Accepted values: string of int64

Writeable? N / Nullable? N

targetRetailerId*

string

Retailer ID where the line item will serve ads on

Accepted values: string of int64

Writeable? N / Nullable? N

startDate*

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±hh:mm. If omitted in create/update operations, UTC will be considered the default time zone

Accepted values:yyyy-mm-ddThh:mm:ss±hh:mm or yyyy-mm-dd(in ISO-8601)

Writeable? Y / Nullable? N

endDate

date

End date of the line item; serves ads indefinitely if omitted or set tonull.

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±hh:mm. If omitted in create/update operations, UTC will be considered the default time zone

Accepted values:yyyy-mm-ddThh:mm:ss±hh:mm or yyyy-mm-dd(in ISO-8601 )

Default: ifnullor absent, line item will serve ads indefinitely

Writeable? Y / Nullable? Y

budget

decimal

Lifetime spend cap of line item (optional), uncapped if omitted or set tonull

Accepted values:budget≥ 0.0

Default:null

Writeable? Y / Nullable? Y

budgetSpent

decimal

Budget amount the line item has already spent

Accepted values:budgetSpent≥ 0.0

Default:0.0

Writeable? N / Nullable? N

budgetRemaining

decimal

Amount the line item has remaining until cap is hit;nullif budget is uncapped

Accepted values: 0 ≤budgetRemainingbudget

Default:0.0

Writeable? N / Nullable? Y

monthlyPacing

decimal

Amount the line item can spend per calendar month (optional), in the Account time zone

Accepted values:monthlyPacing≥ 0.0 (ornull)

Default:0.0

Writeable? Y / Nullable? Y

dailyPacing

decimal

Amount the line item can spend per calendar month (optional), in the Account time zone

It resets each day overwritten by calculation ifisAutoDailyPacingis enabled; uncapped if omitted of set tonull

Accepted values:dailyPacing≥ 0.0 (ornull)

Default:0.0

Writeable? Y / Nullable? Y

isAutoDailyPacing*

boolean

To activate, either line itemendDateand budget, ormonthlyPace, must be specified; overwritesdailyPacingwith calculation if not set prior

Accepted values:true,false

Default:false

Writeable? Y / Nullable? N

bidStrategy

enum

Indicate whether Adaptive CPC is enabled or not

automatedwill trigger a validation against themaxBidto ensure that it is present.

manualwill trigger a validation against thetargetBidto ensure that a bid for the line item have been input.

Accepted values:automated,manual

Writeable? Y / Nullable? N

optimizationStrategy

enum

Bid algorithm optimizing for sales conversions, sales revenue or clicks

Accepted values:conversion,revenue,clicks

Default:conversion

Writeable? Y / Nullable? N

targetBid*

decimal

If optimizing forconversionorrevenue, a target average amount to bid (as each bid is modulated up/down by our optimization algorithm); else bids stay constant, if optimizing forclicks

Bidding is uncapped if omitted or set tonull

ℹ️ Note:

  • Must meetminBidfor line item to deliver ads, which depends on selected products (available through the Catalog)
  • Input excludes platform fees

Accepted values: at least the greatest value ofminBidacross all products in the line item

Default:0.3

Writeable? Y / Nullable? N

maxBid

decimal

If optimizing forconversionorrevenue, the maximum amount allowed to bid for each display (respected regardless oftargetBid). Does not apply if optimizing forclicks

Bidding is uncapped if omitted or set tonull

ℹ️ Note:

  • Must meetminBidfor line item to deliver ads, which depends on selected products (available through the Catalog)
  • Input excludes platform fees

Accepted values: at least0.1

Writeable? Y / Nullable? Y

status

enum

Line item status; can only be updated by a user toactiveorpaused; all other values are applied automatically depending on financials, flight dates, or missing attributes required for line item to serve.

To understand the conditions that will cause a status to change, check out Campaign & Line Item Status

Accepted values:active,paused,scheduled,ended,budgetHit,noFunds,draft,archived

Writeable? Y / Nullable? N

flightSchedule

object

Settings allowing custom scheduling for serving ads serving, organized by a combination oflegs.

In case ofnullor emptylegs, the line item status will remain unchanged along the weekdays and hours, as long as other delivery parameters are respected - see Campaign & Line Item Status

Accepted values: see below

Writeable? Y / Nullable? Y

keywordStrategy

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:

  • genericAndBranded: enables users who submit general keywords and also keywords related to the brand(s) to target the promoted products associated with the line item (default behavior)
  • conquesting: enables users who submit keywords identified as competitor(s) from the brand(s) related to the promoted products associated with the line item (manual review required)
  • genericBrandedAndConquesting: enables users who submit keywords related to both brand(s) and competitor(s) from the promoted products of line item (manual review required)

Default:genericAndBranded

Writeable? Y / Nullable? N

createdAt

timestamp

Timestamp of line item creation, in UTC

Accepted values:yyyy-mm-ddThh:mm:ss±hh:mm(in ISO-8601)

Writeable? N / Nullable? N

updatedAt

timestamp

Timestamp of last line item update, in UTC

Accepted values:yyyy-mm-ddThh:mm:ss±hh:mm(in ISO-8601)

Default: same ascreatedAt

Writeable? N / Nullable? N

(*) Required for create operations
Field Definitions
  • 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

dayOfWeek

enum

Day of the week or day type that the respectivelegshould be effective, i.e., the respective line item should be activated (in case all other conditions are satisfied)

Accepted values:Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Everyday,Weekdays,Weekends

Writeable? Y / Nullable? N

startTime

time

Start time that the respectivelegshould be effective, i.e., the respective line item should be activated (in case all other conditions are satisfied)

ℹ️ This time value will be interpreted considering the time zone provided in thestartDate/endDateabove

Accepted values:hh:mm, with values between00:00and23:59

Writeable? Y / Nullable? N

endTime

time

End time that the respectivelegshould be effective, i.e., the respective line item should be deactivated (in case all other conditions are satisfied)

ℹ️ This time value will be interpreted considering the time zone provided in thestartDate/endDateabove

Accepted values:hh:mm, with values between00:00and23:59

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 using offset and limit query parameters; if omitted, defaults to 0 and 500, respectively. See API Response. Sample Request
Sample Response

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 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 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)
Also, note the draft state of the line item because products to be promoted have not yet been added. Sample Request
Sample Response

Responses

Responses

Description

🔵200

Call completed with success

🔵201

Line item created with success

🔴400

Bad request leading to a validation error

Common validation errors

  • InvalidisAutoDailyPacing: Cannot turn onIsAutoDailyPacingand add adailyPacingvalue. Only one of the two options can be used
  • Conquestingnot enabled:Conquestingis not enabled for the specified retailer, remove thekeywordStrategyproperty from the creation request.