Kể từ
ngày 8 tháng 9 năm 2025, mỗi mục hàng mới sẽ cần phải khai báo xem mục hàng đó có phân phát quảng cáo chính trị ở Liên minh Châu Âu (EU) hay không. Display & Video 360 API và các tệp SDF được tải lên mà không cung cấp thông tin khai báo sẽ không thành công. Hãy xem
trang thông báo về những nội dung không dùng nữa để biết thêm thông tin về cách cập nhật quy trình tích hợp để đưa ra nội dung khai báo này.
Method: inventorySources.editInventorySourceReadWriteAccessors
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chỉnh sửa phương thức truy cập đọc/ghi của một nguồn khoảng không quảng cáo. Trả về readWriteAccessors
đã cập nhật cho nguồn khoảng không quảng cáo.
Yêu cầu HTTP
POST https://displayvideo.googleapis.com/v4/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
inventorySourceId |
string (int64 format)
Bắt buộc. Mã nguồn khoảng không quảng cáo cần cập nhật.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng 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 .
} |
Trường |
partnerId |
string (int64 format)
Bắt buộc. Ngữ cảnh đối tác mà theo đó phương thức truy cập đang thay đổi.
|
Trường hợp hợp nhất accessors_change . Thay đổi đối với phương thức truy cập đọc/ghi của nguồn khoảng không quảng cáo. accessors_change chỉ có thể là một trong những loại sau: |
assignPartner |
boolean
Đặt ngữ cảnh đối tác làm phương thức truy cập đọc/ghi của nguồn khoảng không quảng cáo. Thao tác này sẽ xoá tất cả các phương thức truy cập nhà quảng cáo đọc/ghi hiện tại khác.
|
advertisersUpdate |
object (AdvertisersUpdate )
Nhà quảng cáo cần thêm hoặc xoá khỏi danh sách nhà quảng cáo có quyền đọc/ghi vào nguồn khoảng không quảng cáo. Thay đổi này sẽ xoá một đối tượng truy cập đọc/ghi đối tác hiện có.
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của InventorySourceAccessors
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/display-video
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
AdvertisersUpdate
Cập nhật danh sách nhà quảng cáo có quyền đọc/ghi vào nguồn khoảng không quảng cáo.
Biểu diễn dưới dạng JSON |
{
"addedAdvertisers": [
string
],
"removedAdvertisers": [
string
]
} |
Trường |
addedAdvertisers[] |
string (int64 format)
Nhà quảng cáo cần thêm.
|
removedAdvertisers[] |
string (int64 format)
Nhà quảng cáo cần xoá.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]