Install DFP SDK

Detailed instructions on how to install the DFP Android SDK can be found in the DFP documentation page. However for the sake of simplicity you can use the following code snippets:

On the project level build.gradle file, add the Google maven url into the repositories section. If you already have the google() repository added you can skip this initial step.

allprojects {
    repositories {
        // .. your other repositories ..
        maven {
            url "https://maven.google.com"
        }
    }
}

Import the DFP Android SDK using the following line in your module level build.gradle file.

compile 'com.google.android.gms:play-services-ads:19.2.0'

Return to the main page