Method: accounts.adUnits.list
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
    
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
      
        
          HTTP 要求
          GET https://admob.googleapis.com/v1beta/{parent=accounts/*}/adUnits
這個網址使用 gRPC 轉碼語法。
        
        
          路徑參數
          
            
              
              
            
            
              
                | 參數 | 
            
            
              
                | parent | string
 必要欄位。要列出其廣告單元的帳戶資源名稱。範例:accounts/pub-9876543210987654 | 
            
          
        
        
          查詢參數
          
            
              
              
            
            
              
                | 參數 | 
            
            
              
                | pageSize | integer
 要傳回的廣告單元數量上限。如果未指定或為 0,最多將傳回 10,000 個廣告單元。許可的最大值為 20,000;超過 20,000 個值將強制轉換為 20,000。 | 
              
                | pageToken | string
 最後一個 ListAdUnitsResponse傳回的值;表示這是之前的adUnits.list呼叫的接續,系統應傳回下一頁的資料。 | 
            
          
        
        
        
          回應主體
          
            
              廣告單元清單請求的回應。
              如果成功,回應主體會含有以下結構的資料:
            
            
              
                
                  
                    | JSON 表示法 | 
                
                
                  
                    | {
  "adUnits": [
    {
      object (AdUnit)
    }
  ],
  "nextPageToken": string
} | 
                
              
            
            
              
                
                  
                  
                
                
                  
                    | 欄位 | 
                
                
                  
                    | adUnits[] | object (AdUnit)
 指定帳戶所產生的廣告單元。 | 
                  
                    | nextPageToken | string
 如果沒有空白,表示請求中可能還有其他廣告單元;這個值應在新的 ListAdUnitsRequest中傳遞。 | 
                
              
            
          
        
        
          授權範圍
          需要下列其中一種 OAuth 範圍:
          
            - https://www.googleapis.com/auth/admob.monetization
- 
          https://www.googleapis.com/auth/admob.readonly
詳情請參閱 OAuth 2.0 總覽。
        
      
      
      
    
  
  
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-08-21 (世界標準時間)。
  
  
  
    
      [[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-21 (世界標準時間)。"],[],["This document details how to list ad units associated with a specific AdMob account. The process involves sending a `GET` request to `https://admob.googleapis.com/v1beta/{parent=accounts/*}/adUnits`, where `parent` is the account's resource name.  Optional query parameters, `pageSize` (up to 20,000) and `pageToken` (for pagination), can be included. The request body must be empty. The response includes an array of `adUnits` and a `nextPageToken` for further results. Authorization requires specific OAuth scopes.\n"]]