AppsFlyerConsent
Vue d'ensemble
AppsFlyerConsent
encapsulates the methods for acquiring consent data required by the Digital Marketing Act (DMA).
Méthodes
forGDPRUser
Signature de la méthode
public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)
Description
Acquires user consent for data usage and ad personalization. Call the function when DMA is applicable to the user.
Arguments d'entrée
Type | Nom | Description |
---|---|---|
Booléen | hasConsentForDataUsage | Indicates whether the user give consent to send their user data to Google. |
Booléen | hasConsentForAdsPersonalization | Indicates whether the user consented to use their data for personalized advertising. |
Retours
Type | Description |
---|---|
AppsFlyerConsent | An object containing user consent data |
Exemple d'utilisation
AppsFlyerConsent gdprUserConsent = AppsFlyerConsent.forGDPRUser(hasConsentForDataUsage, hasConsentForAdsPersonalization);
forNonGDPRUser
Signature de la méthode
public AppsFlyerConsent forNonGDPRUser()
Description
Return an empty AppsFlyerConsent object without any consent data. Call the method when DMA is not applicable to the user.
Retours
Type | Description |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
Exemple d'utilisation
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
Mis(e) à jour il y a 6 mois