Маркетинг · Кампании · Создание · Черновики
marketing_campaign_create_draft
Попробуйте три запроса
- Вы указываетеНазвание
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Маркетинг / Кампании / Создание / Черновики». Для изменения нужны название, notes. Покажи объект и ожидаемый эффект до выполнения.
- name
- Название
- notes
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Маркетинг / Кампании / Создание / Черновики» с параметром name = Осенняя коллекция. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- name
- Осенняя коллекция
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Маркетинг / Кампании / Создание / Черновики» по исходному ответу. Покажи кампания, название. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Для этого действия требуется доступ ко всем филиалам.
Описание разработчика
Create a native marketing draft with a name and optional notes. Preserves the current form defaults: USD, zero budget, no channels or locations selected, automation off, paused launch preference and no requested command. This Action makes no provider call and queues no launch or spending command; native triggers retain their own behavior. Requires all-location access. Read the campaign afterward for its current revision. To edit only this draft's name/notes, use marketing_campaign_update_offline_draft with this original requestId as creationRequestId. Full wizard saving, online synchronization and launch remain separate workflows.
Параметры запроса
- name
- Human campaign name. Creates only a local draft; no advertising account or audience is selected. обязательно по схеме · string · до символов 200
- notes
- Optional human planning notes. Stored as text, never interpreted as instructions or commands. необязательно · string · до символов 4000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- campaignId
- Server-generated native marketingCampaigns document ID. Use marketing_campaigns_get to review its current state and revision. обязательно по схеме · string · до символов 512
- name
- Name recorded at creation. обязательно по схеме · string · до символов 200
- notes
- Notes recorded at creation; empty when omitted. обязательно по схеме · string · до символов 4000
- status
- Historical status recorded by this create operation, not a claim about the current campaign status. обязательно по схеме · string
- launchMode
- Historical native launch preference recorded at creation. This Action makes no provider request; it does not verify provider state. обязательно по схеме · string
- currency
- Existing Campanings new-draft default. This Action queues no payment or currency-conversion command. обязательно по схеме · string
- createdAt
- Server time stored with the original draft, represented in UTC. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Human campaign name. Creates only a local draft; no advertising account or audience is selected."
},
"notes": {
"description": "Optional human planning notes. Stored as text, never interpreted as instructions or commands.",
"type": "string",
"maxLength": 4000
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable identifier for these exact create arguments. After an uncertain response, recover this operation before preparing another request."
}
},
"required": [
"name",
"requestId"
],
"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": "Server-generated native marketingCampaigns document ID. Use marketing_campaigns_get to review its current state and revision."
},
"name": {
"type": "string",
"maxLength": 200,
"description": "Name recorded at creation."
},
"notes": {
"type": "string",
"maxLength": 4000,
"description": "Notes recorded at creation; empty when omitted."
},
"status": {
"type": "string",
"const": "draft",
"description": "Historical status recorded by this create operation, not a claim about the current campaign status."
},
"launchMode": {
"type": "string",
"const": "paused",
"description": "Historical native launch preference recorded at creation. This Action makes no provider request; it does not verify provider state."
},
"currency": {
"type": "string",
"const": "USD",
"description": "Existing Campanings new-draft default. This Action queues no payment or currency-conversion command."
},
"createdAt": {
"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))$",
"description": "Server time stored with the original draft, represented in UTC."
}
},
"required": [
"campaignId",
"name",
"notes",
"status",
"launchMode",
"currency",
"createdAt"
],
"additionalProperties": false
}