Реклама · Изменение
Реклама · Офлайн · Кампании · Создание
ads_offline_campaign_create
Попробуйте три запроса
Подготовить
- Вы указываетеНазвание
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Офлайн / Кампании / Создание». Для изменения нужны название, валюта. Покажи объект и ожидаемый эффект до выполнения.
- name
- Название
- currency
- Валюта
- notes
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Офлайн / Кампании / Создание» с параметром name = Осенняя коллекция. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- name
- Осенняя коллекция
- currency
- USD
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Офлайн / Кампании / Создание» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Если связь оборвётся, используйте способ восстановления из описания разработчика ниже.
Описание разработчика
Create a native offline campaign and optional placements; no media purchase or paid delivery. After a lost response use ads_workspace_operation_get with this operation name and the original requestId. Never infer success from a queued job.
Параметры запроса
- name
- Native ADS name. обязательно по схеме · string · до символов 200
- currency
- Native ADS currency. обязательно по схеме · string
- notes
- Native ADS notes. обязательно по схеме · string · по умолчанию "" · до символов 2000
- placements
- Native ADS placements. обязательно по схеме · array · по умолчанию [] · до элементов 30
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- result
- Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Native ADS name."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Native ADS currency."
},
"notes": {
"default": "",
"description": "Native ADS notes.",
"type": "string",
"maxLength": 2000
},
"placements": {
"default": [],
"description": "Native ADS placements.",
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Native ADS name."
},
"adType": {
"type": "string",
"enum": [
"flyer",
"brochure",
"yard_sign",
"poster",
"vehicle",
"business_card",
"banner",
"packaging",
"other"
],
"description": "Native ADS adType."
},
"placement": {
"type": "string",
"maxLength": 300,
"description": "Native ADS placement."
},
"destinationUrl": {
"type": "string",
"maxLength": 2048,
"format": "uri",
"description": "Native ADS destinationUrl."
},
"costItems": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Native ADS id."
},
"category": {
"type": "string",
"enum": [
"printing",
"design",
"distribution",
"installation",
"other"
],
"description": "Native ADS category."
},
"description": {
"type": "string",
"maxLength": 300,
"description": "Native ADS description."
},
"amount": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Native ADS amount."
},
"incurredOn": {
"type": "string",
"allOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"$ref": "#/$defs/_mcp0"
}
],
"description": "Native ADS incurredOn."
}
},
"required": [
"id",
"category",
"description",
"amount",
"incurredOn"
],
"additionalProperties": false
},
"description": "Native ADS costItems."
},
"status": {
"default": "active",
"description": "Native ADS status.",
"type": "string",
"enum": [
"active",
"paused"
]
}
},
"required": [
"name",
"adType",
"placement",
"destinationUrl",
"costItems",
"status"
],
"additionalProperties": false
}
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Original stable request identifier. Recover with ads_workspace_operation_get after uncertainty; never repeat a spending instruction with a new key."
}
},
"required": [
"name",
"currency",
"notes",
"placements",
"requestId"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"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])))$"
}
}
}Выход · 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": "Native operation state and a hash-bound JSON chunk. Follow nextOffset using chunkOffset/chunkHash. Completed means the native handler returned; inspect nested job/provider status before claiming synchronization or delivery. Recover mutations with ads_workspace_operation_get."
}
},
"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"
}
}
]
}
}
}