Реклама · Чтение
Маркетинг · Кампании · Проверка
marketing_campaigns_validate
Попробуйте три запроса
Получить данные
- Вы указываетеКампания
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Маркетинг / Кампании / Проверка» выполни чтение по выбранной записи (кампания). Выведи кратко: companyId, кампания.
- companyId
- Поле ответа
- campaignId
- Кампания
- mode
- Режим
Задать параметры
- Вы указываетеКампания
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Маркетинг / Кампании / Проверка» на учебном примере с mode = draft. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- mode
- draft
- campaignId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Маркетинг / Кампании / Проверка» объясни companyId, кампания. Отметь отсутствующие значения.
- companyId
- Поле ответа
- campaignId
- Кампания
- mode
- Режим
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Validate a native company campaign through the existing shared Ads backend without mutating it. Checks saved fields, selected provider connections, account bindings and preparation or launch readiness. Returns bounded reason codes; ready does not imply a provider campaign was created or activated.
Параметры запроса
- campaignId
- Exact company marketing campaign document ID from marketing_campaigns_list/get. обязательно по схеме · string · до символов 128
- mode
- Read-only validation target: saved draft, inactive provider preparation, or paid launch. обязательно по схеме · string · варианты draft, create_paused, launch
- providers
- Optional subset of enabled provider channels; omitted means every enabled channel. необязательно · array · до элементов 20
Что вернёт команда
- companyId
- Company whose campaign was validated. обязательно по схеме · string
- campaignId
- Validated native campaign ID. обязательно по схеме · string · до символов 128
- mode
- Validation target. обязательно по схеме · string · варианты draft, create_paused, launch
- ready
- Whether all actionable selected channels passed checks. обязательно по схеме · boolean
- errors
- Campaign-wide validation failures. обязательно по схеме · array · до элементов 40
- warnings
- Campaign-wide validation warnings. обязательно по схеме · array · до элементов 40
- channels
- Bounded per-provider validation state without credentials or raw provider payloads. обязательно по схеме · array · до элементов 20
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
"description": "Exact company marketing campaign document ID from marketing_campaigns_list/get."
},
"mode": {
"type": "string",
"enum": [
"draft",
"create_paused",
"launch"
],
"description": "Read-only validation target: saved draft, inactive provider preparation, or paid launch."
},
"providers": {
"description": "Optional subset of enabled provider channels; omitted means every enabled channel.",
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$"
}
}
},
"required": [
"campaignId",
"mode"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Company whose campaign was validated."
},
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
"description": "Validated native campaign ID."
},
"mode": {
"type": "string",
"enum": [
"draft",
"create_paused",
"launch"
],
"description": "Validation target."
},
"ready": {
"type": "boolean",
"description": "Whether all actionable selected channels passed checks."
},
"errors": {
"maxItems": 40,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp0"
},
"description": "Campaign-wide validation failures."
},
"warnings": {
"maxItems": 40,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp0"
},
"description": "Campaign-wide validation warnings."
},
"channels": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,63}$",
"description": "Enabled advertising provider."
},
"ready": {
"type": "boolean",
"description": "Whether this channel passed backend validation."
},
"skipped": {
"type": "boolean",
"description": "Whether the backend explicitly skips this channel."
},
"connected": {
"type": "boolean",
"description": "Whether a company credential was resolved; not a provider health check."
},
"accountId": {
"type": "string",
"maxLength": 256,
"description": "Bound public account identifier, or empty."
},
"providerCampaignId": {
"type": "string",
"maxLength": 256,
"description": "Existing provider campaign identifier, or empty."
},
"status": {
"type": "string",
"maxLength": 100,
"description": "Stored channel status."
},
"capability": {
"anyOf": [
{
"type": "object",
"properties": {
"available": {
"type": "boolean",
"description": "Backend capability availability."
},
"status": {
"type": "string",
"maxLength": 120,
"description": "Backend capability status."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "Backend capability reason code."
}
},
"required": [
"available",
"status",
"reason"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Campaign capability state, if resolved."
},
"errors": {
"maxItems": 40,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp0"
},
"description": "Channel validation failures."
},
"warnings": {
"maxItems": 40,
"type": "array",
"items": {
"$ref": "#/$defs/_mcp0"
},
"description": "Channel validation warnings."
}
},
"required": [
"provider",
"ready",
"skipped",
"connected",
"accountId",
"providerCampaignId",
"status",
"capability",
"errors",
"warnings"
],
"additionalProperties": false
},
"description": "Bounded per-provider validation state without credentials or raw provider payloads."
}
},
"required": [
"companyId",
"campaignId",
"mode",
"ready",
"errors",
"warnings",
"channels"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "Machine-readable validation code."
},
"field": {
"type": "string",
"maxLength": 160,
"description": "Affected campaign field, when supplied."
},
"status": {
"type": "integer",
"minimum": 0,
"maximum": 599,
"description": "Provider HTTP status when supplied, otherwise zero."
},
"retryable": {
"type": "boolean",
"description": "Whether the backend marked this issue retryable."
}
},
"required": [
"code",
"field",
"status",
"retryable"
],
"additionalProperties": false
}
}
}