September 2019
Beginner
512 pages
12h 52m
English
Like for previous FlutterFire plugins, we need to add the dependency for AdMob to our pubspec.yaml, as follows:
dependencies: firebase_admob: ^0.8.0+4 # AdMob
After getting dependencies with flutter packages get, we are ready to use Firebase AdMob in our project.
The FirebaseAdMob class is our starting point to add banners to the application. Unlike previously seen Firebase plugins that get all the information needed to run from the google-services.json (Android) and GoogleService-info.plist (iOS) files, in this case, we need an additional setting before we can use the plugin effectively.
We need to manually initialize the plugin with our application IDs. This can be done at any point. In our Favors app, for example, we ...
Read now
Unlock full access