Closed tapizquent closed 3 years ago
Hi @tapizquent Can you please try official example and make sure to include app id setup
Running official example i can print Test Device IDs in the console using firebase_admob: ^0.9.3+2
I/Ads ( 4871): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("<remove test id>") to get test ads on this device.
I was able to get it to work.
I believe some key steps are missing from the documentation on the package page.
Before making it work, I had to do a couple stuff.
1 - Link Firebase Project to AdMob and had to re-download the GoogleService-Info.plist.
2 - Go into settings in my iPhone and disable Limit Ad Tracking.
Once all this was done, I had to actually click on an ad, and then it actually printed the a ID.
I believe all this should be better explained in the docs.
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.
Describe the bug While trying to set AdMob along with my own AdUnits, I realized the device IDs are not printed to the console as the documentation says.
To Reproduce Steps to reproduce the behavior:
firebase_admob
package explainsExpected behavior The console should print the device's test ID as the documentation explains.
Additional context I have tried building the app in Xcode, and not on VS Code as I usually build my apps, but no device test id there either.
Flutter doctor Run
flutter doctor
and paste the output below: