RequestInterstitialAdPresentation Works only once

I wonder why it [self requestInterstitialAdPresentation];  works only once. I mean, I bound this call to UIButton. The first time I launch my application and click this button, the ad will appear correctly, but when I close the ad and try to call again for another ad, the ad just doesnโ€™t appear, although nslog said the function was called. When the application starts, I preload the ad with  [UIViewController prepareInterstitialAds];

+4
source share
2 answers

I just stumbled upon this, and it seems that there is time so that people do not spam users with advertisements after every other session.

I donโ€™t know if it can change, but I just tried this and the time was about 2 minutes.

+3
source

Try:

The presentation policy determines whether the time framework fully controls or should be executed only when the -requestInterstitialAdPresentation application is accessed. By default, the policy is "No", therefore it is able to present an interstitial value, it should be changed to "Automatic" or "Manual".

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

Sort of:

self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;

You may need to import iAd / UIViewControlleriAdAdditions.h

0
source

Source: https://habr.com/ru/post/1538325/


All Articles