Firebase setting in Google Mobile Ads SDK in AdMob - Android studio
Everyone have question when user to generate a ads in AdMob. Why AdMob give me :
Before user might not need to set application-unit-id in onCreate() in java code, but now if you want use Firebase, you should use and set in java.
Google Teaching:
https://firebase.google.com/docs/admob/android/quick-start#project-level_buildgradle_excerpt
- ads-unit-id: e.g. ca-app-pub-3940256099942544/6300978111 ( a test)
- application-unit-id: e.g. ca-app-pub-xxxxxxxxxxxxxx~xxxxxxxxxx
Before user might not need to set application-unit-id in onCreate() in java code, but now if you want use Firebase, you should use and set in java.
Google Teaching:
https://firebase.google.com/docs/admob/android/quick-start#project-level_buildgradle_excerpt
留言
張貼留言