Introduction
In addition to ad-set-level bid targets, Criteo permits bid customization for each product category associated with an ad set. For example, you may wish to set higher bids for particular brands or product lines.Get Category Bids
The category bids associated with a specific Ad Set can be retrieved via aGET request to the /ad-sets endpoint, with the Ad Set ID as a URL parameter and /category-bids specified.
The API will return an array of categories associated with the ad set:
Sample Response
IDThe Id is composite of the Ad Set Id, a Criteo category ID and a Category level (1, 2 or 3). In the above example, the id of the category
shoes is composed of:- Ad set ID:
1234567 - Category ID:
432 - Category Level:
1
Default BidAll categories enabled will be shown in the results. If a specific bid is not set for an available category, it will display the bid amount configured at the ad set level.
Update Category Bids
You can update the bid amount of one or more categories of an Ad Set by making aPATCH request to the /ad-sets endpoint, with the Ad Set ID as a URL parameter and /category-bids specified.
For example, the following call would update the bid values for the category Shoes and Socks on the previous GET sample:
data. These will contain only two parameters, type and id.
Sample Response - Success
Reset Category BidSetting the bid amount of a category to the same bid amount at the ad set level will reset the category bid behavior for that category. Thus, this update will make any subsequent changes on the ad set bid apply to that category bid.
Updating Multiple Category BidsThis endpoint allows you to update several category bids within a single call. Thus it`s important to understand the partial success behavior.
Validation Errors
In addition to general API errors, you may encounter validation errors when retrieving or updating a category bid. Below is a list of error codes for category bid validation and a more detailed description of their meaning.campaign--category-bid-get-check--invalid-bidding-configCategory bid is only available on ad set with CPC-based or CPM-based cost controllers. If your ad set uses other cost controller, you must refer to the Display Multipliers.
campaign--category-bid-update-check--category-not-enabledThe category targeted by the category bid is not enabled.
campaign--category-bid-update-check--ad-set-not-enabledThe ad set status is invalid, and the change is not allowed (e.g., the ad set is archived).
campaign--category-bid-update-check--invalid-bid-amountThe bid amount provided is not in the range of accepted values.
campaign--category-bid-update-check--cannot-update-same-category-bid-amount-multiple-timesIt is not possible to update the same category bid amount multiple times in the same request.