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

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

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

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

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

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

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

Read the exact current daily budget, currency, provider bindings, spending capabilities and policy version before launching an existing prepared campaign or changing its budget. Imported Meta/Google campaigns use the existing live provider controls. This does not approve or start paid delivery.

Параметры запроса
campaignId
Exact company campaign ID from marketing_campaigns_list/get. обязательно по схеме · string · до символов 128
Что вернёт команда
companyId
Verified connected company. обязательно по схеме · string
campaignId
Exact company campaign ID from marketing_campaigns_list/get. обязательно по схеме · string · до символов 128
kind
SABSUS-authored or imported provider campaign. обязательно по схеме · string · варианты native, imported
version
Exact version from marketing_campaign_get_spend_context. Stale campaign or budget-policy versions are rejected. обязательно по схеме · string
currency
Stored or provider-verified campaign currency; unsupported currencies cannot be changed. обязательно по схеме · string · до символов 8
dailyBudget
Current daily budget, or null for an unsupported budget model. обязательно по схеме · number / null
status
Current state; providerStateVerified identifies the evidence layer. обязательно по схеме · string · до символов 100
channels
Enabled, company-bound provider channels. обязательно по схеме · array · до элементов 14
capabilities
Current state and role capabilities; not user spending approval. обязательно по схеме · object
blockers
Explicit readiness blockers. обязательно по схеме · array · до элементов 30
policy
Existing budget policy; this action never changes it. обязательно по схеме · object
providerStateVerified
Whether this context was freshly read from the advertising provider. обязательно по схеме · boolean
checkedAt
Context observation time. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа marketing_campaign_get_spend_context
Вход · 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."
    }
  },
  "required": [
    "campaignId"
  ],
  "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."
    },
    "kind": {
      "type": "string",
      "enum": [
        "native",
        "imported"
      ],
      "description": "SABSUS-authored or imported provider campaign."
    },
    "version": {
      "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",
      "maxLength": 8,
      "description": "Stored or provider-verified campaign currency; unsupported currencies cannot be changed."
    },
    "dailyBudget": {
      "description": "Current daily budget, or null for an unsupported budget model.",
      "type": [
        "number",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "maxLength": 100,
      "description": "Current state; providerStateVerified identifies the evidence layer."
    },
    "channels": {
      "maxItems": 14,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "maxLength": 80,
            "description": "Bound advertising provider."
          },
          "accountId": {
            "type": "string",
            "maxLength": 256,
            "description": "Bound provider advertising account."
          },
          "providerCampaignId": {
            "type": "string",
            "maxLength": 256,
            "description": "Exact existing provider campaign."
          },
          "dailyBudget": {
            "description": "Current channel allocation, when known.",
            "type": [
              "number",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "maxLength": 100,
            "description": "Stored or provider-verified channel state."
          }
        },
        "required": [
          "provider",
          "accountId",
          "providerCampaignId",
          "dailyBudget",
          "status"
        ],
        "additionalProperties": false
      },
      "description": "Enabled, company-bound provider channels."
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "launch": {
          "type": "boolean",
          "description": "Whether the current state supports paid activation, still subject to write-time validation."
        },
        "setBudget": {
          "type": "boolean",
          "description": "Whether the existing adapter supports changing this daily budget."
        }
      },
      "required": [
        "launch",
        "setBudget"
      ],
      "additionalProperties": false,
      "description": "Current state and role capabilities; not user spending approval."
    },
    "blockers": {
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 120
      },
      "description": "Explicit readiness blockers."
    },
    "policy": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "maxLength": 8,
          "description": "Company spending-policy currency."
        },
        "monthlyLimit": {
          "type": "number",
          "description": "Existing monthly policy limit; zero means unconfigured."
        },
        "stopGrowth": {
          "type": "boolean",
          "description": "Whether the existing company budget policy blocks excess growth."
        }
      },
      "required": [
        "currency",
        "monthlyLimit",
        "stopGrowth"
      ],
      "additionalProperties": false,
      "description": "Existing budget policy; this action never changes it."
    },
    "providerStateVerified": {
      "type": "boolean",
      "description": "Whether this context was freshly read from the advertising provider."
    },
    "checkedAt": {
      "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": "Context observation time."
    }
  },
  "required": [
    "companyId",
    "campaignId",
    "kind",
    "version",
    "currency",
    "dailyBudget",
    "status",
    "channels",
    "capabilities",
    "blockers",
    "policy",
    "providerStateVerified",
    "checkedAt"
  ],
  "additionalProperties": false
}