Add the SDK through Gradle
The simplest way of adding the Android Publisher SDK to your Android Studio project is to download the AAR library through Gradle.
The first step is to include the following Maven repository in your module’s build.gradle file (usually the file under MyApplication/app/):
Next you can to add the SDK as a dependency. This will contain everything you need in order to load and display banner, interstitial and video ads.
WarningPlease remember to also add Google Play Services and an App Compat library. These are needed for correct viewability metrics.
Once you’ve added the Android Publisher SDK, you can access all functionality by including: