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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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, latency, and a dictionary representation of the response for analysis and debugging purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eerror\u003c/code\u003e property indicates any issues during ad loading, while \u003ccode\u003elatency\u003c/code\u003e reveals the time taken by the ad network.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eadUnitMapping\u003c/code\u003e provides insights into the network configuration as set 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,["GADAdNetworkResponseInfo \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 A class name that identifies the ad network. \n\n Declaration \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 Network configuration set on the AdMob UI. \n\n Declaration \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 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 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 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 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 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 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 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 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 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 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 Amount of time the ad network spent loading an ad. 0 if the network was not attempted. \n\n Declaration \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 JSON-safe dictionary representation of the ad network response info. \n\n Declaration \n Swift \n\n var dictionaryRepresentation: [String : Any] { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSDictionary\u003cNSString *, id\u003e *dictionaryRepresentation;"]]