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

  • UMPPrivacyOptionsRequirementStatus defines whether a user needs to be provided with options to change their privacy preferences.

  • It has three states: unknown, required, and notRequired, indicating if the requirement is unknown, mandatory, or not needed respectively.

  • When required, the user must be given a way to adjust their privacy options.

  • When notRequired, the user does not need to modify their privacy options because either consent is not required, or the consent type does not allow for modification.

UMPPrivacyOptionsRequirementStatus

enum UMPPrivacyOptionsRequirementStatus : NSInteger {}

State values for whether the user needs to be provided a way to modify their privacy options.

  • Requirement unknown.

    Declaration

    Swift

    case unknown = 0

    Objective-C

    UMPPrivacyOptionsRequirementStatusUnknown = 0
  • A way must be provided for the user to modify their privacy options.

    Declaration

    Swift

    case required = 1

    Objective-C

    UMPPrivacyOptionsRequirementStatusRequired = 1
  • User does not need to modify their privacy options. Either consent is not required, or the consent type does not require modification.

    Declaration

    Swift

    case notRequired = 2

    Objective-C

    UMPPrivacyOptionsRequirementStatusNotRequired = 2

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.