# Type-Definitions

The following type definitions are available globally.
- `


  ### [GADAdLoaderAdType](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADAdLoaderAdTypes.h@T@GADAdLoaderAdType)


  ` Undocumented

  #### Declaration

  Swift

      struct AdLoaderAdType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable

  Objective-C

      typedef NSString *GADAdLoaderAdType

- `


  ### [GADAdMetadataKey](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADAdMetadata.h@T@GADAdMetadataKey)


  ` Ad metadata key type.

  #### Declaration

  Swift

      struct GADAdMetadataKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable

  Objective-C

      typedef NSString *GADAdMetadataKey

- `


  ### [GADUserDidEarnRewardHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADAdReward.h@T@GADUserDidEarnRewardHandler)


  ` A block to be executed when the user earns a reward.

  #### Declaration

  Swift

      typealias GADUserDidEarnRewardHandler = () -> Void

  Objective-C

      typedef void (^GADUserDidEarnRewardHandler)(void)

- `


  ### [GADAdSize](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADAdSize.h@T@GADAdSize)


  ` A valid GADAdSize is considered to be one of the predefined GADAdSize constants or a GADAdSize
  constructed by GADAdSizeFromCGSize, GADAdSizeFullWidthPortraitWithHeight,
  GADAdSizeFullWidthLandscapeWithHeight.

  Do not create a GADAdSize manually. Use one of the GADAdSize constants. Treat GADAdSize as an
  opaque type. Do not access any fields directly. To obtain a concrete CGSize, use the function
  CGSizeFromGADAdSize().

  #### Declaration

  Objective-C

      typedef struct https://developers.google.com/admob/ios/api/reference/Structs/GADAdSize https://developers.google.com/admob/ios/api/reference/Structs/GADAdSize

