requestInterstitialAdPresentation Works only one Time

我的未来我决定 提交于 2019-12-19 08:32:43

问题


I am wondering why [self requestInterstitialAdPresentation]; works only one time. I mean that I binded this call into UIButton, First time I run my app, and click this button the ad appear correctly but, when I close ad and trying to call again for another ad, simply ad do not appear though nslog said that function was called. On start app I preload ad with [UIViewController prepareInterstitialAds];


回答1:


I've just come across this and it seems there's a time out to stop people spamming users with adverts after every other segue.

I don't know if it can vary, but I've just tried it myself and the time out was roughly 2 minutes.




回答2:


Have a try at this:

The presentation policy determines whether the timing of presentation is entirely managed by the framework or should only take place when the application calls -requestInterstitialAdPresentation. By default the policy is "None", so to be able to present an interstitial it must be changed to either "Automatic" or "Manual".

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

Something like:

self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

You may need to import iAd/UIViewControlleriAdAdditions.h



来源:https://stackoverflow.com/questions/23338216/requestinterstitialadpresentation-works-only-one-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!