Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

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 extrasDictionary: [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: GADAdNetworkResponseInfo? { get }

    Objective-C

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

    Declaration

    Swift

    var adNetworkInfoArray: [GADAdNetworkResponseInfo] { 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;
  • Deprecated. Use loadedAdNetworkResponseInfo.adNetworkClassName instead.

    Declaration

    Swift

    var adNetworkClassName: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *adNetworkClassName;