- Add This Library To Your Project
- This Library Works
Refer to the following page for the latest version : Jitpack Page
dependencies {
implementation(com.github.alitafreshi:why-google-advertisement:$advertisementVersion)
}
In projects that we have admob advertisement we should add the admob dependency individualy like below :
dependencies {
"playstoreImplementation"(com.google.android.gms:play-services-ads:$admobAdVersion)
}
Important Note: Don't Forget To Init AdvertisementCore,AdiveryAdvertisementKey,AdmobAdvertisementKey and ApplicationAdvertisementType Like Below In Application Class :
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
AdvertisementCore.init(application = this)
AdiveryAdvertisementKey.init(this)
AdmobAdvertisementKey.init(this)
ApplicationAdvertisementType.init(this)
}