Skip to main content
POST
Update CPC campaign settings.
Частичное обновление: отправляйте только те настройки, которые хотите изменить. Пауза и возобновление кампании делаются через status (paused / active). blocked_placements заменяет весь список; date_end: null очищает дату окончания, а link_name_prefix: null сбрасывает префикс на CPC. Редактировать можно только кампании в статусе active и paused. Кампанию completed (достигнут бюджет или дата окончания) нельзя активировать заново; вместо этого создайте новую. После применения изменений дневной бюджет должен оставаться в пределах общего, а date_end должна быть позже date_start.

Авторизации

X-API-Key
string
header
обязательно

Your API key from the Studio Dashboard

Параметры пути

public_id
string
обязательно

Resource public id. Format varies by endpoint: cplo_xxxxxxx for CPL campaigns, cpco_xxxxxxx for CPC orders, swpo_xxxxxxx for swap orders, cpcr_xxxxxxx for CPC creatives, revi_xxxxxxx for RevShare invoices.

Pattern: ^[a-z0-9_]+$

Тело

application/json

Send only the settings you want to change. Everything else keeps its current value. null is a real value here: it clears date_end and resets link_name_prefix.

name
string

Campaign name shown in Studio.

Maximum string length: 100
Пример:

"Reddit push September"

max_bid_cents
integer

Maximum bid per click, in cents (10 to 200).

Требуемый диапазон: 10 <= x <= 200
Пример:

55

budget_daily_cents
integer

Daily budget cap, in cents: at least 2000, at most 5000000 ($50,000), and never above budget_total_cents.

Требуемый диапазон: 2000 <= x <= 5000000
Пример:

5000

budget_total_cents
integer

Lifetime budget cap, in cents: at least 10000, at most 100000000 ($1,000,000). The campaign flips to completed when spend reaches it.

Требуемый диапазон: 10000 <= x <= 100000000
Пример:

100000

date_start
string<date>

Scheduled start, YYYY-MM-DD or ISO 8601. A bare date is read in the Studio timezone; a value with an offset is converted.

Пример:

"2026-09-15"

date_end
string<date> | null

Scheduled end, must be later than date_start. Pass null to clear the end date.

Пример:

null

status
enum<string>

paused pauses the campaign, active resumes it.

Доступные опции:
active,
paused
Пример:

"active"

freq_cap
integer

Maximum impressions shown to the same visitor within freq_cap_days. 0 means uncapped.

Требуемый диапазон: 0 <= x <= 100
Пример:

3

freq_cap_days
enum<integer>

Window the frequency cap is measured over, in days.

Доступные опции:
1,
3,
7
Пример:

3

blocked_placements
string[]

Replaces the whole list of excluded placements. Pass an empty array to unblock everything.

Maximum array length: 500
Pattern: ^site-[0-9a-f]{8}$

Prefix for the tracking-link names minted for this campaign. Pass null to reset it to CPC.

Required string length: 2 - 40
Pattern: ^[\w .\-]+$
Пример:

"CPC"

Ответ

Updated.

success
boolean
Пример:

true

data
object