From c7482eda72e882084b45943a8471e08b53f9c4e7 Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Wed, 14 Jan 2026 14:46:11 +0800 Subject: [PATCH] =?UTF-8?q?adjust=20=E8=8E=B7=E5=8F=96=20gaid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statisticreporter/adjust/AdjustManager.kt | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt b/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt index 81f430f..2eacd58 100644 --- a/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt +++ b/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt @@ -10,6 +10,9 @@ import com.adjust.sdk.AdjustConfig import com.adjust.sdk.AdjustEvent import com.adjust.sdk.LogLevel import com.adjust.sdk.OnAttributionChangedListener +import com.adjust.sdk.OnGoogleAdIdReadListener +import com.adjust.sdk.OnSessionTrackingFailedListener +import com.adjust.sdk.OnSessionTrackingSucceededListener import com.ama.core.architecture.BaseApp import com.ama.core.architecture.util.AndroidUtil import com.ama.core.architecture.util.SpUtil @@ -85,8 +88,16 @@ class AdjustManager private constructor() { val config = AdjustConfig(mAppContext, appToken, environment).apply { setLogLevel(if (isDebug) LogLevel.VERBOSE else LogLevel.WARN) enableSendingInBackground() - enableCoppaCompliance() - enableCostDataInAttribution() + /*enableCoppaCompliance() + enableCostDataInAttribution()*/ + + onSessionTrackingFailedListener = OnSessionTrackingFailedListener { failSession -> + val test = 111 + } + + onSessionTrackingSucceededListener = OnSessionTrackingSucceededListener { + val test = 111 + } onAttributionChangedListener = OnAttributionChangedListener { attribution-> val test = 111 @@ -97,6 +108,10 @@ class AdjustManager private constructor() { Adjust.initSdk(config) Adjust.enable() + Adjust.getGoogleAdId(BaseApp.appContext(), OnGoogleAdIdReadListener { gaId-> + + }) + if (!mSpHelper.hasIdentityUserType()) { mChecker.startPolling() }