GDPR - Atmosplay/AtmosplayAds-Android GitHub Wiki

This documentation is provided for compliance with the European Union's General Data Protection Regulation (GDPR). If you are collecting consent from your users, you can make use of APIs discussed below to inform AtmosplayAds SDK.

Set GDPR

GDPR state enumeration class definition

enum GDPRStatus {
    // The user has granted consent for personalized ads.
    PERSONALIZED,
    // The user has granted consent for non-personalized ads.
    NON_PERSONALIZED,
    // The user has neither granted nor declined consent for personalized or non-personalized ads.
    UNKNOWN
}

GDPR related methods

// Set the GDPR status
PlayableAdsSettings.setGDPRConsent(GDPRStatus.PERSONALIZED);

// Get GDPR status
PlayableAdsSettings.getGDPRConsent()