Реклама · Изменение
Реклама · Офлайн · Макет · Сохранение
ads_offline_layout_save
Попробуйте три запроса
Подготовить
- Вы указываетеКампания
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Офлайн / Макет / Сохранение». Для изменения нужны кампания, placementId. Покажи объект и ожидаемый эффект до выполнения.
- campaignId
- Кампания
- placementId
- Параметр
- layout
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Офлайн / Макет / Сохранение» с параметром campaignId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- campaignId
- DEMO-101
- placementId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Офлайн / Макет / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Если связь оборвётся, используйте способ восстановления из описания разработчика ниже.
Описание разработчика
Save the native QR/PDF artwork layout with its exact current revision, preserving asset/placement ownership checks. After a lost response use ads_workspace_operation_get with this operation name and the original requestId. Never infer success from a queued job.
Параметры запроса
- campaignId
- Native ADS campaignId. обязательно по схеме · string
- placementId
- Native ADS placementId. обязательно по схеме · string
- layout
- Native ADS layout. обязательно по схеме · object
- 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": {
"campaignId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Native ADS campaignId."
},
"placementId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Native ADS placementId."
},
"layout": {
"type": "object",
"properties": {
"prepress": {
"anyOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"sheet",
"single"
],
"description": "Native ADS mode."
},
"sheet": {
"type": "string",
"enum": [
"a4",
"a3",
"sra3",
"a2",
"letter",
"legal",
"tabloid",
"custom"
],
"description": "Native ADS sheet."
},
"orientation": {
"type": "string",
"enum": [
"portrait",
"landscape"
],
"description": "Native ADS orientation."
},
"sheetWidthMm": {
"type": "number",
"minimum": 20,
"maximum": 2000,
"description": "Native ADS sheetWidthMm."
},
"sheetHeightMm": {
"type": "number",
"minimum": 20,
"maximum": 2000,
"description": "Native ADS sheetHeightMm."
},
"trimWidthMm": {
"type": "number",
"minimum": 20,
"maximum": 2000,
"description": "Native ADS trimWidthMm."
},
"trimHeightMm": {
"type": "number",
"minimum": 20,
"maximum": 2000,
"description": "Native ADS trimHeightMm."
},
"bleedMm": {
"type": "number",
"minimum": 0,
"maximum": 20,
"description": "Native ADS bleedMm."
},
"safeMm": {
"type": "number",
"minimum": 0,
"maximum": 30,
"description": "Native ADS safeMm."
},
"marginMm": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Native ADS marginMm."
},
"gapMm": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Native ADS gapMm."
},
"perSheet": {
"type": "integer",
"minimum": 0,
"maximum": 64,
"description": "Native ADS perSheet."
},
"cropMarks": {
"type": "boolean",
"description": "Native ADS cropMarks."
},
"bleedMode": {
"type": "string",
"enum": [
"extend",
"provided"
],
"description": "Native ADS bleedMode."
}
},
"required": [
"mode",
"sheet",
"orientation",
"sheetWidthMm",
"sheetHeightMm",
"trimWidthMm",
"trimHeightMm",
"bleedMm",
"safeMm",
"marginMm",
"gapMm",
"perSheet",
"cropMarks",
"bleedMode"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Native ADS prepress."
},
"sourceId": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"description": "Native ADS sourceId."
},
"backSourceId": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"description": "Native ADS backSourceId."
},
"elements": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Native ADS id."
},
"type": {
"type": "string",
"enum": [
"qr",
"link",
"code"
],
"description": "Native ADS type."
},
"page": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "Native ADS page."
},
"xMm": {
"type": "number",
"minimum": 0,
"maximum": 5000,
"description": "Native ADS xMm."
},
"yMm": {
"type": "number",
"minimum": 0,
"maximum": 5000,
"description": "Native ADS yMm."
},
"sizeMm": {
"default": 30,
"description": "Native ADS sizeMm.",
"type": "number",
"minimum": 20,
"maximum": 500
},
"widthMm": {
"default": 85,
"description": "Native ADS widthMm.",
"type": "number",
"minimum": 20,
"maximum": 500
},
"fontSizeMm": {
"default": 3,
"description": "Native ADS fontSizeMm.",
"type": "number",
"minimum": 2,
"maximum": 12
},
"foreground": {
"default": "#000000",
"description": "Native ADS foreground.",
"type": "string",
"pattern": "^#[0-9a-f]{6}$"
},
"background": {
"default": "#ffffff",
"description": "Native ADS background.",
"anyOf": [
{
"type": "string",
"pattern": "^#[0-9a-f]{6}$"
},
{
"type": "null"
}
]
},
"shape": {
"default": "square",
"description": "Native ADS shape.",
"type": "string",
"enum": [
"square",
"rounded",
"dots"
]
},
"showCode": {
"default": false,
"description": "Native ADS showCode.",
"type": "boolean"
}
},
"required": [
"id",
"type",
"page",
"xMm",
"yMm",
"sizeMm",
"widthMm",
"fontSizeMm",
"foreground",
"background",
"shape",
"showCode"
],
"additionalProperties": false
},
"description": "Native ADS elements."
},
"artwork": {
"default": [],
"description": "Native ADS artwork.",
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "Native ADS page."
},
"widthPercent": {
"type": "number",
"minimum": 25,
"maximum": 300,
"description": "Native ADS widthPercent."
},
"heightPercent": {
"type": "number",
"minimum": 25,
"maximum": 300,
"description": "Native ADS heightPercent."
}
},
"required": [
"page",
"widthPercent",
"heightPercent"
],
"additionalProperties": false
}
},
"duplex": {
"type": "string",
"enum": [
"none",
"long",
"short"
],
"description": "Native ADS duplex."
},
"paper": {
"type": "string",
"enum": [
"a4",
"a4_landscape",
"a5",
"letter"
],
"description": "Native ADS paper."
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"description": "Native ADS quantity."
},
"mode": {
"type": "string",
"enum": [
"shared",
"unique"
],
"description": "Native ADS mode."
},
"batchId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.-]+$"
},
{
"type": "null"
}
],
"description": "Native ADS batchId."
},
"outputId": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"description": "Native ADS outputId."
},
"revision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Native ADS revision."
}
},
"required": [
"sourceId",
"backSourceId",
"elements",
"artwork",
"duplex",
"paper",
"quantity",
"mode",
"batchId",
"outputId",
"revision"
],
"additionalProperties": false,
"description": "Native ADS layout."
},
"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": [
"campaignId",
"placementId",
"layout",
"requestId"
],
"additionalProperties": false
}Выход · 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"
}
}
]
}
}
}