Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
    
    ComponentAdData
    class ComponentAdData : Parcelable
    
    Represents data specific to a component ad that is necessary for ad selection and rendering. This is to support use case for ads composed of multiple pieces, such as an ad displaying multiple products at once.
    Summary
    
      
        
          | Inherited constants | 
        
          | From class Parcelable
                
                  
                    | Int | CONTENTS_FILE_DESCRIPTOR
                         Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor. |  
                    | Int | PARCELABLE_WRITE_RETURN_VALUE
                         Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point. |  | 
      
    
    
    
      
        
          | Public methods | 
        
          | Int |  | 
        
          | Boolean |  | 
        
          | String | Gets the component ad render id for server auctions. | 
        
          | Uri | Gets the URI that points to the component's rendering resources. | 
        
          | Int |  | 
        
          | String |  | 
        
          | Unit | Flatten this object in to a Parcel. | 
      
    
    
    Public constructors
    
      ComponentAdData
      
      ComponentAdData(
    renderUri: Uri, 
    adRenderId: String)
      Constructs a ComponentAdData object. 
      This object represents a single component within a multi-part ad. The provided render URI points to the resources needed to render this component. Both the URI and the resources to render the component are provided by the buyer ad tech.
      
        
          
            | Parameters | 
          
            | renderUri | Uri: the URI that points to the component's rendering resources. This value cannot be null. | 
          
            | adRenderId | String: the component ad render ID used in the auction flow to identify the ad and bid on it. This ID is typically generated by the buyer ad tech and is also used to track the individual component within the larger ad. This value cannot be null. | 
        
      
      
        
          
            | Exceptions | 
          
            | java.lang.IllegalArgumentException | if the provided adRenderIdis empty. | 
        
      
     
    Public methods
    
      describeContents
      
      fun describeContents(): Int
      
     
    
      equals
      
      fun equals(other: Any?): Boolean
      
        
          
            | Parameters | 
          
            | obj | the reference object with which to compare. | 
        
      
      
        
          
            | Return | 
          
            | Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
        
      
     
    
      getAdRenderId
      
      fun getAdRenderId(): String
      Gets the component ad render id for server auctions. 
      Ad render id is collected for each ComponentAdData when server auction request is received. 
      The overall size of the Custom Audience is limited. The size of this field is considered using String.getBytes() in UTF-8 encoding.
      
        
          
            | Return | 
          
            | String | This value cannot be null. | 
        
      
     
    
      getRenderUri
      
      fun getRenderUri(): Uri
      Gets the URI that points to the component's rendering resources. 
      Both the URI and the resources it points to are provided by the buyer ad tech.
      
        
          
            | Return | 
          
            | Uri | This value cannot be null. | 
        
      
     
    
      hashCode
      
      fun hashCode(): Int
      
        
          
            | Return | 
          
            | Int | a hash code value for this object. | 
        
      
     
    
      toString
      
      fun toString(): String
      
        
          
            | Return | 
          
            | String | a string representation of the object. | 
        
      
     
    
      writeToParcel
      
      fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
      Flatten this object in to a Parcel.
      
     
    Properties
    
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-03-13 UTC.
  
  
  
    
      [null,null,["Last updated 2025-03-13 UTC."],[],[]]