AppLovin / AppLovin-MAX-SDK-Android

Other
228 stars 102 forks source link

Clarification:AppLovinSdk: [DataCollector] Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. #562

Open jesphinpt opened 1 year ago

jesphinpt commented 1 year ago

MAX SDK Version

11.11.3

Device/Platform Info

Android

Current Behavior

Facing the below error. But I have the gms.ads sdk in my build.gradle file

AppLovinSdk: [DataCollector] Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application.

Expected Behavior

Need not to show the above error while debugging.

How to Reproduce

With Applovin latest version I am seeing the above message.

Additional Info

No response

thomasmso commented 1 year ago

@jesphinpt - Could you enable and and send over our SDK's verbose logs while reproducing the issue?

I am curious of all logs starting from these logs.

========================================
SDK Session Begin
========================================
jesphinpt commented 1 year ago
E/AppLovinSdk: [DataCollector] Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you're sure you've integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }
    java.io.IOException: java.util.concurrent.TimeoutException: Timed out waiting for the service connection
        at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzb(com.google.android.gms:play-services-ads-identifier@@17.1.0:16)
        at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(com.google.android.gms:play-services-ads-identifier@@17.1.0:3)
        at com.applovin.impl.sdk.utils.d.collectGoogleAdvertisingInfo(SourceFile:173)
        at com.applovin.impl.sdk.utils.d.c(SourceFile:142)
        at com.applovin.impl.sdk.utils.d.b(SourceFile:88)
        at com.applovin.impl.sdk.utils.d.a(SourceFile:52)
        at com.applovin.impl.sdk.utils.j$1.run(SourceFile:37)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.util.concurrent.TimeoutException: Timed out waiting for the service connection
        at com.google.android.gms.common.BlockingServiceConnection.getServiceWithTimeout(com.google.android.gms:play-services-basement@@18.2.0:4)
        at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzb(com.google.android.gms:play-services-ads-identifier@@17.1.0:14)
        at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo(com.google.android.gms:play-services-ads-identifier@@17.1.0:3)
        at com.applovin.impl.sdk.utils.d.collectGoogleAdvertisingInfo(SourceFile:173)
        at com.applovin.impl.sdk.utils.d.c(SourceFile:142)
        at com.applovin.impl.sdk.utils.d.b(SourceFile:88)
        at com.applovin.impl.sdk.utils.d.a(SourceFile:52)
        at com.applovin.impl.sdk.utils.j$1.run(SourceFile:37)
        at java.lang.Thread.run(Thread.java:764)
W/DynamiteModule: Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
E/AppLovinSdk: [DataCollector] Unable to determine if Fire OS limited ad tracking is turned on
    android.provider.Settings$SettingNotFoundException: limit_ad_tracking
        at android.provider.Settings$Secure.getIntForUser(Settings.java:4972)
        at android.provider.Settings$Secure.getInt(Settings.java:4958)
        at com.applovin.impl.sdk.utils.d.collectFireOSAdvertisingInfo(SourceFile:219)
        at com.applovin.impl.sdk.utils.d.c(SourceFile:147)
        at com.applovin.impl.sdk.utils.d.b(SourceFile:88)
        at com.applovin.impl.sdk.utils.d.a(SourceFile:52)
        at com.applovin.impl.sdk.utils.j$1.run(SourceFile:37)
        at java.lang.Thread.run(Thread.java:764)
thomasmso commented 1 year ago

I need all logs, starting from:

========================================
SDK Session Begin
========================================
jesphinpt commented 1 year ago

