Retailer Search
Introduction
A retailer offers a selection of products from multiple brands.
Retailers act as publishers, providing advertising inventory for brands to promote their products.
An account can have access to one or more retailers, with this access typically managed by Criteo.
A retailer typically allows multiples types of pages to be targeted. A page is an inventory that can be targeted by Campaigns and Line Items with specific configurations.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /accounts/{accountId}/retailers/search | Search for Retailers associated with specific account |
Retailer Attributes
Attribute | Data Type | Description |
|---|---|---|
|
| Retailer ID, generated internally by Criteo Accepted values: string of int64
|
|
| Retailer name, arbitrary and defined during Retailer integration phase Accepted values: up to 100-chars string
|
|
| Set of retail media capabilities available for the specific Retailer, separated by the different Accepted values: see table below
|
Retailer Campaign Availability Attributes
Attribute | Data Type | Description |
|---|---|---|
|
| Campaign type that the following attributes are available for Accepted values: |
|
| Buy type for the ad impressions of the campaign, that the following attributes are available for Accepted values: |
|
| Flag indicating if combination of Accepted values: |
|
| List of page type and environment where the campaign type & buy type are available to deliver ad impressions Accepted values: list of |
|
| Page type available in the current integration of the associated Retailer Accepted values: case-insensitive values of
|
|
| Environment where the page type is available in the associated Retailer integration Accepted values: case-insensitive values of
|
Search for Retailers
This endpoint searches for retailers associated with the respective account and retrieves a set of retail media capabilities, allowing the user to set up campaigns accordingly.
Results are paginated using offset and limit query parameters; if omitted, defaults to 0 and 5, respectively, for this endpoint. Also for this endpoint, limit supports the maximum value of 10
⚠️ Note: if the limit above is not respected, a dedicated error 400 with Model validation error will return.

https://api.criteo.com/preview/retail-media/accounts/{accountId}/retailers/search
Search Attributes
Attribute | Data Type | Description |
|---|---|---|
|
| Optional list of Retailer IDs, generated internally by Criteo, to retrieve retail media capabilities from Accepted values: list of integers, empty list or |
Sample Request
curl -X POST "https://api.criteo.com/preview/retail-media/accounts/18446744073709551616/retailers/search?offset=0&limit=5" \
-H 'Accept: application/json' \
-H "Authorization: Bearer <MY_ACCESS_TOKEN>" \
-H 'Content-Type: application/json' \
-d '{
"data": {
"attributes": {
"retailerIdFilter": [
12345
]
}
}
}'import requests
import json
url = "https://api.criteo.com/preview/retail-media/accounts/18446744073709551616/retailers/search?offset=0&limit=5"
payload = json.dumps({
"data": {
"attributes": {
"retailerIdFilter": [
12345
]
}
}
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <MY_ACCESS_TOKEN>'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"attributes\":{\"retailerIdFilter\":[12345]}}}");
Request request = new Request.Builder()
.url("https://api.criteo.com/preview/retail-media/accounts/18446744073709551616/retailers/search?offset=0&limit=5")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <MY_ACCESS_TOKEN>")
.build();
Response response = client.newCall(request).execute();<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.criteo.com/preview/retail-media/accounts/18446744073709551616/retailers/search?offset=0&limit=5');
$request->setMethod(HTTP_Request2::METHOD_POST);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer <MY_ACCESS_TOKEN>'
));
$request->setBody('{"data": {"attributes": {"retailerIdFilter": [12345]}}}');
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}Sample Response
{
"metadata": {
"count": 1,
"offset": 0,
"limit": 5
},
"data": [
{
"id": "299",
"type": "RetailerResult",
"attributes": {
"name": "Retailer 1234",
"campaignAvailabilities": [
{
"campaignType": "onsiteDisplay",
"buyType": "auction",
"isAvailable": true,
"validCombinations": [
{
"pageType": "home",
"pageEnvironmentType": "web"
},
{
"pageType": "home",
"pageEnvironmentType": "ios"
},
{
"pageType": "search",
"pageEnvironmentType": "web"
},
{
"pageType": "category",
"pageEnvironmentType": "web"
},
{
"pageType": "productDetail",
"pageEnvironmentType": "web"
},
// ...
{
"pageType": "confirmation",
"pageEnvironmentType": "web"
}
]
},
{
"campaignType": "onsiteDisplay",
"buyType": "preferredDeals",
"isAvailable": true,
"validCombinations": [
{
"pageType": "home",
"pageEnvironmentType": "web"
},
// ...
{
"pageType": "confirmation",
"pageEnvironmentType": "web"
}
]
},
{
"campaignType": "onsiteDisplay",
"buyType": "sponsorship",
"isAvailable": false,
"validCombinations": []
},
{
"campaignType": "sponsoredProducts",
"buyType": "auction",
"isAvailable": true,
"validCombinations": [
{
"pageType": "home",
"pageEnvironmentType": "web"
},
// ...
{
"pageType": "confirmation",
"pageEnvironmentType": "web"
}
]
},
{
"campaignType": "sponsoredProducts",
"buyType": "sponsorship",
"isAvailable": true,
"validCombinations": [
{
"pageType": "home",
"pageEnvironmentType": "web"
},
// ...
{
"pageType": "confirmation",
"pageEnvironmentType": "web"
}
]
},
{
"campaignType": "offsite",
"buyType": "offsite",
"isAvailable": false,
"validCombinations": []
}
]
}
}
],
"warnings": [],
"errors": []
}Responses
Response | Description |
|---|---|
🟢
| Call executed with success |
🔴 | "Model validation error: The field limit must be between 1 and 10". This indicates that the endpoint above was invoked requesting more than 10 retailers, which is not possible. Define a |
🔴 | API user does not have the authorization to make requests to the account ID. For an authorization request, follow the authorization request steps |
Updated 20 days ago