自
2025 年 9 月 8 日起,每個新委刊項都必須聲明是否會放送歐盟政治廣告。如果透過 Display & Video 360 API 和 SDF 上傳的檔案未提供聲明,系統就會失敗。如要進一步瞭解如何更新整合服務以進行這項聲明,請參閱
淘汰項目頁面。
Method: advertisers.locationLists.assignedLocations.bulkEdit
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations:bulkEdit
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
advertiserId |
string (int64 format)
必要欄位。位置清單所屬的 DV360 廣告主 ID。
|
locationListId |
string (int64 format)
必要欄位。這些指派項目指派到的地區清單 ID。
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"deletedAssignedLocations": [
string
],
"createdAssignedLocations": [
{
object (AssignedLocation )
}
]
} |
欄位 |
deletedAssignedLocations[] |
string (int64 format)
要大量刪除的已指派位置 ID,以 assignedLocationId 值清單的形式指定。
|
createdAssignedLocations[] |
object (AssignedLocation )
要大量建立的指定位置,以 AssignedLocation 資源清單的形式指定。
|
回應主體
欄位 |
assignedLocations[] |
object (AssignedLocation )
已成功建立的指定位置清單。 如果清單為空白,則不會顯示。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/display-video
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Method: advertisers.locationLists.assignedLocations.bulkEdit\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 - [JSON representation](#body.BulkEditAssignedLocationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nBulk edits multiple assignments between locations and a single location list.\n\nThe operation will delete the assigned locations provided in [deletedAssignedLocations](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit#body.request_body.FIELDS.deleted_assigned_locations) and then create the assigned locations provided in [createdAssignedLocations](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit#body.request_body.FIELDS.created_assigned_locations).\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations:bulkEdit`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the DV360 advertiser to which the location list belongs. |\n| `locationListId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the location list to which these assignments are assigned. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deletedAssignedLocations\": [ string ], \"createdAssignedLocations\": [ { object (/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) } ] } ``` |\n\n| Fields ||\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deletedAssignedLocations[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The IDs of the assigned locations to delete in bulk, specified as a list of [assignedLocationId](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation.FIELDS.assigned_location_id) values. |\n| `createdAssignedLocations[]` | `object (`[AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation)`)` The assigned locations to create in bulk, specified as a list of [AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) resources. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"assignedLocations\": [ { object (/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) } ] } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assignedLocations[]` | `object (`[AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation)`)` The list of assigned locations that have been successfully created. This list will be absent if empty. |\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)."]]