【问题标题】:requestInterstitialAdPresentation Works only one TimerequestInterstitialAdPresentation 只能使用一次
【发布时间】:2015-09-15 12:58:22
【问题描述】:

我想知道为什么 [self requestInterstitialAdPresentation]; 只工作一次。我的意思是我将此调用绑定到 UIButton,第一次运行我的应用程序并单击此按钮时,广告会正确显示,但是当我关闭广告并尝试再次调用另一个广告时,尽管 nslog 表示该功能,但广告不会出现被称为。在启动应用程序时,我预加载了广告 [UIViewController prepareInterstitialAds];

【问题讨论】:

  • 可能是因为在沙箱中测试iad?那应该不会发生在 live iad 网络上吗?
  • 在我的应用请求中,点击横幅视图后,InterstitialAdPresentation 再次正常工作
  • @Stefan 我和你看到的一样。等待大约 2 分钟或触摸横幅。

标签: ios objective-c cocoa-touch iad


【解决方案1】:

我刚刚遇到了这个问题,似乎有时间阻止人们在每隔一段时间就向用户发送广告垃圾邮件。

我不知道它是否会有所不同,但我自己尝试了一下,超时时间大约是 2 分钟。

【讨论】:

    【解决方案2】:

    试试这个:

    呈现策略决定呈现的时间是完全由框架管理还是​​应该只在应用程序调用时发生 -requestInterstitialAdPresentation。默认情况下,策略是“无”,因此 能够呈现插页式广告,必须将其更改为“自动”或“手动”。

    @property (nonatomic, assign) ADInterstitialPresentationPolicy interstitialPresentationPolicy NS_AVAILABLE_IOS(7_0);
    

    类似:

    self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;
    

    您可能需要导入 iAd/UIViewControlleriAdAdditions.h

    【讨论】:

      猜你喜欢
      • 2015-04-19
      • 2020-04-04
      • 1970-01-01
      • 1970-01-01
      • 2014-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多