Here is a checklist to help you find an potential problem you could encounter while implementing Interstitial Ads your application.

Before contacting us, please check each point so we can help you more quickly in your debugging process.

  1. General troubleshooting
  2. Is there a modal ad to display?
  3. What if requesting a modal doesn’t work?

1. Is there a modal ad to display?

When you are sure ads are correctly loaded (see General troubleshooting), you can check if there is any modal ad available.
You have two ways to know it.

The first one is pretty simple and can be done whenever you want. Make sure your ZONE_ID is valid.

if ([AppsfireAdSDK isThereAModalAdAvailableForType:AFAdSDKModalTypeUraMaki forZone:@"ZONE_ID"] == AFAdSDKAdAvailabilityYes) {

    NSLog(@"A Modal Ad is Available");

}

The second one it to use the delegate method. It will let you know when ads are loaded and when there is a modal ad available. We recommend you to use it for an ideal implementation.

- (void)modalAdsRefreshedAndAvailable {

    NSLog(@"A Modal Ad is Available");

}

Why no modal ad is available?

  • Ads aren’t loaded from the web service.
  • You're no longer in debug mode, and there is no ad to display at that time in your country

If you're not seeing your app because of the second reason, be sure to toggle “debug mode”, which will display an app whatever the conditions. Just make sure to disable “debug mode” before submitting your app to Apple! And know that it is perfectly normal if you've turned off "debug mode" in preparation for submission to Apple and are not seeing ads. You'll see it once we do have a campaign in your geography.

2. What if requesting a modal doesn’t work?

First be sure to implement the delegate method that alerts you when a modal failed to display. It may give you a clue! Check the method -modalAdRequestDidFailWithError:

If you verified that a modal ad is available, but nothing happens when you request it, then it’s probably a problem with the UIViewController parameter that you are sending. By default our example uses the following controller: [UIApplication sharedApplication].keyWindow.rootViewController which is the main controller given to the window in the app initialization. But depending on the age of your application (i.e., the Xcode version in which it was created), or even its architecture, this may not be the best choice.

In summary, verify that the controller is appropriate. How? Try to present an empty controller to see if something happens on the screen. If not, then it’s definitely not the right one.