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.github.samyak2403:Admob-Open-Ads:1.0.samu'
...
}
Simple use cases will look something like this:
Step 1. Create a class like MyApplication.class
package arrowwould.in.admobopenads;
import android.app.Application;
import com.google.android.gms.ads.MobileAds;
import arrowwould.in.admobopenads.AppOpenManager;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
MobileAds.initialize(this);
new AppOpenManager(this, "ca-app-pub-3940256099942544/9257395921");
}
}
Step 2. Update menifest
<application
name=".MyApplication"
...
>