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

Маркетинг · Кампании · Настройка · Онлайн · Черновики

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

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

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

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

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

Configure the existing native online campaign draft fields from the company wizard: objective, budget, schedule, selected advertising accounts and creatives. Updates only an unprepared draft at its exact revision, preserving its native Firestore timestamp types, identity, attribution, audience and automation defaults. It does not contact or create provider campaigns; validate before preparing paused delivery.

Параметры запроса
campaignId
Existing unprepared native marketing draft ID. обязательно по схеме · string · до символов 128
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
name
Campaign name in the existing wizard. обязательно по схеме · string · до символов 200
objective
Existing campaign objective. обязательно по схеме · string · варианты orders, bookings, leads, calls, messages, store
notes
Human planning notes; empty clears existing notes. обязательно по схеме · string · по умолчанию "" · до символов 4000
currency
ISO 4217 campaign currency. It must match the chosen provider account before preparation. обязательно по схеме · string
budgetAmount
Shared daily campaign budget in the campaign currency. Zero saves an incomplete draft. обязательно по схеме · number · минимум 0 · максимум 1000000000
monthlyLimit
Monthly spending limit; zero means no additional limit. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 1000000000
startAt
Explicit future or current schedule start with UTC offset. обязательно по схеме · string · до символов 40
finishAt
Explicit schedule finish after start. обязательно по схеме · string · до символов 40
timezone
IANA timezone or UTC used by the native wizard. обязательно по схеме · string · до символов 100
channels
Enabled provider accounts and per-provider budgets; existing provider objects must not be bound to this draft. обязательно по схеме · array · до элементов 14
creatives
Up to six native creatives; an empty list saves a draft but blocks complete provider delivery. обязательно по схеме · array · по умолчанию [] · до элементов 6
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
campaignId
Configured native marketing campaign ID. обязательно по схеме · string · до символов 128
name
Recorded campaign name. обязательно по схеме · string · до символов 200
objective
Recorded campaign objective. обязательно по схеме · string · варианты orders, bookings, leads, calls, messages, store
status
Historical saved status; read the campaign before another change. обязательно по схеме · string
currency
Recorded campaign currency. обязательно по схеме · string
budgetAmount
Recorded shared daily budget. обязательно по схеме · number · минимум 0
providers
Providers configured in this draft. обязательно по схеме · array · до элементов 14
creativeCount
Number of native creatives saved. обязательно по схеме · integer · минимум 0 · максимум 6
updatedAt
Server time recorded by this save; read the campaign for its new revision. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа marketing_campaign_configure_online_draft
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
      "description": "Existing unprepared native marketing draft ID."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Exact current revision from marketing_campaigns_get."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Campaign name in the existing wizard."
    },
    "objective": {
      "type": "string",
      "enum": [
        "orders",
        "bookings",
        "leads",
        "calls",
        "messages",
        "store"
      ],
      "description": "Existing campaign objective."
    },
    "notes": {
      "default": "",
      "description": "Human planning notes; empty clears existing notes.",
      "type": "string",
      "maxLength": 4000
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 campaign currency. It must match the chosen provider account before preparation."
    },
    "budgetAmount": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000,
      "description": "Shared daily campaign budget in the campaign currency. Zero saves an incomplete draft."
    },
    "monthlyLimit": {
      "default": 0,
      "description": "Monthly spending limit; zero means no additional limit.",
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    },
    "startAt": {
      "type": "string",
      "maxLength": 40,
      "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      "description": "Explicit future or current schedule start with UTC offset."
    },
    "finishAt": {
      "type": "string",
      "maxLength": 40,
      "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      "description": "Explicit schedule finish after start."
    },
    "timezone": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[A-Za-z0-9_+\\/-]+$",
      "description": "IANA timezone or UTC used by the native wizard."
    },
    "channels": {
      "minItems": 1,
      "maxItems": 14,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$",
            "description": "Provider from ads_connections_list."
          },
          "connectionId": {
            "description": "Company connection ID from ads_connections_list; omit when the backend selects the only connection.",
            "type": "string",
            "maxLength": 256
          },
          "accountId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Provider account ID from ads_accounts_discover."
          },
          "budgetAmount": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "Budget allocated to this provider in the campaign currency; zero uses the shared campaign budget."
          }
        },
        "required": [
          "provider",
          "accountId",
          "budgetAmount"
        ],
        "additionalProperties": false
      },
      "description": "Enabled provider accounts and per-provider budgets; existing provider objects must not be bound to this draft."
    },
    "creatives": {
      "default": [],
      "description": "Up to six native creatives; an empty list saves a draft but blocks complete provider delivery.",
      "maxItems": 6,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Creative display name."
          },
          "headline": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Primary advertising headline."
          },
          "primaryText": {
            "type": "string",
            "maxLength": 2000,
            "description": "Primary advertising text."
          },
          "description": {
            "type": "string",
            "maxLength": 1000,
            "description": "Advertising description."
          },
          "destinationUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "Public HTTPS destination URL without embedded credentials."
          },
          "isPrimary": {
            "type": "boolean",
            "description": "Whether this is the primary creative for the selected providers."
          }
        },
        "required": [
          "name",
          "headline",
          "primaryText",
          "description",
          "destinationUrl",
          "isPrimary"
        ],
        "additionalProperties": false
      }
    },
    "requestId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Stable key for this exact configuration; reuse it after an uncertain response."
    }
  },
  "required": [
    "campaignId",
    "expectedRevision",
    "name",
    "objective",
    "notes",
    "currency",
    "budgetAmount",
    "monthlyLimit",
    "startAt",
    "finishAt",
    "timezone",
    "channels",
    "creatives",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
      "description": "Configured native marketing campaign ID."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Recorded campaign name."
    },
    "objective": {
      "type": "string",
      "enum": [
        "orders",
        "bookings",
        "leads",
        "calls",
        "messages",
        "store"
      ],
      "description": "Recorded campaign objective."
    },
    "status": {
      "type": "string",
      "const": "draft",
      "description": "Historical saved status; read the campaign before another change."
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "Recorded campaign currency."
    },
    "budgetAmount": {
      "type": "number",
      "minimum": 0,
      "description": "Recorded shared daily budget."
    },
    "providers": {
      "minItems": 1,
      "maxItems": 14,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_]{0,63}$"
      },
      "description": "Providers configured in this draft."
    },
    "creativeCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 6,
      "description": "Number of native creatives saved."
    },
    "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 recorded by this save; read the campaign for its new revision."
    }
  },
  "required": [
    "campaignId",
    "name",
    "objective",
    "status",
    "currency",
    "budgetAmount",
    "providers",
    "creativeCount",
    "updatedAt"
  ],
  "additionalProperties": false
}