Реклама · Изменение
Реклама · Маркетинг · Контент · Создание
ads_marketing_content_create
Попробуйте три запроса
Подготовить
- Вы указываетеIntegrationid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Маркетинг / Контент / Создание». Для изменения нужны integrationId, youtube. Покажи объект и ожидаемый эффект до выполнения.
- integrationId
- Параметр
- youtube
- Параметр
- caption
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Маркетинг / Контент / Создание» с параметром contentType = TEXT. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- contentType
- TEXT
- integrationId
- DEMO-101
- aiReplyEnabled
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Маркетинг / Контент / Создание» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create/update a canonical ADS social draft, or cancel its existing publication schedule. Uses the same native Social schemas and revisions as the interface. Does not publish a draft.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- integrationId
- Native integrationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- youtube
- Native youtube value; use the value and type returned by the corresponding service. необязательно · object
- caption
- Native caption value; use the value and type returned by the corresponding service. необязательно · string · до символов 12000
- media
- Native media value; use the value and type returned by the corresponding service. необязательно · array · до элементов 10
- contentType
- Native contentType value; use the value and type returned by the corresponding service. необязательно · string · варианты TEXT, IMAGE, VIDEO, CAROUSEL, REELS, STORIES, SHORTS
- manualContext
- Native manualContext value; use the value and type returned by the corresponding service. необязательно · string · до символов 20000
- aiReplyEnabled
- Native aiReplyEnabled value; use the value and type returned by the corresponding service. необязательно · boolean
- replyInstructionPrompt
- Native replyInstructionPrompt value; use the value and type returned by the corresponding service. необязательно · string · до символов 12000
- directMessageEnabled
- Native directMessageEnabled value; use the value and type returned by the corresponding service. необязательно · boolean
- whenToSendPrivateMessage
- Native whenToSendPrivateMessage value; use the value and type returned by the corresponding service. необязательно · string · до символов 12000
Что вернёт команда
- result
- Hash-bound JSON chunk of the canonical ADS workflow result. Follow nextOffset on reads. Mutation details can be read again using the corresponding get/calendar action. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
},
"integrationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native integrationId value; use the value and type returned by the corresponding service."
},
"youtube": {
"description": "Native youtube value; use the value and type returned by the corresponding service.",
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Native title value; use the value and type returned by the corresponding service."
},
"privacyStatus": {
"type": "string",
"enum": [
"private",
"unlisted",
"public"
],
"description": "Native privacyStatus value; use the value and type returned by the corresponding service."
},
"madeForKids": {
"type": "boolean",
"description": "Native madeForKids value; use the value and type returned by the corresponding service."
},
"categoryId": {
"default": "22",
"description": "Native categoryId value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^\\d{1,3}$"
},
"tags": {
"default": [],
"description": "Native tags value; use the value and type returned by the corresponding service.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50
}
}
},
"required": [
"title",
"privacyStatus",
"madeForKids",
"categoryId",
"tags"
],
"additionalProperties": false
},
"caption": {
"description": "Native caption value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 12000
},
"media": {
"description": "Native media value; use the value and type returned by the corresponding service.",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"storagePath": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Company-owned Social storagePath from media_list or media_import."
},
"type": {
"type": "string",
"enum": [
"image",
"video"
],
"description": "Native type value; use the value and type returned by the corresponding service."
},
"name": {
"description": "Native name value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 200
}
},
"required": [
"storagePath",
"type"
],
"additionalProperties": false
}
},
"contentType": {
"description": "Native contentType value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"TEXT",
"IMAGE",
"VIDEO",
"CAROUSEL",
"REELS",
"STORIES",
"SHORTS"
]
},
"manualContext": {
"description": "Native manualContext value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 20000
},
"aiReplyEnabled": {
"description": "Native aiReplyEnabled value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"replyInstructionPrompt": {
"description": "Native replyInstructionPrompt value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 12000
},
"directMessageEnabled": {
"description": "Native directMessageEnabled value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"whenToSendPrivateMessage": {
"description": "Native whenToSendPrivateMessage value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 12000
}
},
"required": [
"requestId",
"integrationId"
],
"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": "Hash-bound JSON chunk of the canonical ADS workflow result. Follow nextOffset on reads. Mutation details can be read again using the corresponding get/calendar action."
}
},
"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"
}
}
]
}
}
}