ตั้งแต่วันที่
8 กันยายน 2025 เป็นต้นไป รายการโฆษณาใหม่ทุกรายการจะต้องประกาศว่าจะแสดงโฆษณาทางการเมืองในสหภาพยุโรป (EU) หรือไม่ การอัปโหลด API ของ Display & Video 360 และ SDF ที่ไม่ได้ระบุการประกาศจะล้มเหลว ดูรายละเอียดเพิ่มเติมเกี่ยวกับวิธีอัปเดตการผสานรวมเพื่อประกาศนี้ได้ที่
หน้าการเลิกใช้งาน
Method: inventorySources.editInventorySourceReadWriteAccessors
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แก้ไขตัวเข้าถึงแบบอ่าน/เขียนของแหล่งที่มาของพื้นที่โฆษณา แสดงผล readWriteAccessors
ที่อัปเดตแล้วสำหรับแหล่งที่มาของพื้นที่โฆษณา
คำขอ HTTP
POST https://displayvideo.googleapis.com/v4/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
inventorySourceId |
string (int64 format)
ต้องระบุ รหัสแหล่งที่มาของพื้นที่โฆษณาที่จะอัปเดต
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง 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. |"]]