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.