自
2025 年 9 月 8 日起,每個新委刊項都必須聲明是否會放送歐盟政治廣告。如果透過 Display & Video 360 API 和 SDF 上傳的檔案未提供聲明,系統就會失敗。如要進一步瞭解如何更新整合服務以進行這項聲明,請參閱
淘汰項目頁面。
Method: inventorySources.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://displayvideo.googleapis.com/v3/inventorySources
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
pageSize |
integer
請求的頁面大小。必須介於 1 至 200 之間。如果未指定,則預設為 100 。
|
pageToken |
string
這個符記可識別伺服器應傳回的結果頁面。通常,這是先前對 inventorySources.list 方法的呼叫傳回的 nextPageToken 值。如未指定,系統會傳回第一頁的結果。
|
orderBy |
string
用來排序清單的欄位。可接受的值如下:
預設排序順序為遞增。如要針對欄位指定遞減順序,則應於欄位名稱後方加上「desc」後置字串。例如 displayName desc 。
|
filter |
string
可讓您依廣告空間來源欄位進行篩選。 支援的語法:
- 篩選器運算式由一或多個限制組成。
- 您可以使用
AND 或 OR 邏輯運算子結合限制條件。一系列限制會隱含使用 AND 。
- 限制的格式為
{field} {operator} {value} 。
- 所有欄位都必須使用
EQUALS (=) 運算子。
支援的欄位:
status.entityStatus
commitment
deliveryMethod
rateDetails.rateType
exchange
範例:
- 所有有效的廣告空間來源:
status.entityStatus="ENTITY_STATUS_ACTIVE"
- 屬於 Google Ad Manager 或 Rubicon 廣告交易平台的廣告空間來源:
exchange="EXCHANGE_GOOGLE_AD_MANAGER" OR exchange="EXCHANGE_RUBICON"
這個欄位的長度不得超過 500 個半形字元。 詳情請參閱篩選 LIST 要求指南。
|
聯集參數 accessor 。必要欄位。指出要求是在哪個 DV360 實體中提出。列表要求只會傳回 accessor 中所識別 DV360 實體可存取的廣告空間來源實體。accessor 只能是下列其中一項: |
partnerId |
string (int64 format)
可存取廣告空間來源的合作夥伴 ID。
|
advertiserId |
string (int64 format)
可存取廣告空間來源的廣告主 ID。
|
回應主體
JSON 表示法 |
{
"inventorySources": [
{
object (InventorySource )
}
],
"nextPageToken": string
} |
欄位 |
inventorySources[] |
object (InventorySource )
廣告空間來源清單。 如果清單為空白,則不會顯示。
|
nextPageToken |
string
用來擷取下一頁結果的符記。在後續對 inventorySources.list 方法的呼叫中,透過 pageToken 欄位傳遞這個值,即可擷取下一頁的結果。
|
授權範圍
需要下列 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 (世界標準時間)。"],[[["\u003cp\u003eLists inventory sources accessible to the current user, ordered by \u003ccode\u003eorderBy\u003c/code\u003e parameter and excluding archived sources unless filtered.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e for retrieving results in manageable chunks.\u003c/p\u003e\n"],["\u003cp\u003eOffers filtering options using the \u003ccode\u003efilter\u003c/code\u003e parameter for refining results based on entity status, commitment, delivery method, rate type, or exchange.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying an \u003ccode\u003eaccessor\u003c/code\u003e (either \u003ccode\u003epartnerId\u003c/code\u003e or \u003ccode\u003eadvertiserId\u003c/code\u003e) to identify the DV360 entity for access control.\u003c/p\u003e\n"],["\u003cp\u003eUses \u003ccode\u003eGET\u003c/code\u003e request to \u003ccode\u003ehttps://displayvideo.googleapis.com/v3/inventorySources\u003c/code\u003e and requires \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e authorization scope.\u003c/p\u003e\n"]]],["This API lists accessible inventory sources for a user via a `GET` request to `https://displayvideo.googleapis.com/v3/inventorySources`. Key parameters include `pageSize`, `pageToken`, `orderBy` for sorting, and `filter` for filtering by fields like `entityStatus`, `commitment`, or `exchange`. The request body must be empty. The response includes a list of inventory sources and a `nextPageToken` for pagination. The call requires authorization scope: `https://www.googleapis.com/auth/display-video`. A union parameter called `accessor` is required to identify the DV360 entity the request is being made from.\n"],null,[]]