Disclose to US users

This guide outlines the steps required to support the US states regulations message as part of the UMP SDK. Pair these instructions with Set up UMP SDK, which details how to get your app running with the UMP SDK and set up your message. The following guidance is specific to the US states regulations message.

Prerequisites

Before continuing, do the following:

To indicate whether a user is under the age of consent, set tagForUnderAgeOfConsent (TFUA). When you set TFUA to true, the UMP SDK doesn't request consent from the user. If your app has a mixed audience, set this parameter for child users to ensure consent is not requested. It is your responsibility for setting this parameter where necessary to comply with COPPA and other relevant regulations.

The following example sets TFUA to true on a UMP consent request:

/**
 * Sets tag for under age of consent on consent request parameters.
 */
export function requestConsentWithTagForUnderAgeOfConsent() {
  requestConsentInfoUpdate(
    {
      tagForUnderAgeOfConsent: true,
    },
    (error) => {
      if (error) {
        console.warn('Consent info update error:', error.message);
      }
    },
  );
}

Test your US states regulations messaging

To test your US states regulations messaging, use the DebugGeography.REGULATED_US_STATE value to force the UMP SDK to treat your test device as if the device were located in a regulated US state. You can also use the DebugGeography.OTHER value to suppress US states regulations messages. For details on the debugGeography property, see Force a geography.