How to add AdMob to Android app
Issue #431
Use AdMob with Firebase
build.gradle
1 | buildscript { |
app/build.gradle
1 | class Version { |
Manifest.xml
1 | <manifest> |
MyApplication.kt
1 | class MyApplication: Application() { |
AdView
fragment.xml
1 | <com.google.android.gms.ads.AdView |
Fragment.kt
1 | import com.google.android.gms.ads.AdRequest |
Troubleshooting
Link your app to Firebase option not showing
- https://support.google.com/admob/answer/6383165?authuser=0
- Use standalone AdMob https://developers.google.com/admob/android/quick-start
app/build.gradle
1 | dependencies { |
Cannot fit requested classes in a single dex file
app/build.gradle
1 |
|