firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.68k stars 3.97k forks source link

[admob] Failed load code #2830

Closed peterweb2005 closed 3 years ago

peterweb2005 commented 4 years ago

Is your feature request related to a problem? Please describe. "failed load" can be many reasons, if code 3 (no content), app may ignore but if other reasons, app may retry

Describe the solution you'd like "call back function" return the code if failed load

TahaTesser commented 4 years ago

Hi @peterweb2005 Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample Thank you

peterweb2005 commented 4 years ago

sorry, no,

it is a featured request, i want to know the failed reason by the code

https://developers.google.com/android/reference/com/google/android/gms/ads/AdRequest

public static final int ERROR_CODE_INTERNAL_ERROR public static final int ERROR_CODE_INVALID_REQUEST public static final int ERROR_CODE_NETWORK_ERROR public static final int ERROR_CODE_NO_FILL

russellwheatley commented 3 years ago

The firebase_admob plugin will be deprecated in April 2021 in favor of Google Mobile Ads SDK for Flutter. Google Mobile Ads SDK for Flutter is a new Flutter plugin that supports more Ads formats than firebase_admob does. Google Mobile Ads SDK for Flutter currently supports loading and displaying banner, interstitial (full-screen), native ads, and rewarded video ads across AdMob and AdManager. It also supports displaying banner and native ads as Widgets as opposed to being overlayed over all app content. We're now recommending projects currently using firebase_admob migrate to Google Mobile Ads SDK for Flutter following the instructions outlined here. Issues with migrating or with using the new package should now be raised over on the Google Mobile Ads SDK for Flutter repository.