Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.
AppsFlyer 是经认证的 Google Mobile Measurement Partner (MMP) 和 App Attribution Partner (AAP)。本指南介绍如何将 UniConsent 同意管理平台 (CMP) 与 AppsFlyer SDK 集成,以确保在符合隐私法规的前提下正确传输同意信号。
UniConsent CMP 会自动检测 AppsFlyer SDK 的存在,并通过其 API 发送用户同意信号。
有关完整设置的详细信息,请参阅 AppsFlyer Android SDK 初始化指南。
如需启用 TCF(透明度与同意框架)数据收集,请在启动 SDK 之前使用以下代码:
AppsFlyerLib.getInstance().enableTCFDataCollection(true);
handle(Event event) 回调中启动 AppsFlyer确保在 CMP 回调中启动 AppsFlyer,以便在用户同意可用时进行操作:
@Override
public void handle(Event event) {
// start once a choice exists: when the CMP closes, or at READY when no consent request is needed
boolean closed = event.getType() == EventType.UI_CLOSE;
boolean noRequest = event.getType() == EventType.READY && !UniConsent.getInstance().shouldRequestConsent();
if (closed || noRequest) {
AppsFlyerLib.getInstance().start(this);
}
}
Sending consent signal to Appsflyer
com.uniconsent.sdk.aap 的日志时,您应该会看到类似以下的确认信息: Successfully set consent signal to Appsflyer: {AD_USER_DATA=GRANTED, AD_STORAGE=GRANTED, AD_PERSONALIZATION=GRANTED, ANALYTICS_STORAGE=GRANTED}
这些日志确认 UniConsent CMP 已成功将同意状态传递给 AppsFlyer SDK,从而实现符合隐私要求的数据处理和归因。
为确保用户同意可用,请务必在 CMP 的 override fun handle(event: Event?) (Android) 或 public func onDismiss() (iOS) 回调中调用 MMP/AAP API。
在以下指南中了解更多关于 UniConsent SDK API 的信息: