Type Definitions
The following type definitions are available globally.
-
Undocumented
Declaration
Swift
struct GADAdLoaderAdType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
Undocumented
Declaration
Swift
struct GADAdMetadataKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
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
Swift
typealias GADInitializationCompletionHandler = (GADInitializationStatus) -> Void
-
Undocumented
Declaration
Swift
struct GADNativeAppInstallAssetID : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
Undocumented
Declaration
Swift
struct GADNativeContentAdAssetID : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
Native ad custom click handler block. |assetID| is the ID of asset that has received a click.
Declaration
Swift
typealias GADNativeAdCustomClickHandler = (String) -> Void
-
Maximum ad content rating.
Declaration
Swift
struct GADMaxAdContentRating : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
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
Swift
typealias GADRewardedAdLoadCompletionHandler = (GADRequestError?) -> Void
-
Undocumented
Declaration
Swift
struct GADUnifiedNativeAssetIdentifier : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
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 = (GADMediationBannerAd?, Error?) -> GADMediationBannerAdEventDelegate?
-
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 = (GADMediationInterstitialAd?, Error?) -> GADMediationInterstitialAdEventDelegate?
-
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 = (GADMediationNativeAd?, Error?) -> GADMediationNativeAdEventDelegate?
-
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 = (GADMediationRewardedAd?, Error?) -> GADMediationRewardedAdEventDelegate?
-
Executes when adapter set up completes.
Declaration
Swift
typealias GADMediationAdapterSetUpCompletionBlock = (Error?) -> Void
-
Undocumented
-
Completion handler for signal generation. Returns either signals or an error object.
Declaration
Swift
typealias GADRTBSignalCompletionHandler = (String?, Error?) -> Void