2025 年 9 月 8 日以降、すべての新しい広告申込情報で、欧州連合(EU)の政治広告を配信するかどうかを宣言する必要があります。宣言が提供されていないディスプレイ&ビデオ 360 API と SDF のアップロードは失敗します。統合を更新してこの宣言を行う方法について詳しくは、
非推奨のページをご覧ください。
Method: inventorySources.editInventorySourceReadWriteAccessors
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP リクエスト
POST https://displayvideo.googleapis.com/v4/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
inventorySourceId |
string (int64 format)
必須。更新する広告枠ソースの ID。
|
リクエストの本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"partnerId": string,
// Union field accessors_change can be only one of the following:
"assignPartner": boolean,
"advertisersUpdate": {
object (AdvertisersUpdate )
}
// End of list of possible types for union field accessors_change .
} |
フィールド |
partnerId |
string (int64 format)
必須。アクセサの変更が行われるパートナー コンテキスト。
|
共用体フィールド accessors_change 。広告枠ソースの読み取り/書き込みアクセサの変更。accessors_change は次のいずれかになります。 |
assignPartner |
boolean
パートナー コンテキストを広告在庫ソースの読み取り/書き込みアクセサラとして設定します。これにより、現在の他のすべての読み取り/書き込み広告主アクセサラが削除されます。
|
advertisersUpdate |
object (AdvertisersUpdate )
広告枠ソースへの読み取り/書き込みアクセス権を持つ広告主のリストに追加または削除する広告主。この変更により、既存のパートナーの読み取り/書き込みアクセサラが削除されます。
|
レスポンスの本文
成功した場合、レスポンスの本文には InventorySourceAccessors
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/display-video
詳細については、OAuth 2.0 Overview をご覧ください。
AdvertisersUpdate
広告枠ソースに対する読み取り/書き込みアクセス権を持つ広告主のリストを更新しました。
JSON 表現 |
{
"addedAdvertisers": [
string
],
"removedAdvertisers": [
string
]
} |
フィールド |
addedAdvertisers[] |
string (int64 format)
追加する広告主。
|
removedAdvertisers[] |
string (int64 format)
削除する広告主。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The Display & Video 360 API v4 (beta) allows editing read/write accessors for inventory sources via a POST request to a specific URL. The request requires the `inventorySourceId` as a path parameter and a JSON body specifying the `partnerId`. Accessors can be changed by either assigning a partner read/write access or updating specific advertisers' access via `addedAdvertisers` and `removedAdvertisers` fields. The response will provide updated `InventorySourceAccessors` and `OAuth` scope is required.\n"],null,["# Method: inventorySources.editInventorySourceReadWriteAccessors\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [AdvertisersUpdate](#AdvertisersUpdate)\n - [JSON representation](#AdvertisersUpdate.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nEdits read/write accessors of an inventory source. Returns the updated [readWriteAccessors](/display-video/api/reference/rest/v4/inventorySources#InventorySource.FIELDS.read_write_accessors) for the inventory source.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `inventorySourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of inventory source to update. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"partnerId\": string, // Union field `accessors_change` can be only one of the following: \"assignPartner\": boolean, \"advertisersUpdate\": { object (/display-video/api/reference/rest/v4/inventorySources/editInventorySourceReadWriteAccessors#AdvertisersUpdate) } // End of list of possible types for union field `accessors_change`. } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The partner context by which the accessors change is being made. |\n| Union field `accessors_change`. The change to the read/write accessors of the inventory source. `accessors_change` can be only one of the following: ||\n| `assignPartner` | `boolean` Set the partner context as read/write accessor of the inventory source. This will remove all other current read/write advertiser accessors. |\n| `advertisersUpdate` | `object (`[AdvertisersUpdate](/display-video/api/reference/rest/v4/inventorySources/editInventorySourceReadWriteAccessors#AdvertisersUpdate)`)` The advertisers to add or remove from the list of advertisers that have read/write access to the inventory source. This change will remove an existing partner read/write accessor. |\n\n### Response body\n\nIf successful, the response body contains an instance of [InventorySourceAccessors](/display-video/api/reference/rest/v4/inventorySources#InventorySourceAccessors).\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).\n\nAdvertisersUpdate\n-----------------\n\nUpdate to the list of advertisers with read/write access to the inventory source.\n\n| JSON representation |\n|------------------------------------------------------------------------------|\n| ``` { \"addedAdvertisers\": [ string ], \"removedAdvertisers\": [ string ] } ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------|\n| `addedAdvertisers[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The advertisers to add. |\n| `removedAdvertisers[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The advertisers to remove. |"]]