iOS Privacy Methods

Chartboost requires that publishers obtain consent from their users to be able to process personal data and provide relevant ads.

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];

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-"]];
 
Currently, the only custom consent values allowed are valid IAB’s U.S. Privacy String for the CHBPrivacyStandardCCPA standard.