Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

Type-Definitions

The following type definitions are available globally.

  • Provides a nonnull consentForm and a nil error if the load succeeded. Provides a nil consentForm and a nonnull error if the load failed.

    Declaration

    Swift

    typealias UMPConsentFormLoadCompletionHandler = (UMPConsentForm?, Error?) -> Void

    Objective-C

    typedef void (^UMPConsentFormLoadCompletionHandler)(UMPConsentForm *_Nullable,
                                                        NSError *_Nullable)
  • Called after presentation of a UMPConsentForm finishes.

    Declaration

    Swift

    typealias UMPConsentFormPresentCompletionHandler = (Error?) -> Void

    Objective-C

    typedef void (^UMPConsentFormPresentCompletionHandler)(NSError *_Nullable)
  • Called when the consent info request completes. Error is nil on success, and non-nil if the update failed.

    Declaration

    Swift

    typealias UMPConsentInformationUpdateCompletionHandler = (Error?) -> Void

    Objective-C

    typedef void (^UMPConsentInformationUpdateCompletionHandler)(NSError *_Nullable)