Method: networks.adUnits.get
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
      
      
      
        API to retrieve an AdUnit object.
      
      
        
          HTTP request
          GET https://admanager.googleapis.com/v1/{name}
        
        
          Path parameters
          
            
              
              
            
            
              
                | Parameters | 
              
            
            
              
                name | 
                
                   string 
                  Required. The resource name of the AdUnit. Format: networks/{networkCode}/adUnits/{adUnitId} 
                 | 
              
            
          
        
        
          Request body
          The request body must be empty.
        
        
          Response body
          If successful, the response body contains an instance of AdUnit.
        
        
          Authorization scopes
          Requires the following OAuth scope:
          
            https://www.googleapis.com/auth/admanager 
          
For more information, see the OAuth 2.0 Overview.
        
      
      
    
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-08-20 UTC.
  
  
  
    
      [null,null,["Last updated 2025-08-20 UTC."],[],["The API uses a `GET` request to retrieve an AdUnit object at the specified URL: `https://admanager.googleapis.com/v1/{name}`. The `name` parameter, a string, is mandatory and follows the format `networks/{networkCode}/adUnits/{adUnitId}`. The request body must be empty. A successful response returns an AdUnit object. This action needs authorization and requires the OAuth scope: `https://www.googleapis.com/auth/admanager`.\n"]]