Timeout for Custom Network (Android SDK)



I’ve created a new Custom Native Network (Android SDK) following the steps on the documentation:

  • Create a CustomEventInterstitial subclass
  • Implement my code to try to load an ad
  • Set up the network on the UI, linked to this class I’ve created

My question is: when te ad request executes my class, is there any timeout by default? I mean, will Mopub wait for a given period of time for my class to serve the ad, and if it doesn’t, it goes to the next network on the waterfall?

From what I’ve seen so far, looks like I have to define the events that make Mopub go to the next network (a call to onInterstitialFailed(ERROR TYPE).



Hello Vanderflo,

Step 4 for Banners and Step 5 for Interstitials, under Quick Start for Banners/Interstitials in this documentation explains that you have to call the method onBannerFailed(MoPubErrorCode) or onInterstitialFailed(MoPubErrorCode) respectively:

MoPubErrorCode.java can be found here:

Let me know if you have any questions or need any clarification.