The intention of the California Consumer Privacy Act of 2018 (CCPA) is to protect the personal information of California residents. CCPA applies to all companies doing business in California. If a California resident uses an app developer’s mobile app, CCPA applies to the developer and every company that processes the personal information of the app’s users. CCPA came into effect on 1 January 2020.
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 consent 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:
var privacyString = "1YNN"; UserInfo.SetIabUsPrivacyString(privacyString);
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
Clearing Privacy Opt-Out
To clear the privacy string setting, use the following API: