MoPub could not load ad: interstitial object received a non-interstitial ad unit ID

ios
swift

#1

Hi,

I am developing Swift iOS application using MoPub as a mediation solution. I have integrated MoPub, AdColony, ChartboostSDK, Google-Mobile-Ads-SDK, VungleSDK-iOS using CocoaPods with use_framework command and by adding those custom events files from AdNetworkSupport to my project.

The problem is, interstitial ad sometimes works but usually not. These are logs from the controller when it’s not working:

MOPUB: Interstitial controller is loading ad with MoPub server URL: {url to request}
MOPUB: Interstitial ad view is fetching ad network type:
MOPUB: Could not load ad: interstitial object received a non-interstitial ad unit ID.

I tried to check the value of self.configuration.adType from the line:
if (self.configuration.adType != MPAdTypeInterstitial)

And the result is:
self.configuration.adType == MPAdTypeUnknown

Could you help me which are known scenarios it could be? Because I am quite sure about that ad unit ad. I have also tried turning off every ad network except iAd, but the fail rate is the same.

Thank you for your help :smiley: