Реклама · Чувствительное действие
Реклама · Маркетинг · Push · Создание
ads_marketing_push_create
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Маркетинг / Push / Создание». Для изменения нужны subject, текст. Покажи объект и ожидаемый эффект до выполнения.
- subject
- Параметр
- text
- Текст
- customerIds
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Маркетинг / Push / Создание» с параметром text = Учебный текст. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- text
- Учебный текст
- consent
- true
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Маркетинг / Push / Создание» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Preview or send an immediate native push broadcast to consenting company customers. Create requires the unchanged preview reviewHash and request ID; current notifications.send permission is rechecked at native dispatch. Queued is not delivered.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- subject
- Native subject value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 160
- text
- Native text value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 1200
- customerIds
- Native customerIds value; use the value and type returned by the corresponding service. обязательно по схеме · array · до элементов 500
- consent
- Native consent value; use the value and type returned by the corresponding service. обязательно по схеме · boolean
- reviewHash
- Native reviewHash value; use the value and type returned by the corresponding service. обязательно по схеме · string
Что вернёт команда
- 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."
},
"subject": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "Native subject value; use the value and type returned by the corresponding service."
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 1200,
"description": "Native text value; use the value and type returned by the corresponding service."
},
"customerIds": {
"minItems": 1,
"maxItems": 500,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"description": "Native customerIds value; use the value and type returned by the corresponding service."
},
"consent": {
"type": "boolean",
"const": true,
"description": "Native consent value; use the value and type returned by the corresponding service."
},
"reviewHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native reviewHash value; use the value and type returned by the corresponding service."
}
},
"required": [
"requestId",
"subject",
"text",
"customerIds",
"consent",
"reviewHash"
],
"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"
}
}
]
}
}
}