自
2025 年 9 月 8 日起,每個新委刊項都必須聲明是否會放送歐盟政治廣告。如果透過 Display & Video 360 API 和 SDF 上傳的檔案未提供聲明,系統就會失敗。如要進一步瞭解如何更新整合服務以進行這項聲明,請參閱
淘汰項目頁面。
REST Resource: advertisers.locationLists.assignedLocations
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:AssignedLocation
JSON 表示法 |
{
"name": string,
"assignedLocationId": string,
"targetingOptionId": string
} |
欄位 |
name |
string
僅供輸出。指派位置的資源名稱。
|
assignedLocationId |
string (int64 format)
僅供輸出。指派位置的專屬 ID。這個 ID 只會在位置資訊清單中重複。並可在其他情境中重複使用。
|
targetingOptionId |
string
必要欄位。指派給地區清單的指定目標選項 ID。
|
方法 |
|
大量編輯地點和單一地點清單之間的多項指派。 |
|
為位置和位置清單建立指派。 |
|
刪除位置和位置清單之間的對應關係。 |
|
列出指派給地區清單的位置。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eAssignedLocation resource represents an assignment between a location list and a targeting option, allowing advertisers to target specific locations.\u003c/p\u003e\n"],["\u003cp\u003eIt includes fields like \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003eassignedLocationId\u003c/code\u003e, and \u003ccode\u003etargetingOptionId\u003c/code\u003e to manage the assignments.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage AssignedLocations using methods like \u003ccode\u003ebulkEdit\u003c/code\u003e, \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003edelete\u003c/code\u003e, and \u003ccode\u003elist\u003c/code\u003e to modify and retrieve assignments.\u003c/p\u003e\n"],["\u003cp\u003eThese methods provide functionality to edit multiple assignments, create new ones, remove existing ones, and retrieve a list of locations assigned to a specific list.\u003c/p\u003e\n"]]],[],null,["# REST Resource: advertisers.locationLists.assignedLocations\n\n| Display \\& Video 360 API is deprecated and will sunset on **October 7, 2025** . Migrate to [Display \\& Video 360 API v4](/display-video/api/reference/rest/v4) before sunset to avoid an interruption in service.\n- [Resource: AssignedLocation](#AssignedLocation)\n - [JSON representation](#AssignedLocation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AssignedLocation\n--------------------------\n\nAn assignment between a location list and a relevant targeting option.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"assignedLocationId\": string, \"targetingOptionId\": string } ``` |\n\n| Fields ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The resource name of the assigned location. |\n| `assignedLocationId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the assigned location. The ID is only unique within a location list. It may be reused in other contexts. |\n| `targetingOptionId` | `string` Required. The ID of the targeting option assigned to the location list. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| ### [bulkEdit](/display-video/api/reference/rest/v3/advertisers.locationLists.assignedLocations/bulkEdit) | Bulk edits multiple assignments between locations and a single location list. |\n| ### [create](/display-video/api/reference/rest/v3/advertisers.locationLists.assignedLocations/create) | Creates an assignment between a location and a location list. |\n| ### [delete](/display-video/api/reference/rest/v3/advertisers.locationLists.assignedLocations/delete) | Deletes the assignment between a location and a location list. |\n| ### [list](/display-video/api/reference/rest/v3/advertisers.locationLists.assignedLocations/list) | Lists locations assigned to a location list. |"]]