Admob app open ads can't display

143 views
Skip to first unread message

哈哈不想哈哈

unread,
Sep 25, 2024, 1:01:58 PMSep 25
to Google Mobile Ads SDK Developers
hi,

I'm using Admob sdk to access ads, and I use app open ads, but now there's a problem where ads don't appear properly, or are transparent.
I got the code steps exactly the same as the AD example, showing an AD and caching an AD. When I killed the app, the process did not change. When I opened the app again and needed to show the cache AD, I reported an error about webview, as follows:

Application attempted to call on a destroyed WebView
java.lang.Throwable
at org.chromium.android_webview.AwContents.t(chromium-TrichromeWebViewGoogle6432.aab-stable-647813533:10)
at com.android.webview.chromium.WebViewChromium.setBackgroundColor(chromium-TrichromeWebViewGoogle6432.aab-stable-647813533:46)
at android.webkit.WebView.setBackgroundColor(WebView.java:3023)
at com.google.android.gms.ads.internal.webview.ab.ae(:com.google.android.gms.policy_ads_fdr_dynamite@)
at com.google.android.gms.ads.internal.overlay.l.x(:com.google.android.gms.policy_ads_fdr_dynamite@)
at com.google.android.gms.ads.internal.overlay.l.d(:com.google.android.gms.policy_ads_fdr_dynamite)
at com.google.android.gms.ads.internal.overlay.client.a.bV(:com.google.android.gms.policy_ads_fdr_dynamit5)
at m.amo.onTransact(:com.google.android.gms.policy_ads_fdr_dynamite@)
at android.os.Binder.transact(Binder.java:1169)
at com.google.android.gms.internal.ads.zzazo.zzdc(SourceFile:8)
at com.google.android.gms.internal.ads.zzbun.zzl(SourceFile:9)
at com.google.android.gms.ads.AdActivity.onCreate(SourceFile:18)
at android.app.Activity.performCreate(Activity.java:8538)
at android.app.Activity.performCreate(Activity.java:8502)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1437)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3878)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4043)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2437)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8294)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)

I'm sure I got the code exactly like the example on the admob website

Tell me how to fix it
thanks

Mobile Ads SDK Forum Advisor

unread,
Sep 25, 2024, 6:05:59 PMSep 25
to hubin...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK support team. 

I executed our Google AppOpen sample, and the error “Application attempted to call on a destroyed WebView” is not reproducing. Please confirm if the issue is replicating in our Google AppOpen sample. If yes, Kindly provide us with the below information for further investigation privately:

  • Screenshots of ads don't appear properly or are transparent
  • How did you cache an Ad
  • app ID
  • ad unit ID
  • Mobile Ads SDK Version
  • Sample project reproducing the issue

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=5004Q00002vGac3QAC&entry.80707362=00269567

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. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02vGac3:ref" (ADR-00269567)

Thanks,
 
Google Logo Mobile Ads SDK Team

 

哈哈不想哈哈

unread,
Sep 26, 2024, 12:08:24 AMSep 26
to Google Mobile Ads SDK Developers
hi,

I have sent you the demo and the test video, but I want to emphasize again that not all phones have this problem. I found that xiaomi, or Redmi brand, is more likely to have this problem.

thanks

Mobile Ads SDK Forum Advisor

unread,
Sep 26, 2024, 5:21:05 AMSep 26
to hubin...@gmail.com, google-adm...@googlegroups.com
Hi,

Upon checking the sample project this seems to be an implementation issue. It will be easy for us if you elaborate the use case what the MyService class do? As per my understanding you are using it for notification handling. When we tried to run the sample it get crashed, Kindly provide us the running sample project for further investigation.
Message has been deleted

哈哈不想哈哈

unread,
Sep 26, 2024, 10:59:02 AMSep 26
to Google Mobile Ads SDK Developers
hi

I don't think MyService needs to be explained, MyService works just to keep the process from of out the app.
MyService It's just a temporary code written for a test, and it won't be used in a real project.
After cross-out the App and the process is not killed, the admob app open ads AD exception is the real concern.
If I send you the demo project crashed, please fix it, guarantee to run, I think you will reproduce what I call the AD display exception

thanks

哈哈不想哈哈

unread,
Sep 30, 2024, 5:39:39 AMSep 30
to Google Mobile Ads SDK Developers
hi,
I wonder how the progress of this problem fix is going

I think it may not be a fixed operation steps to appear, if the current phone is in a low memory state, will it also appear?

Can you handle the state where Webview is unavailable for Admob App Open Ads? Or provide a callback to tell the developer that the current AD is not available?

Or can you tell me where to detect whether the AD webview is available?

thanks

Duy Hung

unread,
Sep 30, 2024, 5:39:44 AMSep 30
to Google Mobile Ads SDK Developers
Hello,

I also encountered this bug. It relates to foreground service on some device like Xiaomi as I tested.
When you close and remove the app (with foreground service) from recent apps then open it back, all pre-cached interstitial ads, app open ads and rewarded ads will be error like transparent or black.
Another thing is that the first ad load request after returning from background will always return with code 2: Network error even with a good internet connection.

Regards.

哈哈不想哈哈

unread,
Sep 30, 2024, 5:39:59 AMSep 30
to Google Mobile Ads SDK Developers
hi,
I want to know how far this is going
thanks
在2024年9月26日星期四 UTC+8 22:59:02<哈哈不想哈哈> 写道:

Mobile Ads SDK Forum Advisor

unread,
Sep 30, 2024, 11:43:30 AMSep 30
to hubin...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for sharing the requested details.

We are able to reproduce the issue with the details you have provided and we will raise this concern to the wider team and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.

哈哈不想哈哈

unread,
Oct 8, 2024, 5:12:25 AMOct 8
to Google Mobile Ads SDK Developers
hi,
I have had problems consistent with yours.
But if I get a new AD again, my ad is normal, and there will be no problem.

Duy Hung

unread,
Oct 11, 2024, 3:51:24 AMOct 11
to Google Mobile Ads SDK Developers
Hi,

What device are you testing on? If you're testing on Chinese device like Xiaomi in my case, you might need to do some workaround like preload an ads to remove that network error

Reply all
Reply to author
Forward
0 new messages