question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App open ads loaded but not showing on iOS and Android

See original GitHub issue

Steps to Reproduce

  1. Clone the googleads-mobile-flutter repo.
  2. Run the app_open_ads app in the packages folder.
  3. Close the app completely then relaunch it.

Expected results: See an app open ad

Actual results: No app open ad appears

https://user-images.githubusercontent.com/29833473/156906364-56bb7ebb-fef7-4f1e-aaa7-f4246f072f16.mp4

Logs:

Running Gradle task 'assembleRelease'...                           12.0s
✓  Built build/app/outputs/flutter-apk/app-release.apk (7.5MB).
Installing build/app/outputs/flutter-apk/app.apk...                 3.6s

Flutter run key commands.
h List all available interactive commands.
c Clear the screen
q Quit (terminate the application on the device).
W/FlutterActivityAndFragmentDelegate(31500): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter (31500): Instance of 'AppOpenAd' loaded
I/flutter (31500): New AppState state: AppState.background
W/FlutterActivityAndFragmentDelegate( 3095): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter ( 3095): Instance of 'AppOpenAd' loaded
I/flutter ( 3095): New AppState state: AppState.background
W/FlutterActivityAndFragmentDelegate( 3425): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter ( 3425): Instance of 'AppOpenAd' loaded
I/flutter ( 3425): New AppState state: AppState.background
W/FlutterActivityAndFragmentDelegate( 3508): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter ( 3508): Instance of 'AppOpenAd' loaded
I/flutter ( 3508): New AppState state: AppState.background
I/flutter ( 3508): New AppState state: AppState.foreground
I/flutter ( 3508): Instance of 'AppOpenAd' onAdShowedFullScreenContent
I/flutter ( 3508): New AppState state: AppState.background
W/FlutterActivityAndFragmentDelegate( 4535): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter ( 4535): Instance of 'AppOpenAd' loaded
I/flutter ( 4535): New AppState state: AppState.background
W/FlutterActivityAndFragmentDelegate( 4991): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter ( 4991): Instance of 'AppOpenAd' loaded
I/flutter ( 4991): New AppState state: AppState.background
W/FlutterActivityAndFragmentDelegate( 5297): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
I/flutter ( 5297): Instance of 'AppOpenAd' loaded
I/flutter ( 5297): New AppState state: AppState.background

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
HuyNguyen1590commented, Jun 6, 2022

I actually modified the code. If the ad loads before the loading completes, it is shown, otherwise no. It’s just strage that “Open App Ads” have an example that’s not really an App Open one, but an App “back to foreground” one!

i have the same issue. Can you please share your code?

1reaction
Tetracylcommented, Apr 4, 2022

I’m facing the same issue, and I almost copypasted the example code…

I discovered, btw, that if you move your app in background and then move it forward again, the Ad is showing. I think the AppLifecycleReactor only reacts on change of the app state, so, since while opening the status remains the same, the method showAdIfAvailable is not triggered.

You need to load the ad before the app starts if it opens via a cold start: https://developers.google.com/admob/flutter/app-open#cold_starts_and_loading_screens

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common reasons for ads not showing - Google AdMob Help
Use the following guide to understand common reasons why apps show few or no ads. If you're still having issues, use the Can't...
Read more >
AdMob Ad not showing up after publish - Apple Developer
AdMob Ad not showing up after publish. Hello, I have some issues with my application. When I test my apps on emulator Ads...
Read more >
App Open Ads | Android - Google Developers
App open ads can be closed at any time, and are designed to be shown when your users ... Do not load ad...
Read more >
Google AdMob App Open Ad shows "Open app Flood"
If your app is not live on App store, it will show this. If app is live, your app name and icon will...
Read more >
App Open Ads API - MAX Mediation Documentation
When an app open ad is not loaded (i.e. on cold start), load all other ad formats later to avoid parallel loading with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found