To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleMobileAds Framework Reference

  • GADResponseInfo provides information about the response received for an ad request.

  • It includes details like a unique response identifier, extra parameters, and information about the ad network that served the ad.

  • loadedAdNetworkResponseInfo offers specifics about the ad network adapter used if the ad loaded successfully.

  • Developers can access metadata for all ad networks involved in the response via the adNetworkInfoArray.

  • A JSON-safe dictionary representation of the response is also available through dictionaryRepresentation.

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;

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.