/2026-01/retail-media/campaigns/{campaignId} - Criteo Docs
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
PUT /2026-01/retail-media/campaigns/{campaignId}
cURL
curl --request PUT \
--url https://api.criteo.com/2026-01/retail-media/campaigns/{campaignId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'
Python
import requests
url = "https://api.criteo.com/2026-01/retail-media/campaigns/{campaignId}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
JavaScript (Fetch)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.criteo.com/2026-01/retail-media/campaigns/{campaignId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
PHP
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.criteo.com/2026-01/retail-media/campaigns/{campaignId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
Go
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.criteo.com/2026-01/retail-media/campaigns/{campaignId}"
payload := strings.NewReader("")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
Response Example
{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {
"accountId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"isAutoDailyPacing": true,
"name": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"budget": 123,
"budgetRemaining": 123,
"budgetSpent": 123,
"clickAttributionWindow": "30D",
"companyName": "<string>",
"dailyPacing": 123,
"drawableBalanceIds": [
"<string>"
],
"endDate": "2023-11-07T05:31:56Z",
"monthlyPacing": 123,
"onBehalfCompanyName": "<string>",
"promotedBrandIds": [
"<string>"
],
"retailerId": 123,
"startDate": "2023-11-07T05:31:56Z",
"type": "auction",
"viewAttributionWindow": "none"
}
},
"errors": [
{
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"source": {},
"stackTrace": "<string>",
"title": "<string>",
"traceId": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"detail": "<string>",
"instance": "<string>",
"source": {},
"stackTrace": "<string>",
"title": "<string>",
"traceId": "<string>"
}
]
}
Authorizations
- Authorization: A string in the header required to access the API, obtained through the OAuth 2.0 flow.
Path Parameters
- campaignId: A required string indicating the specific campaign ID.
Body
application/json: A JSON object representing the campaign settings for the update.
Response
200 - application/json: A successful response indicating the updated campaign data in JSON format.