US Privacy Compliance

DT Exchange’s SDK version 7.5.0 and above for Android and version 7.5.1 and above for iOS supports US Privacy string.

Setting the IAB US Privacy String

We recommend that the first time you gather a user opt out (aka 'consent'), you pass it onto the SDK before initializing it. The SDK takes the user’s opt out into consideration when initializing.

Once you have collected the user’s opt out, you can pass it onto the SDK and set the IAB US privacy string using the following API:

Consent String

String privacyString = "1YNN";
UserInfo.setIabUsPrivacyString(privacyString, context);

To determine what value to use for the US Privacy String, refer to the IAB document here.
Example values:

  • When CCPA does not apply (for example if the user is not a resident of California) you can either skip this API or use 1---
  • If the user choses NOT to opt out, and is ok with advertising as usual, you can use 1YNN
  • If the user chooses to restrict advertising and opt out, you can use 1YYN

Open Source CCPA String Builder

The purpose of the Open Source US Privacy String Builder is to enable publishers to set the correct privacy values and then implement the produced string in the API.

Back to Top ⇧