MCP Control
Реклама · Изменение

Маркетинг · Кампании · Изменение · Офлайн · Черновики

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

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

Подготовить
  1. Вы указываетеКампания
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Маркетинг / Кампании / Изменение / Офлайн / Черновики». Для изменения нужны кампания, creationRequestId. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
campaignId
Кампания
creationRequestId
Параметр
name
Название
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Маркетинг / Кампании / Изменение / Офлайн / Черновики» с параметром campaignId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
campaignId
DEMO-101
creationRequestId
DEMO-101
name
Осенняя коллекция
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Маркетинг / Кампании / Изменение / Офлайн / Черновики» по исходному ответу. Покажи кампания, название. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

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

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

Update a draft's human name, notes or both. Omitted text fields are preserved exactly; empty notes explicitly clear them. Unchanged legacy text must fit the bounded result, otherwise the update is rejected before writing instead of truncating it. The existing saved-offline path requires draftStep 1, USD, paused preference, no enabled/provider-bound channels and no requested command. Also accepts this same MCP connection's stage-0 multi_channel draft when creationRequestId resolves to its protected create receipt and every native preparation field remains unchanged. Requires all-location Ads access. Preserves campaign type, objective, budget, schedule, locations and provider/command fields. Uses exact revision and atomic idempotency; never creates a provider request or advances a wizard. Read the campaign afterward for its new revision.

Параметры запроса
campaignId
Existing campaign ID from marketing_campaigns_list/get. Supports a saved offline draft, or an unchanged stage-0 draft originally created by this MCP connection. Never converts campaign types. обязательно по схеме · string · до символов 512
creationRequestId
Original marketing_campaign_create_draft requestId, required only for editing that connection's MCP-created multi_channel stage-0 draft. The server verifies its protected receipt and unchanged native preparation fields. Omit for saved offline drafts. необязательно · string · до символов 128
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
name
Optional replacement human name. Omit to preserve the current name; empty or null is invalid. Supply name, notes or both. необязательно · string · до символов 200
notes
Optional complete replacement of human planning notes. Omit to preserve existing notes; an empty string clears them and null is invalid. Other campaign fields remain untouched. необязательно · string · до символов 4000
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
campaignId
Existing native campaign document ID. обязательно по схеме · string · до символов 512
name
Name recorded by this update. обязательно по схеме · string · до символов 200
notes
Notes recorded by this update. обязательно по схеме · string · до символов 4000
status
Historical native status when the update committed; use marketing_campaigns_get for current state. обязательно по схеме · string
campaignType
Existing campaign type; this operation does not change it. multi_channel is accepted only with verified MCP creation provenance and unchanged stage-0 preparation fields. обязательно по схеме · string · варианты offline, multi_channel
updatedAt
Server time stored by this update. Read the campaign again to obtain its new Firestore revision. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа marketing_campaign_update_offline_draft
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
      "description": "Existing campaign ID from marketing_campaigns_list/get. Supports a saved offline draft, or an unchanged stage-0 draft originally created by this MCP connection. Never converts campaign types."
    },
    "creationRequestId": {
      "description": "Original marketing_campaign_create_draft requestId, required only for editing that connection's MCP-created multi_channel stage-0 draft. The server verifies its protected receipt and unchanged native preparation fields. Omit for saved offline drafts.",
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$"
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact current Firestore revision returned by marketing_campaigns_get. A concurrent native edit causes a conflict."
    },
    "name": {
      "description": "Optional replacement human name. Omit to preserve the current name; empty or null is invalid. Supply name, notes or both.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "notes": {
      "description": "Optional complete replacement of human planning notes. Omit to preserve existing notes; an empty string clears them and null is invalid. Other campaign fields remain untouched.",
      "type": "string",
      "maxLength": 4000
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable identifier for these exact update arguments. Recover this same request after an uncertain response."
    }
  },
  "required": [
    "campaignId",
    "expectedRevision",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
      "description": "Existing native campaign document ID."
    },
    "name": {
      "type": "string",
      "maxLength": 200,
      "description": "Name recorded by this update."
    },
    "notes": {
      "type": "string",
      "maxLength": 4000,
      "description": "Notes recorded by this update."
    },
    "status": {
      "type": "string",
      "const": "draft",
      "description": "Historical native status when the update committed; use marketing_campaigns_get for current state."
    },
    "campaignType": {
      "type": "string",
      "enum": [
        "offline",
        "multi_channel"
      ],
      "description": "Existing campaign type; this operation does not change it. multi_channel is accepted only with verified MCP creation provenance and unchanged stage-0 preparation fields."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      "description": "Server time stored by this update. Read the campaign again to obtain its new Firestore revision."
    }
  },
  "required": [
    "campaignId",
    "name",
    "notes",
    "status",
    "campaignType",
    "updatedAt"
  ],
  "additionalProperties": false
}