# GADMediationAdapter

    @protocol GADMediationAdapter <NSObject>

Receives messages and requests from the Google Mobile Ads SDK. Provides GMA to 3P SDK
communication.

Adapters are initialized on a background queue and should avoid using the main queue until
load time.
- `


  ### [+adapterVersion](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(cm)adapterVersion)


  ` Returns the adapter version.

  #### Declaration

  Swift

      static func adapterVersion() -> VersionNumber

  Objective-C

      + (https://developers.google.com/admob/ios/api/reference/Structs/GADVersionNumber.html)adapterVersion;

- `


  ### [+adSDKVersion](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(cm)adSDKVersion)


  ` Returns the ad SDK version.

  #### Declaration

  Swift

      static func adSDKVersion() -> VersionNumber

  Objective-C

      + (https://developers.google.com/admob/ios/api/reference/Structs/GADVersionNumber.html)adSDKVersion;

- `


  ### [+networkExtrasClass](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(cm)networkExtrasClass)


  ` The extras class that is used to specify additional parameters for a request to this ad network.
  Returns Nil if the network doesn't have publisher provided extras.

  #### Declaration

  Swift

      static func networkExtrasClass() -> (any AdNetworkExtras.Type)?

  Objective-C

      + (nullable Class<https://developers.google.com/admob/ios/api/reference/Protocols.html#/c:objc(pl)GADAdNetworkExtras>)networkExtrasClass;

- `


  ### [-init](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)init)


  ` Returns an initialized mediation adapter.

  #### Declaration

  Swift

      init()

  Objective-C

      - (nonnull instancetype)init;

- `


  ### [+setUpWithConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(cm)setUpWithConfiguration:completionHandler:)


  ` Tells the adapter to set up its underlying ad network SDK and perform any necessary prefetching
  or configuration work. The adapter must call completionHandler once the adapter can service ad
  requests, or if it encounters an error while setting up.

  #### Declaration

  Swift

      optional static func setUp(with configuration: MediationServerConfiguration) async throws

  Objective-C

      + (void)setUpWithConfiguration:
                  (nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADMediationServerConfiguration.html *)configuration
                   completionHandler:(nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationAdapterSetUpCompletionBlock)
                                         completionHandler;

- `


  ### [-loadBannerForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadBannerForAdConfiguration:completionHandler:)


  ` Asks the adapter to load a banner ad with the provided ad configuration. The adapter must call
  back completionHandler with the loaded ad, or it may call back with an error. This method is
  called on the main thread, and completionHandler must be called back on the main thread.

  #### Declaration

  Swift

      optional func loadBanner(for adConfiguration: MediationBannerAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationBannerLoadCompletionHandler)

  Objective-C

      - (void)loadBannerForAdConfiguration:
                  (nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADMediationBannerAdConfiguration.html *)adConfiguration
                         completionHandler:
                             (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationBannerLoadCompletionHandler)
                                 completionHandler;

- `


  ### [-loadInterstitialForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadInterstitialForAdConfiguration:completionHandler:)


  ` Asks the adapter to load an interstitial ad with the provided ad configuration. The adapter
  must call back completionHandler with the loaded ad, or it may call back with an error. This
  method is called on the main thread, and completionHandler must be called back on the main
  thread.

  #### Declaration

  Swift

      optional func loadInterstitial(for adConfiguration: MediationInterstitialAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationInterstitialLoadCompletionHandler)

  Objective-C

      - (void)
          loadInterstitialForAdConfiguration:
              (nonnull https://developers.google.com/admob/ios/api/reference/Classes.html#/c:objc(cs)GADMediationInterstitialAdConfiguration *)adConfiguration
                           completionHandler:
                               (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationInterstitialLoadCompletionHandler)
                                   completionHandler;

- `


  ### [-loadNativeAdForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadNativeAdForAdConfiguration:completionHandler:)


  ` Asks the adapter to load a native ad with the provided ad configuration. The adapter must call
  back completionHandler with the loaded ad, or it may call back with an error. This method is
  called on the main thread, and completionHandler must be called back on the main thread.

  #### Declaration

  Swift

      optional func loadNativeAd(for adConfiguration: MediationNativeAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationNativeLoadCompletionHandler)

  Objective-C

      - (void)loadNativeAdForAdConfiguration:
                  (nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADMediationNativeAdConfiguration.html *)adConfiguration
                           completionHandler:
                               (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationNativeLoadCompletionHandler)
                                   completionHandler;

- `


  ### [-loadRewardedAdForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadRewardedAdForAdConfiguration:completionHandler:)


  ` Asks the adapter to load a rewarded ad with the provided ad configuration. The adapter must
  call back completionHandler with the loaded ad, or it may call back with an error. This method
  is called on the main thread, and completionHandler must be called back on the main thread.

  #### Declaration

  Swift

      optional func loadRewardedAd(for adConfiguration: MediationRewardedAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationRewardedLoadCompletionHandler)

  Objective-C

      - (void)loadRewardedAdForAdConfiguration:
                  (nonnull https://developers.google.com/admob/ios/api/reference/Classes.html#/c:objc(cs)GADMediationRewardedAdConfiguration *)adConfiguration
                             completionHandler:
                                 (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationRewardedLoadCompletionHandler)
                                     completionHandler;

- `


  ### [-loadRewardedInterstitialAdForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadRewardedInterstitialAdForAdConfiguration:completionHandler:)


  ` Asks the adapter to load a rewarded interstitial ad with the provided ad configuration. The
  adapter must call back completionHandler with the loaded ad, or it may call back with an error.
  This method is called on the main thread, and completionHandler must be called back on the main
  thread.

  #### Declaration

  Swift

      optional func loadRewardedInterstitialAd(for adConfiguration: MediationRewardedAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationRewardedLoadCompletionHandler)

  Objective-C

      - (void)
          loadRewardedInterstitialAdForAdConfiguration:
              (nonnull https://developers.google.com/admob/ios/api/reference/Classes.html#/c:objc(cs)GADMediationRewardedAdConfiguration *)adConfiguration
                                     completionHandler:
                                         (nonnull
                                              https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationRewardedLoadCompletionHandler)
                                             completionHandler;

- `


  ### [-loadAppOpenAdForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadAppOpenAdForAdConfiguration:completionHandler:)


  ` Asks the adapter to load an app open ad with the provided ad configuration. The
  adapter must call back completionHandler with the loaded ad, or it may call back with an error.
  This method is called on the main thread, and completionHandler must be called back on the main
  thread.

  #### Declaration

  Swift

      optional func loadAppOpenAd(for adConfiguration: MediationAppOpenAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationAppOpenLoadCompletionHandler)

  Objective-C

      - (void)loadAppOpenAdForAdConfiguration:
                  (nonnull https://developers.google.com/admob/ios/api/reference/Classes.html#/c:objc(cs)GADMediationAppOpenAdConfiguration *)adConfiguration
                            completionHandler:
                                (nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationAppOpenLoadCompletionHandler)
                                    completionHandler;

- `


  ### [-loadSwipeableInterstitialForAdConfiguration:completionHandler:](https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAdapter#/c:objc(pl)GADMediationAdapter(im)loadSwipeableInterstitialForAdConfiguration:completionHandler:)


  ` Asks the adapter to load a swipeable interstitial ad with the provided ad configuration. The
  adapter must call back completionHandler with the loaded ad, or it may call back with an error.
  This method is called on the main thread, and completionHandler must be called back on the main
  thread.

  #### Declaration

  Swift

      optional func loadSwipeableInterstitial(for adConfiguration: MediationSwipeableInterstitialAdConfiguration, completionHandler: @escaping https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationSwipeableInterstitialLoadCompletionHandler)

  Objective-C

      - (void)
          loadSwipeableInterstitialForAdConfiguration:
              (nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADMediationSwipeableInterstitialAdConfiguration.html *)
                  adConfiguration
                                    completionHandler:
                                        (nonnull
                                             https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMediationAdapter.h@T@GADMediationSwipeableInterstitialLoadCompletionHandler)
                                            completionHandler;