Implement admob open ads in your android app.
To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
Add it in your root app. gradle at the end of repositories:
dependencies {
...
implementation 'com.google.android.gms:play-services-ads:22.2.0'
implementation 'com.github.rehmankhan8360:admobAppOpenAd:version'
...
}
Simple use cases will look something like this:
Step 1. Create a class like MyApplication.class
AppOpenAdManager(context, "ADMOB_OPEN_ADS_ID");
Step 2. Update menifest
<application
name=".MyApplication"
...
>
<!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
</application>