@thomasmso I am getting the below error sometimes Attempted to load ad before SDK initialization. Please wait until after the SDK has initialized, e.g. AppLovinSdk.initializeSdk(Context, SdkInitializationListener.

@thomasmso I am not getting the appopen on the cold start. Any reason for that? How to implement that. i have added in my MainAct still not showing any ads

But other times I have added the logs below.

D/AppLovinSdk: [AppLovinSdk] 
    ========================================
    SDK Session Begin
    ========================================
V/FA: Connecting to remote service
D/AppLovinSdk: [AppLovinSdkSettings] setMuted(muted=true)
D/AppLovinSdk: [AppLovinSdk] Starting mediation debugger...
D/AppLovinSdk: [AppLovinSdkSettings] setVerboseLogging(isVerboseLoggingEnabled=true)
D/AppLovinSdk: [MaxAppOpenAd] MaxAppOpenAd(adUnitId=cac1rwrwrwr8188c4, sdk=AppLovinSdk{sdkKey='QRogKrHW3wWksf63sF9cwIyoIE8TuWadOGKXv-STG6WTXn-4kJLuui1yKpGvGSzttmf2Bh912skQw7949WWOKp', isEnabled=false, isFirstSession=false})
D/AppLovinSdk: [MaxAppOpenAd] Created new MaxAppOpenAd (MaxAppOpenAd{adUnitId='cac19092208188c4', adListener=this, revenueListener=null, requestListenernull, adReviewListenernull, isReady=false})
D/AppLovinSdk: [MaxAppOpenAd] setListener(listener=.AppOpen@c07af17)
D/AppLovinSdk: [MaxAppOpenAd] Setting listener: .AppOpen@c07af17
D/AppLovinSdk: [MaxAppOpenAd] loadAd()
D/AppLovinSdk: [MaxAppOpenAd] Loading ad for 'cac190wwrwrwr'
D/AppLovinSdk: [MaxAppOpenAd] Transitioning from IDLE to LOADING...
W/AppLovinSdk: [AppLovinSdk] **Attempted to load ad before SDK initialization. Please wait until after the SDK has initialized, e.g. AppLovinSdk.initializeSdk(Context, SdkInitializationListener).**

Sometimes

/AppLovinSdk: [AppLovinSdk] 
    ========================================
    SDK Session Begin
    ========================================
W/zygote64: miui_dex2oat: process: complete dex2oat of /data/data/l/files/oat/arm64/audience_network.odex cost 1191ms
D/AppLovinSdk: [AppLovinSdkSettings] setMuted(muted=true)
I/zygote64: The ClassLoaderContext is a special shared library.
W/zygote64: miui_dex2oat: OatFile: /data/data/com/files/oat/arm64/audience_network.odex Compiler-Filter = quicken
D/AppLovinSdk: [AppLovinSdk] Starting mediation debugger...
D/AppLovinSdk: [AppLovinSdkSettings] setVerboseLogging(isVerboseLoggingEnabled=true)

D/AppLovinSdk: [MediationDebuggerListAdapter] 
    ========== MEDIATION DEBUGGER ==========
    ========== APP INFO ==========
    Dev Build - true
    Test Mode - disabled
    Target SDK - 34
    ========== MAX ==========
    SDK Version - 11.11.3
    Plugin Version - None
    Ad Review Version - Disabled
    ========== PRIVACY ==========
    CMP Name - null
    IABTCF_TCString - null
    IABTCF_gdprApplies - null
    Age Restricted User - No value set
    Has User Consent - No value set
    "Do Not Sell" - No value set
    Consent Flow Enabled - false
    Privacy Policy - undefined
    Terms of Service - undefined
    ========== NETWORKS ==========
    ---------- APPLOVIN_NETWORK ----------
    Status  - COMPLETE
    SDK     - 11.11.3
    Adapter - 11.11.3
    ---------- FACEBOOK_NETWORK ----------
    Status  - COMPLETE
    SDK     - 6.16.0
    Adapter - 6.16.0.0
    ---------- GOOGLE_AD_MANAGER_NETWORK ----------
    Status  - COMPLETE
    SDK     - 22.4.0
    Adapter - 22.3.0.0
    ---------- ADMOB_NETWORK ----------
    Status  - COMPLETE
    SDK     - 22.4.0
    Adapter - 22.3.0.0
D/AppLovinSdk: [MediationDebuggerListAdapter] 

    ---------- INMOBI_NETWORK ----------
    Status  - COMPLETE
    SDK     - 10.5.7
    Adapter - 10.5.7.0
    ---------- VUNGLE_BIDDING ----------
    Status  - COMPLETE
    SDK     - 6.12.1
    Adapter - 6.12.1.1
    ---------- MINTEGRAL_BIDDING ----------
    Status  - COMPLETE
    SDK     - MAL_16.5.11
    Adapter - 16.5.11.0
    ---------- OGURY_PRESAGE_NETWORK ----------
    Status  - COMPLETE
    SDK     - 5.6.0
    Adapter - 5.6.0.0
    ---------- TIKTOK_BIDDING ----------
    Status  - COMPLETE
    SDK     - 5.4.1.1
    Adapter - 5.4.1.1.0
    ========== AD UNITS ==========
    ---------- INR Android MREC ----------
    Identifier - b5f045eererer8833f6
    Format     - MREC
    ---------- IRN Android App Open ----------
    Identifier - cacererer1909220818
    Format     - APPOPEN
    ---------- I=U Native ----------
    Identifier - 3c879erer9bb2cf
    Format     - NATIVE
    ----------  Android MREC ----------
    Identifier - 4ce651f95reerer
    Format     - MREC
    ---------- = Android ----------
    Identifier - ererer
    Format     - INTER
    ========== END ==========
D/AppLovinSdk: [TaskFetchDeveloperUri] Looking up developer URI for package name: 
I/AppLovinSdk: [ConnectionManager] Sending GET request to id=#-571656357 "play.google.com/store/apps/details"..

/AppLovinSdk: [PersistentPostbackManager] Enqueued postback: PostbackRequest{uniqueId='cbcdedb6-4b92-454a-a83f-387e9921177f', communicatorRequestId='null', httpMethod='null', targetUrl='https://rt.applovin.com/4.0/pix', backupUrl='https://rt.applvn.com/4.0/pix', attemptNumber=0, isEncodingEnabled=true, isGzipBodyEncoding=false, isAllowedPreInitEvent=true, shouldFireInWebView=false}
D/AppLovinSdk: [PersistentPostbackManager] Preparing to submit postback...PostbackRequest{uniqueId='cbcdedb6-4b92-454a-a83f-387e9921177f', communicatorRequestId='null', httpMethod='null', targetUrl='https://rt.applovin.com/4.0/pix', backupUrl='https://rt.applvn.com/4.0/pix', attemptNumber=0, isEncodingEnabled=true, isGzipBodyEncoding=false, isAllowedPreInitEvent=true, shouldFireInWebView=false}
I/AppLovinSdk: [TaskRunnable:submitTrackEventPostback] BACKGROUND queue finished task TaskRunnable:submitTrackEventPostback
D/VungleLogger: Please setup Logger first.
I/AppLovinSdk: [ConnectionManager] Sending POST request to id=#-690100268 "d.applovin.com/2.0/device"...
I/AppLovinSdk: [TaskApiSubmitData] MAIN queue finished task TaskApiSubmitData
/AppLovinSdk: [MediationAdapterWrapper] VungleMediationAdapter: finished initialize
D/AppLovinSdk: [TaskAutoInitAdapters] Auto-initing adapter: MediationAdapterSpec{adapterClass='com.applovin.mediation.adapters.VungleMediationAdapter', adapterName='VUNGLE_NATIVE_BIDDING', isTesting=false}
D/AppLovinSdk: [MediationAdapterManager] Loaded VUNGLE_NATIVE_BIDDING
I/AppLovinSdk: [MediationAdapterInitializationManager] Initializing adapter MediationAdapterSpec{adapterClass='com.applovin.mediation.adapters.VungleMediationAdapter', adapterName='VUNGLE_NATIVE_BIDDING', isTesting=false}
D/AppLovinSdk: [MediationAdapterWrapper] VungleMediationAdapter: running initialize...
D/AppLovinSdk: [MediationAdapterWrapper] Initializing VungleMediationAdapter on thread: Thread[AppLovinSdk:auxiliary_operations,1,main] with 'run_on_ui_thread' value: false
I/AppLovinSdk: [VungleMediationAdapter] Vungle SDK already initialized
D/AppLovinSdk: [MediationAdapterWrapper] VungleMediationAdapter: finished initialize
thomasmso commented 1 year ago

For App Open Ads, can you open up a new issue? For the original issue in this thread, I need all the logs from SDK start to when you encounter the issue.

jesphinpt commented 1 year ago

@thomasmso Will create a new one. Any inputs on this error.

thomasmso commented 1 year ago

No inputs until I receive all the logs from SDK start to when you encounter the issue.

jesphinpt commented 1 year ago

the above issue raise while starting the app itself.

thomasmso commented 1 year ago

@jesphinpt - It would still help to get full logs (e.g. I can deduce what device model you're on).