Hi,
Thank you for contacting the Mobile Ads SDK support team.
The stack trace that you have provided doesn’t have anything specific to GMA SDK. Can you confirm whether the same ANR issue is occurring in the Google Sample application too? Use Optimize initialization and ad loading to improve the overall responsiveness of ads and help prevent "Application Not Responding" (ANR) errors on your app. Also, make all calls to the Mobile Ads SDK on the main thread.
If none of the above worked, kindly provide the below details for us to investigate further, check your implementation, find the root cause, and may provide the solution:
You can provide the following details via reply privately to the author option or directly provide it to the link below.
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 with me 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=5004Q00002vE9lyQAC&entry.80707362=002596542. 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.
Hi,
Thank you for getting back to us.
It has come to our attention that we have not received any files. Kindly share them again.
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
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.
Mobile Ads SDK Team |
Hi,
Thank you for providing the stack trace.
Could you confirm if these ANRs are happening on app launch? If so, I would suggest calling the MobileAds.initialize() method on a background thread within an activity as described in the Get Started guide. So, you don't need to enable the flag. If you call the method on the main thread, enabling the flag will move some of the initialization tasks to the background thread. Kindly refer to initialization.
Upon checking the report I can confirm that the report doesn't contain anything related to Mobile Ads SDK.
It is hard to validate the ANR issue without having a com.google.android.gms.ads symbol and from the stack trace it is unclear the origin of the issue. Could you try once by updating the SDK and check whether you are experiencing the same issue or not? In case you found anything related to SDK then kindly write to us again.
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/j4RCW000000000000000000000000000000000000000000000SH80GX00F_Bq3q7gReanE_GqV1exiQ%40sfdc.net.
Hi,
Thank you for providing the stack trace.
Looking at the stack trace, it appears the ANR is related to WebView init. The WebView init is a heavy task (especially the 1st init call) which unfortunately will occupy the UI thread. The Google Mobile Ads SDK relies on WebView heavily and currently this is not something the team can control. As a result, it is inline with expectations that the ANR is happening to a majority of devices with older Android versions. We would still like to see a minimal reproducible to fully diagnose the issue but at this time we can only recommend lightening the load on the UI thread during app startup, such as delaying tasks until it's necessary to call them.
Kindly provide the below information privately so we can gain full visibility of your implementation.
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
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.
Mobile Ads SDK Team |
Hi,
Thank you for contacting the Mobile Ads SDK Support team.
We acknowledged your previous communication and provided a response. However, it appears that the previous response was sent privately.
It is always recommended to keep the SDKs up to date to avoid such issues. As of today, the latest version of Android is 23.2.0 and unity 9.2.0.
Could you confirm whether you have enabled the Optimize initialization inorder to enhance the overall responsiveness of ads and help prevent “Application Not Responding" (ANR) errors on your app.
If the issue still persists, kindly provide us the below information privately so that we can gain full visibility of your implementation:
Hi Neon Gaming,
Thank you for getting back to us.
Could you kindly furnish us with the information that was requested in our previous communication?