googleads / googleads-mobile-flutter

A Flutter plugin for the Google Mobile Ads SDK
Apache License 2.0
339 stars 280 forks source link

[Native Template] Ad disappears #991

Closed brazhenko closed 3 weeks ago

brazhenko commented 8 months ago

Face an issue that was reported some time ago (https://github.com/googleads/googleads-mobile-flutter/issues/545). Got no response there, so I'm reopening it.

here is my code (not a minimal example). https://pastebin.com/4JUbVCAm Some notes:

  1. I face it only on one of all my devices (including emulators): samsung galaxy s22 ultra
  2. The add is still clickable after it 'disappeared'
  3. I use admob v4.0.0

Video: https://github.com/googleads/googleads-mobile-flutter/assets/36923200/a5e56cb0-aba7-45af-b075-3d4b988b46a5

malandr2 commented 8 months ago

Hi @brazhenko, are you able to consistently reproduce this on that one device? Are reproduce on other Android devices? If so, that would be helpful to replicate the issue. Thanks!

Fwiw looking at your code we don't recommend making ad requests in didChangeDependencies() as that system method can be called multiple times, leading to excessive load calls.

brazhenko commented 8 months ago

@malandr2

are you able to consistently reproduce this on that one device?

Yes.

Are reproduce on other Android devices?

No

malandr2 commented 8 months ago

@brazhenko Thanks, I'll try and replicate using the samsung s22 ultra. Can you share what API level your device is?

brazhenko commented 8 months ago

@malandr2 Android 14, Level 34

pakivika commented 8 months ago

Same behaviour with Samsung Galaxy A52s. Ad disappears from view after the app is backgrounded and then foregrounded again. Invisible widget (AdWidget) keeps on responding to tap after the app is foregrounded.

Problem is 100% reproducable on

Ads work fine and problem cannot be reproduced on

malandr2 commented 8 months ago

Thanks for sharing @pakivika, I have relayed that information to the team for further debugging

wojciechaugustynowicz commented 2 months ago

Hello everyone,

I'm facing the same issue with Admob banner mediation on three different devices:

Android 14 Samsung S21 Galaxy Android 14 Samsung Galaxy Flip Xiaomi Redmi Here's what's happening:

On the Samsung Galaxy devices, the banner ad disappears after a few minutes when I return to the main screen from the background. On the Xiaomi Redmi, the banner ad doesn't display at all from the start. By "not displayed," I mean that only a white rectangle is visible where the banner ad should be. However, the rectangle is clickable, so each time I tap on the white space, it opens the advertiser's link.

Has anyone else experienced this or found a solution?

how_to_draw_anime_app

Thank you!

malandr2 commented 2 months ago

Hi @wojciechaugustynowicz, your issue is more related to ad serving, which the google mobile ads Flutter plugin doesn't control. You can start a thread in the AdMob Developers forum for your issue to be properly triaged. Thanks!

Namr547 commented 1 month ago

I am facing the same issue on the OnePlus 8T, Android 14, API 34 when the app starts I display the Ad on the Home Screen and that is working well but when I navigate to the other page where I place the Ad that one is making problems Sometimes it shows, and sometimes it does not. However, the Ad is clickable, so each time I tap on the white space, it opens the advertiser's link.

Here you can see the SS 1 2

malandr2 commented 1 month ago

Hi @Namr547, is this always reproducible? If so, can you provide a minimal reproducible sample so I can take a closer look?

malandr2 commented 3 weeks ago

Closing this ticket out and merging with https://github.com/googleads/googleads-mobile-flutter/issues/1171. For updates, please follow. Marking this ticket as duplicate