Реклама · Чтение
Маркетинг · Кампании · Просмотр · Офлайн · Черновики · Конфигурация
marketing_campaign_get_offline_draft_configuration
Попробуйте три запроса
Получить данные
- Вы указываетеКампания
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Маркетинг / Кампании / Просмотр / Офлайн / Черновики / Конфигурация» выполни чтение по выбранной записи (кампания). Выведи кратко: кампания, версия записи.
- campaignId
- Кампания
- revision
- Версия записи
- name
- Название
Задать параметры
- Вы указываетеКампания
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Маркетинг / Кампании / Просмотр / Офлайн / Черновики / Конфигурация» на учебном примере с campaignId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- campaignId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Маркетинг / Кампании / Просмотр / Офлайн / Черновики / Конфигурация» объясни кампания, версия записи. Отметь отсутствующие значения.
- campaignId
- Кампания
- revision
- Версия записи
- name
- Название
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read the exact current offline draft controls and revision without provider synchronization. Permits existing offline drafts or initial multi_channel drafts eligible for offline conversion. Does not truncate editable text. Nullable legacy dates are shown but saving requires explicit absolute dates.
Параметры запроса
- campaignId
- Existing campaign ID from native campaign discovery or creation. обязательно по схеме · string · до символов 512
Что вернёт команда
- campaignId
- Existing native campaign document ID. обязательно по схеме · string · до символов 512
- revision
- Current Firestore revision; use as expectedRevision for save. обязательно по схеме · string
- name
- Stored full name, without truncation. обязательно по схеме · string · до символов 200
- notes
- Stored full notes, without truncation. обязательно по схеме · string · до символов 4000
- objective
- Exact native objective selected in the offline editor; this does not execute a booking, call, message or order. обязательно по схеме · string · варианты orders, bookings, leads, calls, messages, store
- establishmentIds
- Empty for no selected establishment, or one company establishment as supported by the native single-selection control. Each selected ID is verified server-side. обязательно по схеме · array · до элементов 1
- startAt
- Exact stored absolute start timestamp, or null if missing/unrepresentable. Save requires an explicit nonnull value. обязательно по схеме · null
- finishAt
- Exact stored absolute finish timestamp, or null if missing/unrepresentable. Save requires an explicit nonnull value. обязательно по схеме · null
- campaignType
- Current eligible native type. Saving an initial multi_channel draft converts it to offline. обязательно по схеме · string · варианты multi_channel, offline
- scheduleWriteBehavior
- The save changes only the start and finish timestamps, preserving mode, timezone and weekday settings. It cannot clear dates or replace the entire schedule. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
"description": "Existing campaign ID from native campaign discovery or creation."
}
},
"required": [
"campaignId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"campaignId": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^[^/\\u0000-\\u001f\\u007f]+$",
"description": "Existing native campaign document ID."
},
"revision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Current Firestore revision; use as expectedRevision for save."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "Stored full name, without truncation."
},
"notes": {
"type": "string",
"maxLength": 4000,
"description": "Stored full notes, without truncation."
},
"objective": {
"type": "string",
"enum": [
"orders",
"bookings",
"leads",
"calls",
"messages",
"store"
],
"description": "Exact native objective selected in the offline editor; this does not execute a booking, call, message or order."
},
"establishmentIds": {
"maxItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing company establishment ID."
},
"description": "Empty for no selected establishment, or one company establishment as supported by the native single-selection control. Each selected ID is verified server-side."
},
"startAt": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Exact stored absolute start timestamp, or null if missing/unrepresentable. Save requires an explicit nonnull value."
},
"finishAt": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Exact stored absolute finish timestamp, or null if missing/unrepresentable. Save requires an explicit nonnull value."
},
"campaignType": {
"type": "string",
"enum": [
"multi_channel",
"offline"
],
"description": "Current eligible native type. Saving an initial multi_channel draft converts it to offline."
},
"scheduleWriteBehavior": {
"type": "string",
"const": "patch_start_finish_preserve_other_fields",
"description": "The save changes only the start and finish timestamps, preserving mode, timezone and weekday settings. It cannot clear dates or replace the entire schedule."
}
},
"required": [
"campaignId",
"revision",
"name",
"notes",
"objective",
"establishmentIds",
"startAt",
"finishAt",
"campaignType",
"scheduleWriteBehavior"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"maxLength": 40,
"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
}
}