【问题标题】:How to implement an action after the closure of an interstitial?插页式广告关闭后如何执行操作?
【发布时间】:2018-12-07 02:54:37
【问题描述】:

当用户关闭插页式广告时,我会执行一个操作,如果插页式广告已关闭,我会执行什么语法来执行这样的操作?

谢谢!

【问题讨论】:

    标签: java android admob interstitial


    【解决方案1】:

    您可以设置一个AdListener,它提供了各种回调方法,如onAdFailedToLoadonAdLoadedonAdClosed等。只需覆盖方法onAdClosed,其中的代码将在广告关闭后执行.

    interstitialAd.setAdListener(new AdListener() {
        @Override
        public void onAdClosed() {
            // do your required action.
        }
    
        // override other methods if required.
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-25
      • 1970-01-01
      • 2018-03-05
      相关资源
      最近更新 更多