requestInterstitialAdPresentation Works only one Time

前端 未结 2 1914
眼角桃花
眼角桃花 2021-01-13 13:04

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

相关标签:
2条回答
  • 2021-01-13 13:47

    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.

    0 讨论(0)
  • 2021-01-13 13:50

    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

    0 讨论(0)
提交回复
热议问题