GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADAdNetworkResponseInfo
@interface GADAdNetworkResponseInfo : NSObject
Response metadata for an individual ad network in an ad response.
-
A class name that identifies the ad network.
Declaration
Swift
var adNetworkClassName: String { get }
Objective-C
@property (nonatomic, readonly, nonnull) NSString *adNetworkClassName;
-
Network configuration set on the AdMob UI.
Declaration
Swift
var adUnitMapping: [String : Any] { get }
Objective-C
@property (nonatomic, readonly, nonnull) NSDictionary<NSString *, id> *adUnitMapping;
-
The ad source name associated with this ad network response. Nil if the ad server does not
populate this field.
Declaration
Swift
var adSourceName: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *adSourceName;
-
The ad source ID associated with this ad network response. Nil if the ad server does not
populate this field.
Declaration
Swift
var adSourceID: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *adSourceID;
-
The ad source instance name associated with this ad network response. Nil if the ad server does
not populate this field.
Declaration
Swift
var adSourceInstanceName: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *adSourceInstanceName;
-
The ad source instance ID associated with this ad network response. Nil if the ad server does
not populate this field.
Declaration
Swift
var adSourceInstanceID: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *adSourceInstanceID;
-
Error associated with the request to the network. Nil if the network successfully loaded an ad
or if the network was not attempted.
Declaration
Swift
var error: (any Error)? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSError *error;
-
Amount of time the ad network spent loading an ad. 0 if the network was not attempted.
Declaration
Swift
var latency: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval latency;
-
JSON-safe dictionary representation of the ad network 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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADAdNetworkResponseInfo\u003c/code\u003e provides metadata about an ad network's response within an ad request, including details like the ad network's class name and any errors encountered.\u003c/p\u003e\n"],["\u003cp\u003eIt contains information about the ad source, such as name, ID, instance name, and instance ID, which might be nil if not provided by the ad server.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access network configuration, error details, and latency information through its properties.\u003c/p\u003e\n"],["\u003cp\u003eA dictionary representation is available for JSON serialization of the response info.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadUnitMapping\u003c/code\u003e property provides access to network configurations defined on the AdMob UI.\u003c/p\u003e\n"]]],["`GADAdNetworkResponseInfo` provides metadata for each ad network in a response. Key data includes `adNetworkClassName` (identifying the network), `adUnitMapping` (network configuration), `adSourceName`, `adSourceID`, `adSourceInstanceName`, and `adSourceInstanceID`. It also offers `error` (network request error), `latency` (loading time), and `dictionaryRepresentation` (JSON-safe data). All these variables are read only and are used to gather information about the network response.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADAdNetworkResponseInfo\n========================\n\n\n @interface GADAdNetworkResponseInfo : NSObject\n\nResponse metadata for an individual ad network in an ad response.\n- `\n ``\n ``\n `\n\n ### [adNetworkClassName](#/c:objc(cs)GADAdNetworkResponseInfo(py)adNetworkClassName)\n\n `\n ` \n A class name that identifies the ad network. \n\n #### Declaration\n\n Swift \n\n var adNetworkClassName: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSString *adNetworkClassName;\n\n- `\n ``\n ``\n `\n\n ### [adUnitMapping](#/c:objc(cs)GADAdNetworkResponseInfo(py)adUnitMapping)\n\n `\n ` \n Network configuration set on the AdMob UI. \n\n #### Declaration\n\n Swift \n\n var adUnitMapping: [String : Any] { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSDictionary\u003cNSString *, id\u003e *adUnitMapping;\n\n- `\n ``\n ``\n `\n\n ### [adSourceName](#/c:objc(cs)GADAdNetworkResponseInfo(py)adSourceName)\n\n `\n ` \n The ad source name associated with this ad network response. Nil if the ad server does not\n populate this field. \n\n #### Declaration\n\n Swift \n\n var adSourceName: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *adSourceName;\n\n- `\n ``\n ``\n `\n\n ### [adSourceID](#/c:objc(cs)GADAdNetworkResponseInfo(py)adSourceID)\n\n `\n ` \n The ad source ID associated with this ad network response. Nil if the ad server does not\n populate this field. \n\n #### Declaration\n\n Swift \n\n var adSourceID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *adSourceID;\n\n- `\n ``\n ``\n `\n\n ### [adSourceInstanceName](#/c:objc(cs)GADAdNetworkResponseInfo(py)adSourceInstanceName)\n\n `\n ` \n The ad source instance name associated with this ad network response. Nil if the ad server does\n not populate this field. \n\n #### Declaration\n\n Swift \n\n var adSourceInstanceName: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *adSourceInstanceName;\n\n- `\n ``\n ``\n `\n\n ### [adSourceInstanceID](#/c:objc(cs)GADAdNetworkResponseInfo(py)adSourceInstanceID)\n\n `\n ` \n The ad source instance ID associated with this ad network response. Nil if the ad server does\n not populate this field. \n\n #### Declaration\n\n Swift \n\n var adSourceInstanceID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *adSourceInstanceID;\n\n- `\n ``\n ``\n `\n\n ### [error](#/c:objc(cs)GADAdNetworkResponseInfo(py)error)\n\n `\n ` \n Error associated with the request to the network. Nil if the network successfully loaded an ad\n or if the network was not attempted. \n\n #### Declaration\n\n Swift \n\n var error: (any Error)? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSError *error;\n\n- `\n ``\n ``\n `\n\n ### [latency](#/c:objc(cs)GADAdNetworkResponseInfo(py)latency)\n\n `\n ` \n Amount of time the ad network spent loading an ad. 0 if the network was not attempted. \n\n #### Declaration\n\n Swift \n\n var latency: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval latency;\n\n- `\n ``\n ``\n `\n\n ### [dictionaryRepresentation](#/c:objc(cs)GADAdNetworkResponseInfo(py)dictionaryRepresentation)\n\n `\n ` \n JSON-safe dictionary representation of the ad network response info. \n\n #### Declaration\n\n Swift \n\n var dictionaryRepresentation: [String : Any] { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSDictionary\u003cNSString *, id\u003e *dictionaryRepresentation;"]]