Bug: time out exception for fetching AppSetId, without any way to overcome it

18 views
Skip to first unread message

Liran Barsisa

unread,
5:06 AM (9 hours ago) 5:06 AM
to Google Mobile Ads SDK Developers
- Steps to reproduce the problem (including sample code if appropriate).
1. Use the new API to get AppSetID:
https://support.google.com/admob/answer/16472823
https://developers.google.com/admob/android/privacy/sync-consent#kotlin
https://developer.android.com/training/articles/app-set-id



I have something like this:

    implementation("com.google.android.gms:play-services-ads:24.7.0")

            AppSet.getClient(app).appSetIdInfo.addOnCompleteListener(object : OnCompleteListener<AppSetIdInfo> {
                @UiThread
                override fun onComplete(task: Task<AppSetIdInfo?>) {
                     ...
                        val appSetId: String? = task.result?.id
                        ...



2. Publish to many users.
3. Check Crashlytics

- What happened.
Got this crash:

          Fatal Exception: com.google.android.gms.tasks.RuntimeExecutionException: java.lang.Exception: The operation to get app set ID timed out. Please try again later.
       at com.google.android.gms.tasks.zzw.getResult(com.google.android.gms:play-services-tasks@@18.1.0:3)
       at com.lb.app_manager.ads.ad_consent.AdConsentSyncIdManager$fetchAppSetId$1.onComplete(AdConsentSyncIdManager.java:193)
       at 


The crash is on the onComplete line (193) and not on the line of " task.result?.id" , without letting me do anything about it.


- What you think the correct behavior should be.
Shouldn't crash. 

Liran Barsisa

unread,
5:09 AM (9 hours ago) 5:09 AM
to Google Mobile Ads SDK Developers
Video of the crash attached here.


chrome_2025-11-12_11-52-55_1.mp4

Mobile Ads SDK Forum Advisor

unread,
11:28 AM (3 hours ago) 11:28 AM
to lbl...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting Mobile Ads SDK Support team.

Please note that the Sync consent across apps is currently in a beta phase. 

I have executed our sample project by Setting the consent sync ID on the ConsentRequestParameters object, I was unable to reproduce the reported issue. Could you kindly provide the sample project to facilitate further investigation?

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files via reply to author option or  by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=500Ht00001vTG9JIAW&entry.80707362=00339109

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

 

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-11-12 16:27:31Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vTG9J:ref" (ADR-00339109)



Reply all
Reply to author
Forward
0 new messages