[## Deprecated](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/Deprecated)

- `


  ### [GADPaidEventHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADAdValue.h@T@GADPaidEventHandler)


  ` Deprecated

  Use the didRecordPaidEventWithAdValue: method on the ad's delegate instead.
  Handles ad events that are estimated to have earned money.

  #### Declaration

  Swift

      typealias GADPaidEventHandler = (AdValue) -> Void

  Objective-C

      typedef void (^GADPaidEventHandler)(https://developers.google.com/admob/ios/api/reference/Classes/GADAdValue *_Nonnull)

[## App Open Ad](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/App-Open-Ad)

- `


  ### [GADAppOpenAdLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADAppOpenAd.h@T@GADAppOpenAdLoadCompletionHandler)


  ` The handler block to execute when the ad load operation completes. On failure, the
  appOpenAd is nil and the \|error\| is non-nil. On success, the appOpenAd is non-nil and the
  \|error\| is nil.

  #### Declaration

  Swift

      typealias GADAppOpenAdLoadCompletionHandler = (AppOpenAd?, (any Error)?) -> Void

  Objective-C

      typedef void (^GADAppOpenAdLoadCompletionHandler)(https://developers.google.com/admob/ios/api/reference/Classes/GADAppOpenAd *_Nullable,
                                                        NSError *_Nullable)

- `


  ### [GADNativeAdCustomClickHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADCustomNativeAd.h@T@GADNativeAdCustomClickHandler)


  ` Native ad custom click handler block. \|assetID\| is the ID of asset that has received a click.

  #### Declaration

  Swift

      typealias GADNativeAdCustomClickHandler = (String) -> Void

  Objective-C

      typedef void (^GADNativeAdCustomClickHandler)(NSString *_Nonnull)

- `


  ### [GADInterstitialAdLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADInterstitialAd.h@T@GADInterstitialAdLoadCompletionHandler)


  ` A block to be executed when the ad request operation completes. On success,
  interstitialAd is non-nil and \|error\| is nil. On failure, interstitialAd is nil
  and \|error\| is non-nil.

  #### Declaration

  Swift

      typealias GADInterstitialAdLoadCompletionHandler = (InterstitialAd?, (any Error)?) -> Void

  Objective-C

      typedef void (^GADInterstitialAdLoadCompletionHandler)(
          https://developers.google.com/admob/ios/api/reference/Classes/GADInterstitialAd *_Nullable, NSError *_Nullable)

- `


  ### [GADInitializationCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMobileAds.h@T@GADInitializationCompletionHandler)


  ` A block called with the initialization status when \[GADMobileAds startWithCompletionHandler:\]
  completes or times out.

  #### Declaration

  Swift

      typealias GADInitializationCompletionHandler = (InitializationStatus) -> Void

  Objective-C

      typedef void (^GADInitializationCompletionHandler)(
          https://developers.google.com/admob/ios/api/reference/Classes/GADInitializationStatus *_Nonnull)

- `


  ### [GADAdInspectorCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMobileAds.h@T@GADAdInspectorCompletionHandler)


  ` Completion handler for presenting Ad Inspector. Returns an error if a problem was detected
  during presentation, or nil otherwise.

  #### Declaration

  Swift

      typealias GADAdInspectorCompletionHandler = ((any Error)?) -> Void

  Objective-C

      typedef void (^GADAdInspectorCompletionHandler)(NSError *_Nullable)

- `


  ### [GADSignalCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMobileAds.h@T@GADSignalCompletionHandler)


  ` Completion handler for signal request creation. Returns a signal or an error.

  #### Declaration

  Swift

      typealias GADSignalCompletionHandler = (Signal?, (any Error)?) -> Void

  Objective-C

      typedef void (^GADSignalCompletionHandler)(https://developers.google.com/admob/ios/api/reference/Classes/GADSignal *_Nullable,
                                                 NSError *_Nullable)

- `


  ### [GADNativeAssetIdentifier](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADNativeAdAssetIdentifiers.h@T@GADNativeAssetIdentifier)


  ` Undocumented

  #### Declaration

  Swift

      struct GADNativeAssetIdentifier : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable

  Objective-C

      typedef NSString *GADNativeAssetIdentifier

- `


  ### [GADMaxAdContentRating](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADRequestConfiguration.h@T@GADMaxAdContentRating)


  ` Maximum ad content rating.

  #### Declaration

  Swift

      struct GADMaxAdContentRating : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable

  Objective-C

      typedef NSString *GADMaxAdContentRating

- `


  ### [GADRewardedAdLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADRewardedAd.h@T@GADRewardedAdLoadCompletionHandler)


  ` A block to be executed when the ad request operation completes. On success,
  rewardedAd is non-nil and \|error\| is nil. On failure, rewardedAd is nil
  and \|error\| is non-nil.

  #### Declaration

  Swift

      typealias GADRewardedAdLoadCompletionHandler = (RewardedAd?, (any Error)?) -> Void

  Objective-C

      typedef void (^GADRewardedAdLoadCompletionHandler)(https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedAd *_Nullable,
                                                         NSError *_Nullable)

- `


  ### [GADRewardedInterstitialAdLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADRewardedInterstitialAd.h@T@GADRewardedInterstitialAdLoadCompletionHandler)


  ` A block to be executed when the ad request operation completes. On success,
  rewardedInterstitialAd is non-nil and \|error\| is nil. On failure, rewardedInterstitialAd is nil
  and \|error\| is non-nil.

  #### Declaration

  Swift

      typealias GADRewardedInterstitialAdLoadCompletionHandler = (RewardedInterstitialAd?, (any Error)?) -> Void

  Objective-C

      typedef void (^GADRewardedInterstitialAdLoadCompletionHandler)(
          https://developers.google.com/admob/ios/api/reference/Classes/GADRewardedInterstitialAd *_Nullable, NSError *_Nullable)

- `


  ### [GAMInterstitialAdLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GAMInterstitialAd.h@T@GAMInterstitialAdLoadCompletionHandler)


  ` Undocumented

  #### Declaration

  Swift

      typealias GAMInterstitialAdLoadCompletionHandler = (AdManagerInterstitialAd?, (any Error)?) -> Void

  Objective-C

      typedef void (^GAMInterstitialAdLoadCompletionHandler)(https://developers.google.com/admob/ios/api/reference/Classes/GAMInterstitialAd *_Nullable interstitialAd,
                                                             NSError *_Nullable error)

- `


  ### [GADMediationBannerLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationBannerLoadCompletionHandler)


  ` Called by the adapter after loading the banner ad or encountering an error. Returns an ad
  event object to send ad events to the Google Mobile Ads SDK. The block returns nil if a delegate
  couldn't be created or if the block has already been called.

  #### Declaration

  Swift

      typealias GADMediationBannerLoadCompletionHandler = ((any MediationBannerAd)?, (any Error)?) -> (any MediationBannerAdEventDelegate)?

  Objective-C

      typedef id<https://developers.google.com/admob/ios/api/reference/Protocols#/c:objc(pl)GADMediationBannerAdEventDelegate> _Nullable (
          ^GADMediationBannerLoadCompletionHandler)(
          id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationBannerAd> _Nullable, NSError *_Nullable)

- `


  ### [GADMediationInterstitialLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationInterstitialLoadCompletionHandler)


  ` Called by the adapter after loading the interstitial ad or encountering an error. Returns an
  ad event delegate to send ad events to the Google Mobile Ads SDK. The block returns nil if a
  delegate couldn't be created or if the block has already been called.

  #### Declaration

  Swift

      typealias GADMediationInterstitialLoadCompletionHandler = ((any MediationInterstitialAd)?, (any Error)?) -> (any MediationInterstitialAdEventDelegate)?

  Objective-C

      typedef id<https://developers.google.com/admob/ios/api/reference/Protocols#/c:objc(pl)GADMediationInterstitialAdEventDelegate> _Nullable (
          ^GADMediationInterstitialLoadCompletionHandler)(
          id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationInterstitialAd> _Nullable, NSError *_Nullable)

- `


  ### [GADMediationNativeLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationNativeLoadCompletionHandler)


  ` Called by the adapter after loading the native ad or encountering an error. Returns an ad
  event delegate to send ad events to the Google Mobile Ads SDK. The block returns nil if a
  delegate couldn't be created or if the block has already been called.

  #### Declaration

  Swift

      typealias GADMediationNativeLoadCompletionHandler = ((any MediationNativeAd)?, (any Error)?) -> (any MediationNativeAdEventDelegate)?

  Objective-C

      typedef id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationNativeAdEventDelegate> _Nullable (
          ^GADMediationNativeLoadCompletionHandler)(
          id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationNativeAd> _Nullable, NSError *_Nullable)

- `


  ### [GADMediationRewardedLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationRewardedLoadCompletionHandler)


  ` Called by the adapter after loading the rewarded ad or encountering an error. Returns an ad
  event delegate to send ad events to the Google Mobile Ads SDK. The block returns nil if a
  delegate couldn't be created or if the block has already been called.

  #### Declaration

  Swift

      typealias GADMediationRewardedLoadCompletionHandler = ((any MediationRewardedAd)?, (any Error)?) -> (any MediationRewardedAdEventDelegate)?

  Objective-C

      typedef id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationRewardedAdEventDelegate> _Nullable (
          ^GADMediationRewardedLoadCompletionHandler)(
          id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationRewardedAd> _Nullable, NSError *_Nullable)

- `


  ### [GADMediationAppOpenLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationAppOpenLoadCompletionHandler)


  ` Called by the adapter after loading the app open ad or encountering an error. Returns an ad
  event delegate to send ad events to the Google Mobile Ads SDK. The block returns nil if a
  delegate couldn't be created or if the block has already been called.

  #### Declaration

  Swift

      typealias GADMediationAppOpenLoadCompletionHandler = ((any MediationAppOpenAd)?, (any Error)?) -> (any MediationAppOpenAdEventDelegate)?

  Objective-C

      typedef id<https://developers.google.com/admob/ios/api/reference/Protocols#/c:objc(pl)GADMediationAppOpenAdEventDelegate> _Nullable (
          ^GADMediationAppOpenLoadCompletionHandler)(
          id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationAppOpenAd> _Nullable, NSError *_Nullable)

- `


  ### [GADMediationSwipeableInterstitialLoadCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationSwipeableInterstitialLoadCompletionHandler)


  ` Called by the adapter after loading the swipeable interstitial ad or encountering an error.
  Returns an ad event delegate to send ad events to the Google Mobile Ads SDK. The block returns
  nil if a delegate couldn't be created or if the block has already been called.

  #### Declaration

  Swift

      typealias GADMediationSwipeableInterstitialLoadCompletionHandler = ((any MediationSwipeableInterstitialAd)?, (any Error)?) -> (any MediationSwipeableInterstitialAdEventDelegate)?

  Objective-C

      typedef id<https://developers.google.com/admob/ios/api/reference/Protocols#/c:objc(pl)GADMediationSwipeableInterstitialAdEventDelegate> _Nullable (
          ^GADMediationSwipeableInterstitialLoadCompletionHandler)(
          id<https://developers.google.com/admob/ios/api/reference/Protocols/GADMediationSwipeableInterstitialAd> _Nullable, NSError *_Nullable)

- `


  ### [GADMediationAdapterSetUpCompletionBlock](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADMediationAdapter.h@T@GADMediationAdapterSetUpCompletionBlock)


  ` Executes when adapter set up completes.

  #### Declaration

  Swift

      typealias GADMediationAdapterSetUpCompletionBlock = ((any Error)?) -> Void

  Objective-C

      typedef void (^GADMediationAdapterSetUpCompletionBlock)(NSError *_Nullable)

- `


  ### [GADVersionNumber](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADVersionNumber.h@T@GADVersionNumber)


  ` Version number information.

  #### Declaration

  Objective-C

      typedef struct https://developers.google.com/admob/ios/api/reference/Structs/GADVersionNumber https://developers.google.com/admob/ios/api/reference/Structs/GADVersionNumber

- `


  ### [GADRTBSignalCompletionHandler](https://developers.google.com/admob/ios/api/reference/Type-Definitions#/c:GADRTBAdapter.h@T@GADRTBSignalCompletionHandler)


  ` Completion handler for signal generation. Returns either signals or an error object.

  #### Declaration

  Swift

      typealias GADRTBSignalCompletionHandler = (String?, (any Error)?) -> Void

  Objective-C

      typedef void (^GADRTBSignalCompletionHandler)(NSString *_Nullable,
                                                    NSError *_Nullable)