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

  • UMPRequestParameters is an NSObject used to send parameters when updating user consent information.

  • The tagForUnderAgeOfConsent property is a Boolean indicating if the user is tagged as under the age of consent.

  • The debugSettings property allows for specifying debug settings for the request.

UMPRequestParameters


@interface UMPRequestParameters : NSObject <NSCopying>

Parameters sent on updates to user consent info.

  • Indicates whether the user is tagged for under age of consent.

    Declaration

    Swift

    var isTaggedForUnderAgeOfConsent: Bool { get set }

    Objective-C

    @property (nonatomic) BOOL tagForUnderAgeOfConsent;
  • Debug settings for the request.

    Declaration

    Swift

    @NSCopying var debugSettings: DebugSettings? { get set }

    Objective-C

    @property (nonatomic, copy, nullable) UMPDebugSettings *debugSettings;
  • The consent sync ID to sync the user consent status collected with the same ID.

    The consent sync ID must meet the following requirements:

    • Constructed as a UUID string, or matches the regular expression (regex) ^[0-9a-zA-Z+.=\/_-,ドル{}]{22,150}$ .
    • A minimum of 22 characters.
    • A maximum of 150 characters.

    Failure to meet the requirements results in the consent sync ID not being set and the UMP SDK logging a warning to the console.

    Declaration

    Swift

    var consentSyncID: String? { get set }

    Objective-C

    @property (nonatomic, copy, nullable) NSString *consentSyncID;

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年10月29日 UTC.