С
8 сентября 2025 года в каждой новой позиции необходимо будет указывать, будет ли она показывать политическую рекламу Европейского союза (ЕС). Загрузки через Display & Video 360 API и SDF без таких указаний будут отклонены. Подробнее о том, как обновить интеграцию и указать это указание, см.
на странице «Устаревшие функции».
Method: inventorySources.patch
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Обновляет существующий источник инвентаря. В случае успеха возвращает обновленный источник инвентаря.
HTTP-запрос
PATCH https://displayvideo.googleapis.com/v4/inventorySources/{inventorySource.inventorySourceId}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
inventorySource.inventorySourceId | string ( int64 format) Только вывод. Уникальный идентификатор источника инвентаря. Назначается системой. |
Параметры запроса
Параметры |
---|
updateMask | string ( FieldMask format) Необходимый. Маска для управления тем, какие поля обновлять. Это разделенный запятыми список полных имен полей. Пример: "user.displayName,photo" . |
accessor параметру объединения. Необходимый. Определяет, в рамках какого объекта DV360 делается запрос. accessor может быть только одним из следующих: |
partnerId | string ( int64 format) Идентификатор партнера, от которого делается запрос. |
advertiserId | string ( int64 format) Идентификатор рекламодателя, от которого делается запрос. |
Тело запроса
Тело запроса содержит экземпляр InventorySource
.
Тело ответа
В случае успеха тело ответа содержит экземпляр InventorySource
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/display-video
Для получения дополнительной информации см.OAuth 2.0 Overview .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[],["The Display & Video 360 API v4 (beta) updates an existing inventory source using a PATCH request. The request URL includes the `inventorySourceId` as a path parameter. It requires the `updateMask` to specify fields for updating, and an `accessor` (either `partnerId` or `advertiserId`). The request body contains `InventorySource` data and if the operation succeeds, the API returns the updated `InventorySource` in the response. Authorization needs the `display-video` OAuth scope.\n"],null,["# Method: inventorySources.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates an existing inventory source. Returns the updated inventory source if successful.\n\n### HTTP request\n\n`PATCH https://displayvideo.googleapis.com/v4/inventorySources/{inventorySource.inventorySourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `inventorySource.inventorySourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the inventory source. Assigned by the system. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The mask to control which fields to update. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| Union parameter `accessor`. Required. Identifies which DV360 entity the request is being made within. `accessor` can be only one of the following: ||\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the partner that the request is being made within. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that the request is being made within. |\n\n### Request body\n\nThe request body contains an instance of [InventorySource](/display-video/api/reference/rest/v4/inventorySources#InventorySource).\n\n### Response body\n\nIf successful, the response body contains an instance of [InventorySource](/display-video/api/reference/rest/v4/inventorySources#InventorySource).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]