requestInterstitialAdPresentation Works only one Time

和自甴很熟 提交于 2019-12-01 06:55:12

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.

inigo333

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

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