CCPA - Privacy String

Introduction

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.

For more information on Fyber and CCPA, refer to Fyber’s Resource Page.
For more information about CCPA, refer to the IAB CCPA Compliance Framework.

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 using the following API:

To set the IAB US privacy string, use 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 the following value 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, use the following API:

Clear Consent

UserInfo.clearIabUsPrivacyString(context);
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request