Login
Welcome
Login

3 - Privacy consent management (GDPR & CCPA)

Through the General Data Protection Regulation Policy (GDPR) applicable in the European economic area and the California Consumer Privacy Act (CCPA) and to support publishers in meeting their duties under this policy, Teads inApp SDK offers different ways to provide the user consent during the ad server request.


CCPA compatibility only for SDK version 4.5.0 and superior


If your CMP is IAB compliant

If you have a consent management platform (CMP) compliant with the IAB GDPR specifications and IAB CCPA specifications, good news, Teads SDK is able to recover the user status and consent by itself through the Android shared preferencesNSUserDefaults.

For GDPR

Be sure that IABConsent_SubjectToGDPR and IABConsent_ConsentString are correctly implemented

For CCPA

Be sure That IABUSPrivacy_String is correctly implemented.


If your CMP is not IAB compliant

If your CMP is not IAB compliant, it's recommended to provide the status and user consent at every load of an Ad. 

For GDPR

To do this, you can use the userConsent method in the AdSettingsTeadsAdSettings Builder.

The param subjectToGDPR should be: 

  • "1" if the traffic or the publisher is in the EEA (European Economic Area), 
  • "0" if it is not, null if it's unknown.
AdSettings.Builder adSettingsBuilder = new AdSettings.Builder();
adSettingsBuilder.userConsent(String subjectToGDPR, String consent); // The user consent following the IAB specifications :https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/Mobile%20In-App%20Consent%20APIs%20v1.0%20Final.md.
adView.load(adSettingBuilder.build());
let teadsAdSettings = TeadsAdSettings(build: { (settings) in
    settings.userConsent(subjectToGDPR: self.subjectToGDPR, consent: self.consent) // The user consent following the IAB specifications :https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/Mobile%20In-App%20Consent%20APIs%20v1.0%20Final.md
})

For CCPA

To do this, you can use the UsPrivacy method in the AdSettingsTeadsAdSettings Builder:

AdSettings.Builder().apply { 
	enableDebug()
	setUsPrivacy("")            
}.build()
let teadsAdSettings = TeadsAdSettings(build: { (settings) in
	settings.setUsPrivacy(consent: yourUsPrivacyString) // e.g. 1YNN
})


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.