MCP Control
Реклама · Изменение

Реклама · Маркетинг · Контент · Изменение

ads_marketing_content_update
Фотокамера и образцы цвета

Попробуйте три запроса

Подготовить
  1. Вы указываетеPostid
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Маркетинг / Контент / Изменение». Для изменения нужны postId, изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
postId
Параметр
values
Изменяемые поля
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Маркетинг / Контент / Изменение» с параметром values.contentType = TEXT. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
values.contentType
TEXT
values.aiReplyEnabled
true
values.directMessageEnabled
true
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Маркетинг / Контент / Изменение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный 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
postId
Native postId value; use the value and type returned by the corresponding service. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
values
Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
Что вернёт команда
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
Поля и технические схемы
Входные поля и поля ответа ads_marketing_content_update
Вход · 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."
    },
    "postId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native postId value; use the value and type returned by the corresponding service."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^\\d{1,12}:\\d{1,9}$",
      "description": "Exact Social revision from social_workspace_get, not the legacy fsv1 revision."
    },
    "values": {
      "type": "object",
      "properties": {
        "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
        }
      },
      "additionalProperties": false,
      "description": "Native values value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "requestId",
    "postId",
    "expectedRevision",
    "values"
  ],
  "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"
          }
        }
      ]
    }
  }
}