Hi, Gooogle Admob recently launched App Open Ads Ad Type with beta version. This ad will show when user open your app. it is like splash screen ad. but this is official ad. so chances of policy violation is less. For this ad, you can use interstitial ad unit id. Follow the below steps for integration app open ads into your android project. Step 1, integrate admob library and android lifecycle library in app/build.gradle file. implementation 'com.google.android.gms:play-services-ads:19.4.0' def lifecycle_version = "2.0.0" implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version" annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version" Step 2, after integrate admob library and andorid lifecycle library. create MyApplication.java class in default package where your mainacitvity. Here is the source code
Comments
Post a Comment