Skip to main content
Version: 4.4.0

Privacy & Regulations

Auto-Read (No Code Required)​

The SDK automatically reads IAB-standard privacy signals from SharedPreferences (Android) and UserDefaults (iOS). If your app uses a certified CMP (Consent Management Platform), no privacy-related API calls are needed.

StandardKeysCoverage
IAB TCF v2IABTCF_TCString, IABTCF_gdprAppliesGDPR (EU/EEA/UK)
IAB US PrivacyIABUSPrivacy_StringCCPA (California)
IAB GPPIABGPP_HDR_GppString, IABGPP_GppSIDAll US states, Brazil, Canada, etc.

The CMP writes these values; the SDK reads them before every ad request. Publisher-side code is not involved.

Manual API​

Two signals have no standard IAB storage key and must be set explicitly by the publisher when applicable.

SetCoppa​

Marks the app as child-directed for COPPA purposes. Internally also enables non-personalized mode — all sensitive user identifiers are suppressed from bid requests.

sdk.Regulations.SetCoppa(true);

SetNonPersonalized​

Suppresses all sensitive user identifiers (GAID/IDFA, geo, user-agent, etc.) from bid requests without setting the COPPA flag. Use this for age-based content restrictions or any scenario where the publisher wants to omit user IDs.

sdk.Regulations.SetNonPersonalized(true);

When to Use Which​

ScenarioMethod
Children's app (under 13, US)SetCoppa(true)
User under 18 (UK AADC, Brazil Digital ECA)SetNonPersonalized(true)
User under 16 (US state laws — TX, UT, LA)SetNonPersonalized(true)
Publisher wants to suppress IDs for any reasonSetNonPersonalized(true)
GDPR consentNo code needed — auto-read from CMP (IAB TCF v2)
CCPA opt-outNo code needed — auto-read from CMP (IAB US Privacy / GPP)

SetCoppa(true) automatically enables SetNonPersonalized(true) internally. You do not need to call both.