requestInterstitialAdPresentation Works only one Time

前端 未结 2 1920
眼角桃花
眼角桃花 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: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

提交回复
热议问题