US IAB Support

  • This guide provides instructions on integrating the US states regulations message into your Android app using the User Messaging Platform (UMP) SDK.

  • Before you begin, ensure you have updated to the latest UMP SDK, completed the 'Get started' guide, created a US states regulations message, and reviewed the available user message types.

  • Set the TagForUnderAgeOfConsent (TFUA) parameter to true for users under the age of consent to prevent the UMP SDK from requesting consent, ensuring compliance with regulations like COPPA.

  • You can read the user's consent choices from local storage following the Global Privacy Platform (GPP) spec after they have interacted with the message.

  • For testing purposes, utilize the debugGeography setting with UMPDebugGeographyRegulatedUSState to simulate a device location within a regulated US state.

Select platform: Android iOS Unity

This guide outlines the steps required to support the US states regulations message as part of the UMP SDK. Pair these instructions with Get started, 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, ensure you do the following:

  • Update to the latest version of the UMP SDK. For US states regulations messaging support, we recommend you to use version 2.1.0 or higher.
  • Complete Get started. Be sure to implement a privacy options entrypoint and render it if required. By completing this guide, you have an entrypoint to serve your US states regulations message to your users.
  • Create a US states regulations message for apps.
  • If you're using the US states regulations message alongside other messages, consult Available user message types to understand when different messages are displayed to your users.

To indicate whether a user is under the age of consent, set setTagForUnderAgeOfConsent (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:

Java

ConsentRequestParameters params = new ConsentRequestParameters
    .Builder()
    // Indicate the user is under age of consent.
    .setTagForUnderAgeOfConsent(true)
    .build();

consentInformation = UserMessagingPlatform.getConsentInformation(this);
consentInformation.requestConsentInfoUpdate(
    this,
    params,
    (OnConsentInfoUpdateSuccessListener) () -> {
      // ...
    },
    (OnConsentInfoUpdateFailureListener) requestConsentError -> {
      // ...
    });

Kotlin

val params = ConsentRequestParameters
    .Builder()
    // Indicate the user is under age of consent.
    .setTagForUnderAgeOfConsent(true)
    .build()

consentInformation = UserMessagingPlatform.getConsentInformation(this)
consentInformation.requestConsentInfoUpdate(
    this,
    params,
    ConsentInformation.OnConsentInfoUpdateSuccessListener {
      // ...
    },
    ConsentInformation.OnConsentInfoUpdateFailureListener {
      requestConsentError ->
      // ...
    })

After the user has made a US states regulations decision, you can read their choice from local storage following the Global Privacy Platform (GPP) spec. For more details see, In-App Details. Note that the UMP SDK only populates the IABGPP_GppSID and IABGPP_HDR_GppString keys.

Test your US states regulations messaging

To test your US states regulations messaging, use the UMPDebugGeographyRegulatedUSState debugGeography 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 UMPDebugGeographyOther to force suppression of US states regulations messages. For more details on debugGeography, see Force a geography.