GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
@interface GADMediationAdConfiguration : NSObject
Provided by the Google Mobile Ads SDK for the adapter to render the ad. Contains 3PAS and other
ad configuration information.
-
The ad string returned from the 3PAS.
Declaration
Swift
var bidResponse: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *bidResponse;
-
View controller to present from. This value must be read at presentation time to obtain the most
recent value. Must be accessed on the main queue.
Declaration
Swift
var topViewController: UIViewController? { get }
Objective-C
@property (nonatomic, readonly, nullable) UIViewController *topViewController;
-
Mediation configuration set by the publisher on the AdMob frontend.
Declaration
Swift
var credentials: MediationCredentials { get }
-
PNG data containing a watermark that identifies the ad’s source.
Declaration
Swift
var watermark: Data? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSData *watermark;
-
Extras the publisher registered with -[GADRequest registerAdNetworkExtras:].
Declaration
Swift
var extras: (any AdNetworkExtras)? { get }
-
Indicates whether the publisher is requesting test ads.
Declaration
Swift
var isTestRequest: Bool { get }
Objective-C
@property (nonatomic, readonly) BOOL isTestRequest;
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\u003eGADMediationAdConfiguration\u003c/code\u003e provides adapters with necessary data like the bid response and publisher settings for rendering ads.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the ad string from the 3PAS (\u003ccode\u003ebidResponse\u003c/code\u003e), the view controller for presentation (\u003ccode\u003etopViewController\u003c/code\u003e), and publisher-defined mediation settings (\u003ccode\u003ecredentials\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAdapters can access the ad's source watermark (\u003ccode\u003ewatermark\u003c/code\u003e), publisher-provided extras (\u003ccode\u003eextras\u003c/code\u003e), and a test request indicator (\u003ccode\u003eisTestRequest\u003c/code\u003e).\u003c/p\u003e\n"]]],["The `GADMediationAdConfiguration` provides ad configuration details for rendering ads. It includes the `bidResponse` (ad string from 3PAS), `topViewController` (view controller for presentation), and `credentials` (publisher's mediation setup). Additional data includes a `watermark` (PNG data), `extras` (publisher's registered extras), and `isTestRequest` (flag for test ads). The `topViewController` must be read at presentation time on the main queue. The SDK provides this for the adapter.\n"],null,["GADMediationAdConfiguration \n\n\n @interface GADMediationAdConfiguration : NSObject\n\nProvided by the Google Mobile Ads SDK for the adapter to render the ad. Contains 3PAS and other\nad configuration information.\n- `\n ``\n ``\n `\n\n [bidResponse](#/c:objc(cs)GADMediationAdConfiguration(py)bidResponse)`\n ` \n The ad string returned from the 3PAS. \n\n Declaration \n Swift \n\n var bidResponse: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *bidResponse;\n\n- `\n ``\n ``\n `\n\n [topViewController](#/c:objc(cs)GADMediationAdConfiguration(py)topViewController)`\n ` \n View controller to present from. This value must be read at presentation time to obtain the most\n recent value. Must be accessed on the main queue. \n\n Declaration \n Swift \n\n var topViewController: UIViewController? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) UIViewController *topViewController;\n\n- `\n ``\n ``\n `\n\n [credentials](#/c:objc(cs)GADMediationAdConfiguration(py)credentials)`\n ` \n Mediation configuration set by the publisher on the AdMob frontend. \n\n Declaration \n Swift \n\n var credentials: MediationCredentials { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) ../Classes/GADMediationCredentials.html *credentials;\n\n- `\n ``\n ``\n `\n\n [watermark](#/c:objc(cs)GADMediationAdConfiguration(py)watermark)`\n ` \n PNG data containing a watermark that identifies the ad's source. \n\n Declaration \n Swift \n\n var watermark: Data? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSData *watermark;\n\n- `\n ``\n ``\n `\n\n [extras](#/c:objc(cs)GADMediationAdConfiguration(py)extras)`\n ` \n Extras the publisher registered with -\\[GADRequest registerAdNetworkExtras:\\]. \n\n Declaration \n Swift \n\n var extras: (any AdNetworkExtras)? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) id\u003c../Protocols.html#/c:objc(pl)GADAdNetworkExtras\u003e extras;\n\n- `\n ``\n ``\n `\n\n [isTestRequest](#/c:objc(cs)GADMediationAdConfiguration(py)isTestRequest)`\n ` \n Indicates whether the publisher is requesting test ads. \n\n Declaration \n Swift \n\n var isTestRequest: Bool { get }\n\n Objective-C \n\n @property (nonatomic, readonly) BOOL isTestRequest;"]]