MCP Control
Реклама · Чувствительное действие

Реклама · Настройки · Сохранение

ads_settings_save
Фотокамера и образцы цвета

Попробуйте три запроса

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Настройки / Сохранение». Для изменения нужны settings, confirmAutomation. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
settings
Параметр
confirmAutomation
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Настройки / Сохранение» с параметром settings.currency = USD. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
settings.currency
USD
settings.timezone
America/Tijuana
confirmAutomation
false
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Настройки / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса. Если связь оборвётся, используйте способ восстановления из описания разработчика ниже.

Описание разработчика

Save the complete native ADS settings at the exact revision: currency, timezone, geography, exclusions, budgets, tracking, brand, notifications and AI rules. Enabling autonomous changes requires explicit user approval and confirmAutomation=true. After a lost response use ads_workspace_operation_get with this operation name and the original requestId. Never infer success from a queued job.

Параметры запроса
settings
Native ADS settings. обязательно по схеме · object
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
confirmAutomation
Native ADS confirmAutomation. обязательно по схеме · boolean · по умолчанию false
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
result
Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа ads_settings_save
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "settings": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "enum": [
            "USD",
            "EUR",
            "GBP",
            "MXN",
            "RUB",
            "UAH",
            "PLN",
            "CAD",
            "AUD"
          ],
          "description": "Native ADS currency."
        },
        "timezone": {
          "type": "string",
          "maxLength": 100,
          "description": "Native ADS timezone."
        },
        "monthlyBudget": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000,
          "description": "Native ADS monthlyBudget."
        },
        "budgetPolicy": {
          "type": "object",
          "properties": {
            "alertThreshold": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "description": "Native ADS alertThreshold."
            },
            "stopGrowth": {
              "type": "boolean",
              "description": "Native ADS stopGrowth."
            }
          },
          "required": [
            "alertThreshold",
            "stopGrowth"
          ],
          "additionalProperties": false,
          "description": "Native ADS budgetPolicy."
        },
        "ai": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "Native ADS enabled."
            },
            "mode": {
              "default": "approval",
              "description": "Native ADS mode.",
              "type": "string",
              "enum": [
                "suggest",
                "approval",
                "autopilot"
              ]
            },
            "maxBudgetIncrease": {
              "default": 10,
              "description": "Native ADS maxBudgetIncrease.",
              "type": "number",
              "minimum": 0,
              "maximum": 50
            },
            "change": {
              "type": "number",
              "minimum": 0,
              "maximum": 50,
              "description": "Native ADS change."
            },
            "cpa": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000,
              "description": "Native ADS cpa."
            },
            "monthly": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000,
              "description": "Native ADS monthly."
            },
            "minimum": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "description": "Native ADS minimum."
            },
            "cooldown": {
              "type": "number",
              "minimum": 1,
              "maximum": 720,
              "description": "Native ADS cooldown."
            },
            "reallocate": {
              "type": "boolean",
              "description": "Native ADS reallocate."
            },
            "pause": {
              "type": "boolean",
              "description": "Native ADS pause."
            },
            "launch": {
              "type": "boolean",
              "description": "Native ADS launch."
            },
            "instruction": {
              "type": "string",
              "maxLength": 2000,
              "description": "Native ADS instruction."
            },
            "goal": {
              "type": "string",
              "maxLength": 200,
              "description": "Native ADS goal."
            },
            "control": {
              "type": "string",
              "maxLength": 200,
              "description": "Native ADS control."
            }
          },
          "required": [
            "enabled",
            "mode",
            "maxBudgetIncrease"
          ],
          "additionalProperties": false,
          "description": "Native ADS ai."
        },
        "geography": {
          "type": "object",
          "properties": {
            "radius": {
              "type": "number",
              "minimum": 1,
              "maximum": 1000,
              "description": "Native ADS radius."
            },
            "languages": {
              "minItems": 1,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "ru",
                  "en"
                ]
              },
              "description": "Native ADS languages."
            },
            "locationMode": {
              "type": "string",
              "enum": [
                "living_in",
                "interested_in"
              ],
              "description": "Native ADS locationMode."
            },
            "splitRegions": {
              "type": "boolean",
              "description": "Native ADS splitRegions."
            }
          },
          "required": [
            "radius",
            "languages",
            "locationMode",
            "splitRegions"
          ],
          "additionalProperties": false,
          "description": "Native ADS geography."
        },
        "regions": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Native ADS name."
              },
              "country": {
                "type": "string",
                "maxLength": 100,
                "description": "Native ADS country."
              },
              "radius": {
                "type": "number",
                "minimum": 0,
                "maximum": 1000,
                "description": "Native ADS radius."
              },
              "placeId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "description": "Native ADS placeId."
              },
              "lat": {
                "type": "number",
                "minimum": -90,
                "maximum": 90,
                "description": "Native ADS lat."
              },
              "lng": {
                "type": "number",
                "minimum": -180,
                "maximum": 180,
                "description": "Native ADS lng."
              },
              "geometryFetchedAt": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991,
                "description": "Native ADS geometryFetchedAt."
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "north": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90,
                    "description": "Native ADS north."
                  },
                  "south": {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90,
                    "description": "Native ADS south."
                  },
                  "east": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180,
                    "description": "Native ADS east."
                  },
                  "west": {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180,
                    "description": "Native ADS west."
                  }
                },
                "required": [
                  "north",
                  "south",
                  "east",
                  "west"
                ],
                "additionalProperties": false,
                "description": "Native ADS bounds."
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "description": "Native ADS regions."
        },
        "regionShares": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "description": "Native ADS regionShares."
        },
        "excluded": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "description": "Native ADS excluded."
        },
        "platformBudgets": {
          "propertyNames": {
            "type": "string",
            "pattern": "^[a-z_]+$"
          },
          "description": "Native ADS platformBudgets.",
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "brandKit": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "maxLength": 200,
              "description": "Native ADS name."
            },
            "color": {
              "type": "string",
              "pattern": "^#[a-fA-F0-9]{6}$",
              "description": "Native ADS color."
            },
            "instruction": {
              "type": "string",
              "maxLength": 2000,
              "description": "Native ADS instruction."
            }
          },
          "additionalProperties": false,
          "description": "Native ADS brandKit."
        },
        "tracking": {
          "type": "object",
          "properties": {
            "ga4": {
              "type": "string",
              "pattern": "^(?:|G-[A-Z0-9]+)$",
              "description": "Native ADS ga4."
            },
            "metaPixel": {
              "type": "string",
              "pattern": "^\\d{0,30}$",
              "description": "Native ADS metaPixel."
            },
            "tiktokPixel": {
              "type": "string",
              "pattern": "^[A-Za-z0-9]{0,40}$",
              "description": "Native ADS tiktokPixel."
            }
          },
          "additionalProperties": false,
          "description": "Native ADS tracking."
        },
        "notifications": {
          "type": "object",
          "properties": {
            "digest": {
              "type": "boolean",
              "description": "Native ADS digest."
            },
            "approvals": {
              "type": "boolean",
              "description": "Native ADS approvals."
            },
            "anomalies": {
              "type": "boolean",
              "description": "Native ADS anomalies."
            }
          },
          "required": [
            "digest",
            "approvals",
            "anomalies"
          ],
          "additionalProperties": false,
          "description": "Native ADS notifications."
        },
        "weeklyBudget": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "total": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000000000,
                  "description": "Native ADS total."
                },
                "currency": {
                  "type": "string",
                  "enum": [
                    "USD",
                    "EUR",
                    "GBP",
                    "MXN",
                    "RUB",
                    "UAH",
                    "PLN",
                    "CAD",
                    "AUD"
                  ],
                  "description": "Native ADS currency."
                },
                "allocations": {
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "meta",
                      "google_ads",
                      "tiktok_ads",
                      "microsoft_ads",
                      "linkedin_ads",
                      "pinterest_ads",
                      "snapchat_ads",
                      "reddit_ads",
                      "amazon_ads",
                      "spotify_ads",
                      "x_ads",
                      "apple_ads",
                      "yelp_ads",
                      "chatgpt_ads"
                    ]
                  },
                  "description": "Native ADS allocations.",
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000
                  }
                },
                "includeExisting": {
                  "type": "boolean",
                  "const": true,
                  "description": "Native ADS includeExisting."
                },
                "period": {
                  "default": "calendar_week",
                  "description": "Native ADS period.",
                  "type": "string",
                  "const": "calendar_week"
                },
                "weekStartsOn": {
                  "default": "monday",
                  "description": "Native ADS weekStartsOn.",
                  "type": "string",
                  "const": "monday"
                }
              },
              "required": [
                "total",
                "currency",
                "allocations",
                "includeExisting",
                "period",
                "weekStartsOn"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "Native ADS weeklyBudget."
        }
      },
      "required": [
        "currency",
        "timezone"
      ],
      "additionalProperties": false,
      "description": "Native ADS settings."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native ADS expectedRevision."
    },
    "confirmAutomation": {
      "default": false,
      "description": "Native ADS confirmAutomation.",
      "type": "boolean"
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Original stable request identifier. Recover with ads_workspace_operation_get after uncertainty; never repeat a spending instruction with a new key."
    }
  },
  "required": [
    "settings",
    "expectedRevision",
    "confirmAutomation",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get."
    }
  },
  "required": [
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}