GADMediationAdConfiguration

@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 (readonly, nonatomic, 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 (readonly, nonatomic, nullable) UIViewController *topViewController;
  • Mediation configuration set by the publisher on the AdMob frontend.

    Declaration

    Swift

    var credentials: GADMediationCredentials { get }

    Objective-C

    @property (readonly, nonatomic, nonnull) GADMediationCredentials *credentials;
  • PNG data containing a watermark that identifies the ad’s source.

    Declaration

    Swift

    var watermark: Data? { get }

    Objective-C

    @property (readonly, nonatomic, nullable) NSData *watermark;
  • Extras the publisher registered with -[GADRequest registerAdNetworkExtras:].

    Declaration

    Swift

    var extras: GADAdNetworkExtras? { get }

    Objective-C

    @property (readonly, nonatomic, nullable) id<GADAdNetworkExtras> extras;
  • The value of childDirectedTreatment supplied by the publisher. Is nil if the publisher hasn’t specified child directed treatment. Is @YES if child directed treatment is enabled.

    Declaration

    Swift

    var childDirectedTreatment: NSNumber? { get }

    Objective-C

    @property (readonly, nonatomic, nullable) NSNumber *childDirectedTreatment;
  • Indicates whether the publisher is requesting test ads.

    Declaration

    Swift

    var isTestRequest: Bool { get }

    Objective-C

    @property (readonly, nonatomic) BOOL isTestRequest;
  • Indicates whether the publisher has specified latitude and longitude location.

    Declaration

    Swift

    var hasUserLocation: Bool { get }

    Objective-C

    @property (readonly, nonatomic) BOOL hasUserLocation;
  • The user’s latitude or 0 if location isn’t specified.

    Declaration

    Swift

    var userLatitude: CGFloat { get }

    Objective-C

    @property (readonly, nonatomic) CGFloat userLatitude;
  • The user’s longitude or 0 if location isn’t specified.

    Declaration

    Swift

    var userLongitude: CGFloat { get }

    Objective-C

    @property (readonly, nonatomic) CGFloat userLongitude;
  • The user’s location accuracy or 0 if location isn’t specified.

    Declaration

    Swift

    var userLocationAccuracyInMeters: CGFloat { get }

    Objective-C

    @property (readonly, nonatomic) CGFloat userLocationAccuracyInMeters;