AppsFlyerConsent
개요
AppsFlyerConsent
encapsulates the methods for acquiring consent data required by the Digital Marketing Act (DMA).
메서드
forGDPRUser
Method signature
public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)
설명
Acquires user consent for data usage and ad personalization. Call the function when DMA is applicable to the user.
입력 인수
유형 | 이름 | 설명 |
---|---|---|
Boolean | hasConsentForDataUsage | Indicates whether the user give consent to send their user data to Google. |
Boolean | hasConsentForAdsPersonalization | Indicates whether the user consented to use their data for personalized advertising. |
반환
유형 | 설명 |
---|---|
AppsFlyerConsent | An object containing user consent data |
사용법 예시
AppsFlyerConsent gdprUserConsent = AppsFlyerConsent.forGDPRUser(hasConsentForDataUsage, hasConsentForAdsPersonalization);
forNonGDPRUser
Method signature
public AppsFlyerConsent forNonGDPRUser()
설명
Return an empty AppsFlyerConsent object without any consent data. Call the method when DMA is not applicable to the user.
반환
유형 | 설명 |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
사용법 예시
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
최신 데이터 5개월 전