SDK Privacy Methods
Warning
- Chartboost requires that publishers obtain consent from their users to be able to process personal data and provide relevant ads.
- Review our COPPA FAQs for more information on behavior targeting.
GDPR
To set GDPR consent:
[Chartboost addDataUseConsent:[CHBGDPRDataUseConsent gdprConsent:CHBGDPRConsentBehavioral]];
Possible consent values are CHBGDPRConsentBehavioral
and CHBGDPRConsentNonBehavioral.
Chartboost will store the consent status even after the app is closed. In order to reset this information use:
[Chartboost clearDataUseConsentForPrivacyStandard:CHBPrivacyStandardGDPR];
CCPA
To set CCPA consent:
[Chartboost addDataUseConsent:[CHBCCPADataUseConsent ccpaConsent:CHBCCPAConsentOptInSale]];
Possible consent values are CHBCCPAConsentOptInSale
and CHBCCPAConsentOptOutSale
.
Chartboost will store the consent status even after the app is closed. In order to reset this information use:
[Chartboost clearDataUseConsentForPrivacyStandard:CHBPrivacyStandardCCPA];
COPPA
To set COPPA consent:
[Chartboost addDataUseConsent:[CHBCOPPADataUseConsent isChildDirected:true]];
Possible consent values are true
and false
.
Chartboost will store the consent status even after the app is closed. In order to reset this information use:
[Chartboost clearDataUseConsentForPrivacyStandard:CHBPrivacyStandardCOPPA];
LGPD
To set LGPD consent:
[Chartboost addDataUseConsent:[CHBLGPDDataUseConsent allowBehavioralTargeting:true]];
Possible consent values are true
and false
.
Chartboost will store the consent status even after the app is closed. In order to reset this information use:
[Chartboost clearDataUseConsentForPrivacyStandard:CHBPrivacyStandardLGPD];
Custom Consent
Chartboost allows publishers to provide custom consent information, besides the predefined GDPR and CCPA values.
For example:
[Chartboost addDataUseConsent:[CHBCustomDataUseConsent customConsentWithPrivacyStandard:CHBPrivacyStandardCCPA consent:@"1NN-"]];
Caution
Currently, the only custom consent values allowed are valid IAB's U.S. Privacy String for the
CHBPrivacyStandardCCPA
standard.
Updated about 2 months ago