【问题标题】:How to load ADInterstitialAd only when required in iOS?如何仅在 iOS 需要时加载 GADInterstitialAd?
【发布时间】:2014-04-07 06:45:33
【问题描述】:

我想在我的 iOS 应用程序中以指定的时间间隔显示插页式广告。 另外,我不想打扰用户交互。我想在用户尝试从屏幕导航/其他操作时显示此插页式广告。

但是,我在 iOS 中看不到任何可以在需要时加载 InterstitialAd 的方法/调用。 此外,[interstitialAdObj presentFromViewController] 在 iOS 7 中也已弃用。

我的问题是,仅在需要时显示/展示插页式广告的另一种方式是什么?

【问题讨论】:

    标签: ios ios7 xcode5 iad interstitial


    【解决方案1】:

    这个在 iOS 7 中对我有用。在 ADInterstitialAdDelegate 中找到

    -(BOOL)presentInView:(UIView *)containerView;
    

    还有

    -(BOOL)requestInterstitialAdPresentation NS_AVAILABLE_IOS(7_0);
    

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-30
      • 2014-10-31
      • 2020-09-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多