MCP Control
Реклама · Чтение

Маркетинг · Кампании · Просмотр · Расходы · Операция

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

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

Получить данные
  1. Вы указываетеКампания
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Маркетинг / Кампании / Просмотр / Расходы / Операция» выполни чтение по выбранной записи (кампания). Выведи кратко: companyId, кампания.
Что искать в ответе
companyId
Поле ответа
campaignId
Кампания
operation
Тип операции
Задать параметры
  1. Вы указываетеКампания
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Маркетинг / Кампании / Просмотр / Расходы / Операция» на учебном примере с operation = launch. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
operation
launch
campaignId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Маркетинг / Кампании / Просмотр / Расходы / Операция» объясни companyId, кампания. Отметь отсутствующие значения.
Поля для проверки
companyId
Поле ответа
campaignId
Кампания
operation
Тип операции
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

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

Read the durable result of the original marketing_campaign_launch or marketing_campaign_set_budget request in this same company, account and MCP connection. Never sends, resumes or repeats provider mutations. not_found is not proof that an in-flight request cannot later commit; unverified/partial requires investigation, not an automatic new request.

Параметры запроса
campaignId
Exact company campaign ID from marketing_campaigns_list/get. обязательно по схеме · string · до символов 128
operation
Выберите вариант операции из контракта. обязательно по схеме · string · варианты launch, set_budget
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
Поля и технические схемы
Входные поля и поля ответа marketing_campaign_get_spend_operation
Вход · 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."
    },
    "operation": {
      "type": "string",
      "enum": [
        "launch",
        "set_budget"
      ],
      "description": "Original spending operation for the same requestId."
    },
    "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",
    "operation",
    "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
}