我已经根据https://developers.google.com/mobile-ads-sdk/docs/admob/advanced编写了将插页式广告从 admob 添加到我的应用程序菜单活动的代码。我也在 Manifest 中添加了 PERMISSIONS 和 configchanges。我在下面提到的行中遇到错误:
`
interstitial = new InterstitialAd(this); // Error: The constructor InterstitialAd(MenuActivity) is undefined
interstitial.setAdUnitId("lajdID"); // Error: The method setAdUnitId(String) is undefined for the type InterstitialAd
// Create ad request.
AdRequest adRequest = new AdRequest.Builder().build(); //AdRequest.Builder cannot be resolved to a type
// Begin loading your interstitial.
interstitial.loadAd(adRequest);
`