列出廣告來源。
HTTP 要求
GET https://admob.googleapis.com/v1beta/{parent=accounts/*}/adSources
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
| parent | 
 必要欄位。擁有這個廣告來源集合的上層。格式:accounts/{publisherId} | 
查詢參數
| 參數 | |
|---|---|
| pageSize | 
 要傳回的廣告來源數量上限。如果未指定或為 0,最多將傳回 10,000 個廣告來源。許可的最大值為 20,000;超過 10,000 個值將強制轉換為 20,000。 | 
| pageToken | 
 屬於接收自前一個  | 
要求主體
要求主體必須為空白。
回應主體
ListAdSourcesRequest 的回應。
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 | 
|---|
| {
  "adSources": [
    {
      object ( | 
| 欄位 | |
|---|---|
| adSources[] | 
 廣告來源。 | 
| nextPageToken | 
 用於設定  | 
授權範圍
需要下列其中一種 OAuth 範圍:
- https://www.googleapis.com/auth/admob.readonly
- https://www.googleapis.com/auth/admob.report
詳情請參閱 OAuth 2.0 總覽。
AdSource
中介服務廣告來源的定義。
| JSON 表示法 | 
|---|
| { "name": string, "adSourceId": string, "title": string } | 
| 欄位 | |
|---|---|
| name | 
 這個廣告來源的資源名稱。 格式為:accounts/{publisherId}/adSources/{adSourceId} | 
| adSourceId | 
 此廣告來源的 ID。 | 
| title | 
 此廣告來源的顯示名稱。 |