Multiple Ads: vungle, iAds, admob. if Vungle ad fails, it does not call the next one.

Hi, I have just integrated ads into my app using 3 ad networks: vungle, iAds, admob. I followed this turorial:

http://coronalabs.com/blog/2013/11/19/tutorial-using-multiple-ad-networks/

My order of ads is vungle, if fails then show iAds, then admob. 

But when vungle video ad failed to show, iAds did not show . I think the logic in the vungle listener has a problem

local function vungleListener( event )    -- Video ad not yet downloaded and available    if ( event.type == "adStart" and event.isError ) then       if ( system.getInfo("platformName") == "Android" ) then          ads:setCurrentProvider( "admob" )       else          ads:setCurrentProvider( "iAds" )       end       ads.show( "interstitial" )    elseif ( event.type == "adEnd" ) then       -- Ad was successfully shown and ended; hide the overlay so the app can resume.       storyboard.hideOverlay()    else       print( "Received event", event.type )    end    return true end

 if  event.isError is true (vungle ad fails to show), that means it will call to show iAd ( in this case iAd successfully showed in my app). But if event.isError is false, that does not mean vungle ad will certainly show (maybe it is caching but not ready to show), in this case, iAd will not be called either. Do you guys have any suggestion to fix this? Thanks.

I use this to see if an ad is already cached or not:

if ads.isAdAvailable() then ads.show( "incentivized", { isBackButtonEnabled = false, isCloseShown = false } ) else --try another provider end

That way I don’t even have to wait for the callback to occur.

I use this to see if an ad is already cached or not:

if ads.isAdAvailable() then ads.show( "incentivized", { isBackButtonEnabled = false, isCloseShown = false } ) else --try another provider end

That way I don’t even have to wait for the callback to occur.