To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleUserMessagingPlatform Framework Reference

  • UMPConsentForm is a single-use consent form object.

  • UMPConsentInformation provides consent information, and its methods must be called on the main thread.

  • UMPDebugSettings allows overriding settings for debugging or testing.

  • UMPRequestParameters are sent when user consent information is updated.

Classes

The following classes are available globally.

  • A single use consent form object.

    Declaration

    Swift

    class ConsentForm : NSObject

    Objective-C

    
    @interface UMPConsentForm : NSObject
  • Consent information. All methods must be called on the main thread.

    Declaration

    Swift

    class ConsentInformation : NSObject

    Objective-C

    
    @interface UMPConsentInformation : NSObject
  • Overrides settings for debugging or testing.

    Declaration

    Swift

    class DebugSettings : NSObject, NSCopying

    Objective-C

    
    @interface UMPDebugSettings : NSObject <NSCopying>
  • Parameters sent on updates to user consent info.

    Declaration

    Swift

    class RequestParameters : NSObject, NSCopying

    Objective-C

    
    @interface UMPRequestParameters : NSObject <NSCopying>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月20日 UTC.