Method: advertisers.locationLists.list
HTTP 要求
GET https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/locationLists
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
advertiserId |
string (int64 format)
必要欄位。擷取的位置清單所屬的 DV360 廣告主 ID。
|
查詢參數
參數 |
pageSize |
integer
請求的頁面大小。必須介於 1 至 200 之間。如果未設定,預設值為 100 。如果指定無效值,則會傳回錯誤代碼 INVALID_ARGUMENT 。
|
pageToken |
string
用來識別伺服器應傳回的結果頁面的符記。 通常,這是先前對 locationLists.list 方法的呼叫傳回的 nextPageToken 值。如未指定,系統會傳回第一頁的結果。
|
orderBy |
string
用來排序清單的欄位。可接受的值如下:
locationListId (預設)
displayName
預設排序順序為遞增。如要針對欄位指定遞減順序,則應於欄位名稱後方加上「desc」後置字串。範例:displayName desc 。
|
filter |
string
允許依據位置清單欄位進行篩選。 支援的語法:
- 篩選器運算式由一或多個限制組成。
- 限制條件可以透過
AND 或 OR 邏輯運算子結合。一系列限制會隱含使用 AND 。
- 限制的格式為
{field} {operator} {value} 。
- 所有欄位都必須使用
EQUALS (=) 運算子。
支援的欄位:
範例:
- 所有區域地點清單:
locationType="TARGETING_LOCATION_TYPE_REGIONAL"
- 所有鄰近位置清單:
locationType="TARGETING_LOCATION_TYPE_PROXIMITY"
這個欄位的長度不得超過 500 個半形字元。 詳情請參閱篩選 LIST 要求指南。
|
回應主體
JSON 表示法 |
{
"locationLists": [
{
object (LocationList )
}
],
"nextPageToken": string
} |
欄位 |
locationLists[] |
object (LocationList )
位置清單清單。 如果清單為空白,則不會顯示。
|
nextPageToken |
string
用來擷取下一頁結果的符記。 在後續對 locationLists.list 方法的呼叫中,透過 pageToken 欄位傳遞這個值,即可擷取下一頁的結果。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/display-video
詳情請參閱 OAuth 2.0 Overview。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-25 (世界標準時間)。
[null,null,["上次更新時間:2025-02-25 (世界標準時間)。"],[[["Lists location lists for a given advertiser using the `locationLists.list` method."],["Filter results by location type, page size, page token, and order."],["Request requires advertiser ID as a path parameter."],["Response includes a list of location lists and a token for the next page."],["Requires authorization with the `https://www.googleapis.com/auth/display-video` scope."]]],["This document outlines how to retrieve location lists for a specific DV360 advertiser using a `GET` request to the provided URL. The request requires the `advertiserId` as a path parameter. Optional query parameters include `pageSize`, `pageToken`, `orderBy`, and `filter` to control pagination, sorting, and filtering. The request body should be empty. The successful response contains a list of location list objects and a `nextPageToken` for further pagination. It requires `https://www.googleapis.com/auth/display-video` authorization.\n"]]