Type-Definitions

The following type definitions are available globally.

  • Undocumented

    Declaration

    Swift

    struct GADAdLoaderAdType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable

    Objective-C

    typedef NSString *GADAdLoaderAdType
  • Undocumented

    Declaration

    Swift

    struct GADAdMetadataKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable

    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().

    Declaration

    Objective-C

    typedef struct GADAdSize GADAdSize
  • The handler block to execute when the ad load operation completes. If the load failed, 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 = (GADAppOpenAd?, Error?) -> Void

    Objective-C

    typedef void (^GADAppOpenAdLoadCompletionHandler)(GADAppOpenAd *_Nullable,
                                                      NSError *_Nullable)
  • The handler block to execute when the ad is about to be closed.

    Declaration

    Swift

    typealias GADAppOpenAdCloseHandler = () -> Void

    Objective-C

    typedef void (^GADAppOpenAdCloseHandler)(void)
  • 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)
  • Maximum ad content rating.

    Declaration

    Swift

    struct GADMaxAdContentRating : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable

    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

    Swift

    typealias GADRewardedAdLoadCompletionHandler = (GADRequestError?) -> Void

    Objective-C

    typedef void (^GADRewardedAdLoadCompletionHandler)(GADRequestError *_Nullable)
  • Undocumented

    Declaration

    Swift

    struct GADUnifiedNativeAssetIdentifier : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable

    Objective-C

    typedef NSString *GADUnifiedNativeAssetIdentifier
  • Undocumented

    Declaration

    Objective-C

    typedef struct GADVersionNumber GADVersionNumber
  • Completion handler for signal generation. Returns either signals or an error object.

    Declaration

    Swift

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

    Objective-C

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