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

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

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

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

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

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

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

Resolve exact company customers and consent, then preview the native broadcast. Does not send. Save reviewHash and keep the same request ID and content for create. Push is immediate-only.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
integrationId
Native integrationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
channel
Native channel value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты email, sms
subject
Native subject value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 500
text
Native text value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 200000
customerIds
Native customerIds value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 500
scheduledAt
Native scheduledAt value; use the value and type returned by the corresponding service. обязательно по схеме · string / null · по умолчанию null
consent
Native consent value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
Что вернёт команда
result
Hash-bound JSON chunk of the canonical ADS workflow result. Follow nextOffset on reads. Mutation details can be read again using the corresponding get/calendar action. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа ads_marketing_broadcast_preview
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "integrationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native integrationId value; use the value and type returned by the corresponding service."
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "sms"
      ],
      "description": "Native channel value; use the value and type returned by the corresponding service."
    },
    "subject": {
      "default": "",
      "description": "Native subject value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 500
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200000,
      "description": "Native text value; use the value and type returned by the corresponding service."
    },
    "customerIds": {
      "minItems": 1,
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
      },
      "description": "Native customerIds value; use the value and type returned by the corresponding service."
    },
    "scheduledAt": {
      "default": null,
      "description": "Native scheduledAt value; use the value and type returned by the corresponding service.",
      "anyOf": [
        {
          "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))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "consent": {
      "type": "boolean",
      "const": true,
      "description": "Native consent value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "requestId",
    "integrationId",
    "channel",
    "subject",
    "text",
    "customerIds",
    "scheduledAt",
    "consent"
  ],
  "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": "Hash-bound JSON chunk of the canonical ADS workflow result. Follow nextOffset on reads. Mutation details can be read again using the corresponding get/calendar action."
    }
  },
  "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"
          }
        }
      ]
    }
  }
}