Brands
Introduction
A brand is a collection of products marketed and sold under a unified name.
The brands associated with an account define the products that the account can promote on retailer sites.
An account can have access to one or more brands, and this access is typically managed by Criteo.
Brand attributes are standardized across retailers to ensure consistency.
Endpoint
Method | Endpoint | Description |
---|---|---|
GET | /accounts/{accountId}/brands | Get Accounts |
Brand Attributes
id
Data Type: string
Values: int64
Description: Brand ID
Data Type: string
Values: 510 char limit
Description: Brand name
Get All Brands
This endpoint lists all brands associated with an account. Results are paginated.
https://api.criteo.com/{version}/retail-media/accounts/{accountId}/brands
View in the API Reference
You can also check this endpoint in the API reference.
Sample Request
curl -X GET "https://api.criteo.com/{version}/retail-media/accounts/18446744073709551616/brands" \
-H "Authorization: Bearer <MY_ACCESS_TOKEN>"
import requests
url = "https://api.criteo.com/{version}/retail-media/accounts/4/brands"
payload={}
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <MY_ACCESS_TOKEN>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.criteo.com/{version}/retail-media/accounts/4/brands")
.method("GET", body)
.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/{version}/retail-media/accounts/4/brands');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'Accept' => 'application/json',
'Authorization' => 'Bearer <MY_ACCESS_TOKEN>'
));
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
{
"data": [
{
"type": "RetailMediaBrand",
"id": "7672171780147256541",
"attributes": {
"name": "Brand 123"
}
},
// ...
{
"type": "RetailMediaBrand",
"id": "5979998329674492121",
"attributes": {
"name": "Brand 789"
}
}
],
"metadata": {
"totalItemsAcrossAllPages": 15,
"currentPageSize": 25,
"currentPageIndex": 0,
"totalPages": 1,
"nextPage": null,
"previousPage": null
}
}
Responses
Response | Description |
---|---|
🟢200 | Call executed with success |
🔴 403 | API user does not have the authorization to make requests to the account ID. For an authorization request, follow the authorization request steps |
Updated 27 days ago
What’s Next