Реклама · Чувствительное действие
Маркетинг · Кампании · Установка значения · Бюджет
marketing_campaign_set_budget
Попробуйте три запроса
Подготовить
- Вы указываетеКампания
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Маркетинг / Кампании / Установка значения / Бюджет». Для изменения нужны кампания, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
- campaignId
- Кампания
- expectedVersion
- Текущая версия
- currency
- Валюта
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Маркетинг / Кампании / Установка значения / Бюджет» с параметром currency = USD. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- currency
- USD
- campaignId
- DEMO-101
- confirmPaidSpend
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Маркетинг / Кампании / Установка значения / Бюджет» по исходному ответу. Покажи companyId, кампания. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Change the total daily budget of an existing active or paused campaign through the canonical Ads service and its provider adapters. Requires explicit user authorization for the exact new amount/currency, current spending-context version and Ads administrator role. Existing monthly limits, account binding, provider budget model and allocation rules remain enforced. Never changes company limits or launches a paused campaign. After uncertainty read the original operation receipt.
Параметры запроса
- campaignId
- Exact company campaign ID from marketing_campaigns_list/get. обязательно по схеме · string · до символов 128
- expectedVersion
- Exact version from marketing_campaign_get_spend_context. Stale campaign or budget-policy versions are rejected. обязательно по схеме · string
- currency
- Exact campaign currency confirmed by the user and returned in the spending context. обязательно по схеме · string · варианты USD, EUR, GBP, MXN, RUB, UAH, PLN, CAD, AUD
- dailyBudget
- User-authorized total daily budget in campaign currency, with at most two decimal places. Launch must match the current amount; set_budget replaces it and allocates it using the existing service policy. A daily provider budget is not a guaranteed lifetime spending cap. обязательно по схеме · number · максимум 1000000000
- confirmPaidSpend
- Set true only when the user explicitly authorized paid delivery or this exact budget change for the campaign and amount. Permission to implement or test this tool is not spending consent. обязательно по схеме · boolean
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- companyId
- Verified connected company. обязательно по схеме · string
- campaignId
- Exact company campaign ID from marketing_campaigns_list/get. обязательно по схеме · string · до символов 128
- operation
- Original spending operation for the same requestId. обязательно по схеме · string · варианты launch, set_budget
- status
- accepted is the native adapter acknowledgement, verified includes independent provider readback, and unverified/partial must never be reported as successful delivery. обязательно по схеме · string · варианты not_found, accepted, verified, not_started, rolled_back, partial, unverified
- replayed
- The existing receipt was returned without sending another provider mutation. обязательно по схеме · boolean
- providerVerified
- True only when the existing provider control verified the requested result on the advertising platform. обязательно по схеме · boolean
- dailyBudget
- Requested daily amount, or null if no receipt exists. обязательно по схеме · number / null
- currency
- Campaign currency, or null if no receipt exists. обязательно по схеме · string / null
- issueCode
- Bounded backend error code for an uncertain result, without credentials or provider payloads. необязательно · string / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Exact company campaign ID from marketing_campaigns_list/get."
},
"expectedVersion": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Exact version from marketing_campaign_get_spend_context. Stale campaign or budget-policy versions are rejected."
},
"currency": {
"type": "string",
"enum": [
"USD",
"EUR",
"GBP",
"MXN",
"RUB",
"UAH",
"PLN",
"CAD",
"AUD"
],
"description": "Exact campaign currency confirmed by the user and returned in the spending context."
},
"dailyBudget": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000,
"multipleOf": 0.01,
"description": "User-authorized total daily budget in campaign currency, with at most two decimal places. Launch must match the current amount; set_budget replaces it and allocates it using the existing service policy. A daily provider budget is not a guaranteed lifetime spending cap."
},
"confirmPaidSpend": {
"type": "boolean",
"const": true,
"description": "Set true only when the user explicitly authorized paid delivery or this exact budget change for the campaign and amount. Permission to implement or test this tool is not spending consent."
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for this exact spending instruction. Reuse after uncertainty; never invent a new ID to repeat an uncertain charge-affecting request."
}
},
"required": [
"campaignId",
"expectedVersion",
"currency",
"dailyBudget",
"confirmPaidSpend",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Verified connected company."
},
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Exact company campaign ID from marketing_campaigns_list/get."
},
"operation": {
"type": "string",
"enum": [
"launch",
"set_budget"
],
"description": "Original spending operation for the same requestId."
},
"status": {
"type": "string",
"enum": [
"not_found",
"accepted",
"verified",
"not_started",
"rolled_back",
"partial",
"unverified"
],
"description": "accepted is the native adapter acknowledgement, verified includes independent provider readback, and unverified/partial must never be reported as successful delivery."
},
"replayed": {
"type": "boolean",
"description": "The existing receipt was returned without sending another provider mutation."
},
"providerVerified": {
"type": "boolean",
"description": "True only when the existing provider control verified the requested result on the advertising platform."
},
"dailyBudget": {
"description": "Requested daily amount, or null if no receipt exists.",
"type": [
"number",
"null"
]
},
"currency": {
"description": "Campaign currency, or null if no receipt exists.",
"type": [
"string",
"null"
]
},
"issueCode": {
"description": "Bounded backend error code for an uncertain result, without credentials or provider payloads.",
"anyOf": [
{
"type": "string",
"maxLength": 120
},
{
"type": "null"
}
]
}
},
"required": [
"companyId",
"campaignId",
"operation",
"status",
"replayed",
"providerVerified",
"dailyBudget",
"currency"
],
"additionalProperties": false
}