# GoogleMobileAds Framework Reference

# GADMediationAdRequest

    @protocol GADMediationAdRequest <NSObject>

Provides information which can be used for making ad requests during mediation.
- `


  ### [-publisherId](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)publisherId)


  ` Publisher ID set by the publisher on the AdMob frontend.

  #### Declaration

  Swift

      func publisherId() -> String?

  Objective-C

      - (nullable NSString *)publisherId;

- `


  ### [-credentials](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)credentials)


  ` Mediation configurations set by the publisher on the AdMob frontend.

  #### Declaration

  Swift

      func credentials() -> [AnyHashable : Any]?

  Objective-C

      - (nullable NSDictionary *)credentials;

- `


  ### [-testMode](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)testMode)


  ` Returns YES if the publisher is requesting test ads.

  #### Declaration

  Swift

      func testMode() -> Bool

  Objective-C

      - (BOOL)testMode;

- `


  ### [-networkExtras](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)networkExtras)


  ` The adapter's ad network extras specified in GADRequest.

  #### Declaration

  Swift

      func networkExtras() -> (any AdNetworkExtras)?

  Objective-C

      - (nullable id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols.html#/c:objc(pl)GADAdNetworkExtras>)networkExtras;

- `


  ### [-childDirectedTreatment](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)childDirectedTreatment)


  ` Returns the value of childDirectedTreatment supplied by the publisher. Returns nil if the
  publisher hasn't specified child directed treatment. Returns @YES if child directed treatment is
  enabled.

  #### Declaration

  Swift

      func childDirectedTreatment() -> NSNumber?

  Objective-C

      - (nullable NSNumber *)childDirectedTreatment;

- `


  ### [-maxAdContentRating](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)maxAdContentRating)


  ` Returns the maximum ad content rating supplied by the publisher. Returns nil if the publisher
  hasn't specified a max ad content rating.

  #### Declaration

  Swift

      func maxAdContentRating() -> https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Type-Definitions.html#/c:GADRequestConfiguration.h@T@GADMaxAdContentRating?

  Objective-C

      - (nullable https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Type-Definitions.html#/c:GADRequestConfiguration.h@T@GADMaxAdContentRating)maxAdContentRating;

- `


  ### [-underAgeOfConsent](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)underAgeOfConsent)


  ` Returns the value of underAgeOfConsent supplied by the publisher. Returns nil if the publisher
  hasn't specified the user is under the age of consent. Returns @YES if the user is under the age
  of consent.

  #### Declaration

  Swift

      func underAgeOfConsent() -> NSNumber?

  Objective-C

      - (nullable NSNumber *)underAgeOfConsent;

- `


  ### [-userKeywords](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADMediationAdRequest#/c:objc(pl)GADMediationAdRequest(im)userKeywords)


  ` Keywords describing the user's current activity. Example: @"Sport Scores".

  #### Declaration

  Swift

      func userKeywords() -> [Any]?

  Objective-C

      - (nullable NSArray *)userKeywords;