When integrating SponsorPay/Fyber Interstitial Ads, how can I check when the ad is available? They provided this sample code:
- (void)interstitialClient:(SPInterstitialClient *)client
canShowInterstitial:(BOOL)canShowInterstitial
{
// Assuming that this is a subclass of UIViewController
// and that we want to show an interstitial immediately
if (canShowInterstitial) {
[client showInterstitialFromViewController:self];
} else {
// maybe try later
}
}
But canShowInterstitial
returns always NO
, so I need to call checkInterstitialAvailable
again and again until the ad is cached successfully.. I think this is troublesome, also many ads could be cached finally leading memory issue.. any better ways?