dependencies {
implementation 'com.google.android.gms:play-services-ads:19.1.0'
}
AdView adView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
通过这些步骤,您应该能够成功将AdMob集成到您的Android应用程序中。