US states privacy laws compliance

To help you comply with U.S. states privacy laws, the Google Mobile Ads SDK for React Native lets you use Google restricted data processing (RDP) parameter to indicate whether to enable RDP. Google also supports the Global Privacy Platform (GPP) for applicable US states. When the Google Mobile Ads SDK for React Native uses either signal, the SDK restricts certain unique identifiers and other data is processed in the provision of services to you.

You must decide how restricted data processing can support your compliance plans and when to enable. Determine whether to use the RDP parameter directly or signaling consent and privacy choices with the GPP Specification.

This guide helps you enable RDP on a per-ad request basis and use the GPP signal.

Enable the RDP signal

To notify Google to enable the RDP signal when loading an ad, pass the key-value pair rdp: '1' in the extras object in your request configuration:

/**
 * Example loading an interstitial ad with restricted data processing (RDP).
 */
export async function loadInterstitialAdWithRdp(
  adUnitId: string,
): Promise<InterstitialAd | null> {
  try {
    const ad = await InterstitialAd.load({
      adUnitId,
      extras: {
        rdp: '1',
      },
    });
    return ad;
  } catch (error) {
    const loadError = error as LoadAdError;
    console.error('Failed to load interstitial ad:', loadError.message);
    return null;
  }
}

You can also notify Google to enable the RDP signal across your app by adding the following:

  • Android: the gad_rdp key with a value of 1 on the SharedPreferences object.
  • iOS: the true value on the UserDefaults object to default local storage.

Use the IAB GPP Signal

If you collect consent decisions with a consent management platform or your own custom messaging, the Google Mobile Ads SDK for React Native respects GPP signals written to local storage. The User Messaging Platform (UMP) SDK supports writing the GPP signal. To gather US state consent, see US IAB Support.