«Межстраничная реклама» является абстрактной; невозможно создать экземпляр (Admob SDK обновлен с версии 19 до версии 20) ⇐ Android
«Межстраничная реклама» является абстрактной; невозможно создать экземпляр (Admob SDK обновлен с версии 19 до версии 20)
I have updated Admob SDK to v20, Now I am facing errors in my code: "
mInterstitialAd = new InterstitialAd(this); mInterstitialAd.setAdUnitId(RemoteConfigUtils.getInterstitialAdId());
if (!RemoteConfigUtils.isHideInterstitialAd()) { mInterstitialAd.loadAd(new AdRequest.Builder().build()); } mInterstitialAd.setAdListener(new AdListener() { @Override public void onAdLoaded() { // Code to be executed when an ad finishes loading. mInterstitialAd.show(); } @Override public void onAdFailedToLoad(int errorCode) { // Code to be executed when an ad request fails. } @Override public void onAdOpened() { // Code to be executed when the ad is displayed. } @Override public void onAdClicked() { // Code to be executed when the user clicks on an ad. } @Override public void onAdLeftApplication() { // Code to be executed when the user has left the app. } @Override public void onAdClosed() { // Code to be executed when the interstitial ad is closed. } });" [Errors in my codes][1]
Источник: https://stackoverflow.com/questions/779 ... d-v19-to-v
I have updated Admob SDK to v20, Now I am facing errors in my code: "
mInterstitialAd = new InterstitialAd(this); mInterstitialAd.setAdUnitId(RemoteConfigUtils.getInterstitialAdId());
if (!RemoteConfigUtils.isHideInterstitialAd()) { mInterstitialAd.loadAd(new AdRequest.Builder().build()); } mInterstitialAd.setAdListener(new AdListener() { @Override public void onAdLoaded() { // Code to be executed when an ad finishes loading. mInterstitialAd.show(); } @Override public void onAdFailedToLoad(int errorCode) { // Code to be executed when an ad request fails. } @Override public void onAdOpened() { // Code to be executed when the ad is displayed. } @Override public void onAdClicked() { // Code to be executed when the user clicks on an ad. } @Override public void onAdLeftApplication() { // Code to be executed when the user has left the app. } @Override public void onAdClosed() { // Code to be executed when the interstitial ad is closed. } });" [Errors in my codes][1]
Источник: https://stackoverflow.com/questions/779 ... d-v19-to-v
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение