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

Реклама · Маркетинг · Аудитории

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

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

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

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

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

Page marketing audience from canonical customers or linked leads with current consent and SMS opt-out eligibility. Customer audiences require customers.read; linked lead audiences also require leads.read. Continue with native next; never infer consent.

Параметры запроса
channel
Native channel value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты email, sms, push
source
Native source value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "customers" · варианты customers, leads
segment
Native segment value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 200
query
Поисковое выражение для этой операции. обязательно по схеме · string · по умолчанию "" · до символов 200
group
Native group value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 128
after
Native after value; use the value and type returned by the corresponding service. необязательно · string
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
expectedHash
Контрольное значение из предыдущего чтения. необязательно · string
Что вернёт команда
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_audience
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "sms",
        "push"
      ],
      "description": "Native channel value; use the value and type returned by the corresponding service."
    },
    "source": {
      "default": "customers",
      "description": "Native source value; use the value and type returned by the corresponding service.",
      "type": "string",
      "enum": [
        "customers",
        "leads"
      ]
    },
    "segment": {
      "default": "",
      "description": "Native segment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "query": {
      "default": "",
      "description": "Native query value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "group": {
      "default": "",
      "description": "Native group value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 128
    },
    "after": {
      "description": "Native after value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "offset": {
      "default": 0,
      "description": "Native offset value; use the value and type returned by the corresponding service.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "expectedHash": {
      "description": "Native expectedHash value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "channel",
    "source",
    "segment",
    "query",
    "group",
    "offset"
  ],
  "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"
          }
        }
      ]
    }
  }
}