Type Definitions
The following type definitions are available globally.
-
Undocumented
Declaration
Objective-C
typedef NSString *GADAdLoaderAdType
-
Undocumented
Declaration
Objective-C
typedef NSString *GADAdMetadataKey
-
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 kGADAdSize constants. Treat GADAdSize as an opaque type. Do not access any fields directly. To obtain a concrete CGSize, use the function CGSizeFromGADAdSize().
-
A block called with the initialization status when [GADMobileAds startWithCompletionHandler:] completes or times out.
Declaration
Objective-C
typedef void (^GADInitializationCompletionHandler)( GADInitializationStatus *_Nonnull)
-
Undocumented
Declaration
Objective-C
typedef NSString *GADNativeAppInstallAssetID
-
Undocumented
Declaration
Objective-C
typedef NSString *GADNativeContentAdAssetID
-
Native ad custom click handler block. |assetID| is the ID of asset that has received a click.
Declaration
Objective-C
typedef void (^GADNativeAdCustomClickHandler)(NSString *_Nonnull)
-
Maximum ad content rating.
Declaration
Objective-C
typedef NSString *GADMaxAdContentRating
-
A block to be executed when the ad request operation completes. If the load failed, the error object is non-null and provides failure information. On success, |error| is nil.
Declaration
Objective-C
typedef void (^GADRewardedAdLoadCompletionHandler)(GADRequestError *_Nullable)
-
Undocumented
Declaration
Objective-C
typedef NSString *GADUnifiedNativeAssetIdentifier
-
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
Objective-C
typedef id<GADMediationBannerAdEventDelegate> _Nullable ( ^GADMediationBannerLoadCompletionHandler)( id<GADMediationBannerAd> _Nullable, NSError *_Nullable)
-
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
Objective-C
typedef id<GADMediationInterstitialAdEventDelegate> _Nullable ( ^GADMediationInterstitialLoadCompletionHandler)( id<GADMediationInterstitialAd> _Nullable, NSError *_Nullable)
-
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
Objective-C
typedef id<GADMediationNativeAdEventDelegate> _Nullable ( ^GADMediationNativeLoadCompletionHandler)( id<GADMediationNativeAd> _Nullable, NSError *_Nullable)
-
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
Objective-C
typedef id<GADMediationRewardedAdEventDelegate> _Nullable ( ^GADMediationRewardedLoadCompletionHandler)( id<GADMediationRewardedAd> _Nullable, NSError *_Nullable)
-
Executes when adapter set up completes.
Declaration
Objective-C
typedef void (^GADMediationAdapterSetUpCompletionBlock)(NSError *_Nullable)
-
Undocumented
Declaration
Objective-C
typedef struct GADVersionNumber GADVersionNumber
-
Completion handler for signal generation. Returns either signals or an error object.
Declaration
Objective-C
typedef void (^GADRTBSignalCompletionHandler)(NSString *_Nullable, NSError *_Nullable)