Video Tutorial
First Come to that marked section
Then go to this link
Copy this code
implementation 'com.google.android.gms:play-services-ads:17.2.0'
and paste it to this section
after that,go to here marked section
and check if it is in the same state.
allprojects {
repositories {
google()
jcenter()
}
}
now come to "xml" section
write this code
now come to menifest section
write this extra code.
now come to java file
write this extra code .there will be error,red underlined some words,u will click on those word ,select that than ,from key board press "Atl+Enter" then select 'import class'
MobileAds.initialize(this,
"ca-app-pub-3940256099942544~3347511713[this is your app id]");
mAdView = findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
now its done..!!!
run it to external android device