GoogleMobileAds Framework Reference

  • GADResponseInfo provides information about a response to an ad request.

  • It includes a unique identifier for the ad response.

  • Extra parameters returned in the ad response are available in a dictionary.

  • Information about the loaded ad network is provided, or nil if the ad failed to load.

  • Metadata for each ad network in the response is available in an array.

GADResponseInfo

 @interface GADResponseInfo : NSObject 

Information about a response to an ad request.

  • Unique identifier of the ad response.

    Declaration

    Swift

     var responseIdentifier: String? { get } 
    

    Objective-C

     @property (nonatomic, readonly, nullable) NSString *responseIdentifier; 
    
  • Dictionary of extra parameters that may be returned in an ad response.

    Declaration

    Swift

     var extras: [String : Any] { get } 
    

    Objective-C

     @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, id> *extrasDictionary; 
    
  • The GADAdNetworkResponseInfo corresponding to the adapter that was used to load the ad. Nil if the ad failed to load.

    Declaration

    Swift

     var loadedAdNetworkResponseInfo: AdNetworkResponseInfo? { get } 
    

    Objective-C

     @property (nonatomic, readonly, nullable) GADAdNetworkResponseInfo 
    *loadedAdNetworkResponseInfo; 
    
  • Array of metadata for each ad network included in the response.

    Declaration

    Swift

     var adNetworkInfoArray: [AdNetworkResponseInfo] { get } 
    

    Objective-C

     @property (nonatomic, readonly, nonnull) NSArray< GADAdNetworkResponseInfo 
    *> *adNetworkInfoArray; 
    
  • JSON-safe dictionary representation of the response info.

    Declaration

    Swift

     var dictionaryRepresentation: [String : Any] { get } 
    

    Objective-C

     @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, id> *dictionaryRepresentation; 
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: