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

Реклама · Офлайн · Места размещения · Изменение

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

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

Подготовить
  1. Вы указываетеКампания
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Реклама / Офлайн / Места размещения / Изменение». Для изменения нужны кампания, placementId. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
campaignId
Кампания
placementId
Параметр
name
Название
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Реклама / Офлайн / Места размещения / Изменение» с параметром adType = flyer. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
adType
flyer
status
active
campaignId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Реклама / Офлайн / Места размещения / Изменение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса. Если связь оборвётся, используйте способ восстановления из описания разработчика ниже.

Описание разработчика

Update a native offline placement at its exact revision, including destination, status and actual cost items. 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
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · максимум 9007199254740991
name
Native ADS name. обязательно по схеме · string · до символов 200
adType
Native ADS adType. обязательно по схеме · string · варианты flyer, brochure, yard_sign, poster, vehicle, business_card, banner, packaging, other
placement
Native ADS placement. обязательно по схеме · string · до символов 300
destinationUrl
Native ADS destinationUrl. обязательно по схеме · string · до символов 2048
costItems
Native ADS costItems. обязательно по схеме · array · до элементов 50
status
Native ADS status. обязательно по схеме · string · по умолчанию "active" · варианты active, paused
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
Поля и технические схемы
Входные поля и поля ответа ads_offline_placement_update
Вход · 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."
    },
    "expectedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Native ADS expectedRevision."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Native ADS name."
    },
    "adType": {
      "type": "string",
      "enum": [
        "flyer",
        "brochure",
        "yard_sign",
        "poster",
        "vehicle",
        "business_card",
        "banner",
        "packaging",
        "other"
      ],
      "description": "Native ADS adType."
    },
    "placement": {
      "type": "string",
      "maxLength": 300,
      "description": "Native ADS placement."
    },
    "destinationUrl": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri",
      "description": "Native ADS destinationUrl."
    },
    "costItems": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,128}$",
            "description": "Native ADS id."
          },
          "category": {
            "type": "string",
            "enum": [
              "printing",
              "design",
              "distribution",
              "installation",
              "other"
            ],
            "description": "Native ADS category."
          },
          "description": {
            "type": "string",
            "maxLength": 300,
            "description": "Native ADS description."
          },
          "amount": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000,
            "description": "Native ADS amount."
          },
          "incurredOn": {
            "type": "string",
            "allOf": [
              {
                "$ref": "#/$defs/_mcp0"
              },
              {
                "$ref": "#/$defs/_mcp0"
              }
            ],
            "description": "Native ADS incurredOn."
          }
        },
        "required": [
          "id",
          "category",
          "description",
          "amount",
          "incurredOn"
        ],
        "additionalProperties": false
      },
      "description": "Native ADS costItems."
    },
    "status": {
      "default": "active",
      "description": "Native ADS status.",
      "type": "string",
      "enum": [
        "active",
        "paused"
      ]
    },
    "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",
    "expectedRevision",
    "name",
    "adType",
    "placement",
    "destinationUrl",
    "costItems",
    "status",
    "requestId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    }
  }
}
Выход · 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"
          }
        }
      ]
    }
  }
}