MCP Control
Аналитика · Чтение

Аналитика · Просмотр · Реклама · Статистика

analytics_get_advertising_statistics
Кассовый чек, калькулятор и монеты

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

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

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

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

Read unified advertising statistics using the existing aggregation RPC, with deduplication rules and currency separation preserved. Use a UTC calendar interval of at most 366 days and an optional existing campaign ID. Requires ads and analytics access and all locations. Reports stored provider data, not a live campaign refresh or cross-provider unique conversions; no changes.

Параметры запроса
from
Inclusive UTC start date in YYYY-MM-DD format. обязательно по схеме · string
toExclusive
Exclusive UTC finish date in YYYY-MM-DD format; must follow from by at most 366 days. обязательно по схеме · string
campaignId
Canonical advertising campaign identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID. необязательно · string · до символов 128
Что вернёт команда
status
Existing aggregation completeness state; ready does not prove every provider report has synchronized. обязательно по схеме · string · варианты empty, partial, ready
from
Inclusive UTC start date. обязательно по схеме · string / null
toExclusive
Exclusive UTC finish date. обязательно по схеме · string / null
currencies
Existing totals separated by currency; null metrics remain unknown rather than zero. обязательно по схеме · array · до элементов 100
completeness
Existing coverage completeness indication. обязательно по схеме · string / null
attribution
Existing attribution basis; provider conversions are not cross-provider deduplicated. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа analytics_get_advertising_statistics
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Inclusive UTC start date in YYYY-MM-DD format."
    },
    "toExclusive": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Exclusive UTC finish date in YYYY-MM-DD format; must follow from by at most 366 days."
    },
    "campaignId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
      "description": "Canonical advertising campaign identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
    }
  },
  "required": [
    "from",
    "toExclusive"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "empty",
        "partial",
        "ready"
      ],
      "description": "Existing aggregation completeness state; ready does not prove every provider report has synchronized."
    },
    "from": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "description": "Inclusive UTC start date."
    },
    "toExclusive": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "description": "Exclusive UTC finish date."
    },
    "currencies": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored ISO currency code; totals in different currencies are never combined."
          },
          "spend": {
            "description": "Stored provider-reported advertising spend.",
            "type": [
              "number",
              "null"
            ]
          },
          "clicks": {
            "description": "Stored provider-reported clicks, or null when incomplete.",
            "type": [
              "number",
              "null"
            ]
          },
          "impressions": {
            "description": "Stored provider-reported impressions, or null when incomplete.",
            "type": [
              "number",
              "null"
            ]
          },
          "leads": {
            "description": "Stored provider-reported leads, or null when unsupported or incomplete.",
            "type": [
              "number",
              "null"
            ]
          },
          "orders": {
            "description": "Stored provider-reported order conversions, or null when unsupported or incomplete.",
            "type": [
              "number",
              "null"
            ]
          },
          "bookings": {
            "description": "Stored provider-reported booking conversions, or null when unsupported or incomplete.",
            "type": [
              "number",
              "null"
            ]
          },
          "reportedConversions": {
            "description": "Provider-reported conversions; these are not deduplicated across providers.",
            "type": [
              "number",
              "null"
            ]
          },
          "reportedConversionValue": {
            "description": "Provider-reported conversion value in this currency.",
            "type": [
              "number",
              "null"
            ]
          },
          "lastSyncedAt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "description": "Most recent synchronization time contributing to this currency total."
          }
        },
        "required": [
          "currency",
          "spend",
          "clicks",
          "impressions",
          "leads",
          "orders",
          "bookings",
          "reportedConversions",
          "reportedConversionValue",
          "lastSyncedAt"
        ],
        "additionalProperties": false
      },
      "description": "Existing totals separated by currency; null metrics remain unknown rather than zero."
    },
    "completeness": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "description": "Existing coverage completeness indication."
    },
    "attribution": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "description": "Existing attribution basis; provider conversions are not cross-provider deduplicated."
    }
  },
  "required": [
    "status",
    "from",
    "toExclusive",
    "currencies",
    "completeness",
    "attribution"
  ],
  "additionalProperties": false
}