Реклама · Изменение
Реклама · Аудитории · Сохранение
ads_audience_save
Попробуйте три запроса
Подготовить
- Вы указываетеId записи
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Аудитории / Сохранение». Для изменения нужны название, description. Покажи объект и ожидаемый эффект до выполнения.
- name
- Название
- description
- Параметр
- targeting
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Аудитории / Сохранение» с параметром id = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- id
- DEMO-101
- name
- Осенняя коллекция
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Аудитории / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса. Если связь оборвётся, используйте способ восстановления из описания разработчика ниже.
Описание разработчика
Create or update a company advertising audience with verified Meta interests and Google keywords/exclusions. Updating requires the current audience revision. After a lost response use ads_workspace_operation_get with this operation name and the original requestId. Never infer success from a queued job.
Параметры запроса
- id
- Идентификатор выбранной записи. необязательно · string
- expectedRevision
- Версия, прочитанная перед изменением. необязательно · string · до символов 100
- name
- Native ADS name. обязательно по схеме · string · до символов 200
- description
- Native ADS description. обязательно по схеме · string · до символов 2000
- targeting
- Native ADS targeting. обязательно по схеме · object
- ageMin
- Native ADS ageMin. обязательно по схеме · integer · минимум 18 · максимум 100
- ageMax
- Native ADS ageMax. обязательно по схеме · integer · минимум 18 · максимум 100
- 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": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Native ADS id."
},
"expectedRevision": {
"type": "string",
"maxLength": 100,
"description": "Native ADS expectedRevision."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Native ADS name."
},
"description": {
"type": "string",
"maxLength": 2000,
"description": "Native ADS description."
},
"targeting": {
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"interests": {
"default": [],
"description": "Native ADS interests.",
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Native ADS id."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Native ADS name."
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
}
}
},
"required": [
"interests"
],
"additionalProperties": false,
"description": "Native ADS meta."
},
"google_ads": {
"type": "object",
"properties": {
"keywords": {
"default": [],
"description": "Native ADS keywords.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"matchType": {
"default": "PHRASE",
"description": "Native ADS matchType.",
"type": "string",
"enum": [
"EXACT",
"PHRASE",
"BROAD"
]
},
"negativeKeywords": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"description": "Native ADS negativeKeywords."
},
"negativeMatchType": {
"type": "string",
"enum": [
"EXACT",
"PHRASE",
"BROAD"
],
"description": "Native ADS negativeMatchType."
},
"locations": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"resourceName": {
"type": "string",
"pattern": "^geoTargetConstants\\/\\d+$",
"description": "Native ADS resourceName."
},
"negative": {
"type": "boolean",
"description": "Native ADS negative."
}
},
"required": [
"resourceName"
],
"additionalProperties": false
},
"description": "Native ADS locations."
}
},
"required": [
"keywords",
"matchType"
],
"additionalProperties": false,
"description": "Native ADS google_ads."
}
},
"additionalProperties": false,
"description": "Native ADS targeting."
},
"ageMin": {
"type": "integer",
"minimum": 18,
"maximum": 100,
"description": "Native ADS ageMin."
},
"ageMax": {
"type": "integer",
"minimum": 18,
"maximum": 100,
"description": "Native ADS ageMax."
},
"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",
"description",
"targeting",
"ageMin",
"ageMax",
"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"
}
}
]
}
}
}