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

  • UMPConsentStatus is an enum defining the User Messaging Platform (UMP) consent status.

  • There are four possible consent statuses: Unknown, Required, Not Required, and Obtained.

  • UMPConsentStatusUnknown means the consent status is currently unknown.

  • UMPConsentStatusRequired indicates user consent is required but hasn't been obtained yet.

  • UMPConsentStatusNotRequired signifies that user consent is not needed for data processing.

UMPConsentStatus

enum UMPConsentStatus : NSInteger {}

Consent status values.

  • < Unknown consent status.

    Declaration

    Swift

    case unknown = 0

    Objective-C

    UMPConsentStatusUnknown = 0
  • < User consent required but not yet obtained.

    Declaration

    Swift

    case required = 1

    Objective-C

    UMPConsentStatusRequired = 1
  • < Consent not required.

    Declaration

    Swift

    case notRequired = 2

    Objective-C

    UMPConsentStatusNotRequired = 2
  • Undocumented

    Declaration

    Swift

    case obtained = 3

    Objective-C

    UMPConsentStatusObtained =
     3

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.