Unity Privacy Methods

Chartboost requires that publishers obtain consent from their users to be able to process personal data and provide relevant ads.
addDataUseConsent is the new public api usage to set consent values. This new API provides user consent data for privacy laws currently in existence or future laws. Replaces setPIDataUseConsent method.

GDPR

/**
 * GDPR support settings:
 * ‘NoBehavioral’ means the user does not consent to targeting (Contextual ads)
 * ‘Behavioral’ means the user consents (Behavioral and Contextual Ads)
 */ 
Chartboost.addDataUseConsent(CBGDPRDataUseConsent.Behavioral);
Or
Chartboost.addDataUseConsent(CBGDPRDataUseConsent.NoBehavioral);

CCPA

/**
 * CCPA support settings:
 * ‘OptInSale’ means the user consents (Behavioral and Contextual Ads)
 * ‘OptOutSale’ means the user does not consent to targeting (Contextual ads)
 */
Chartboost.addDataUseConsent(CBCCPADataUseConsent.OptOutSale);
Or
Chartboost.addDataUseConsent(CBCCPADataUseConsent.OptInSale);

Custom Consent

Chartboost allows publishers to provide custom consent information, besides the predefined GDPR and CCPA values.
For example:
Chartboost.addDataUseConsent(new CBCustomDataUseConsent("name","value"));
Currently, the only custom consent values allowed are valid IAB’s U.S. Privacy String for the CBCCPADataUseConsent standard.