Using Multiple Ad Networks

I want to add multiply ad networks

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

but , I have a questions about this.

If you use this method for banner ads, be aware that some banner’s will update after a number of seconds, even a failed call will try again. It might be wise to call ads.hide() before changing providers to stop the first provider from trying to show an ad over top of another vendor.

Where Do I have to place  ads.hide().?

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

local function iAdsListener( event )
if ( event.isError ) then
storyboard.showOverlay( “selfpromo” )

ads.hide().--------------------------------------------------------->><DO I have to place in this place?
end
return true
end

local function adMobListener( event )
if ( event.isError ) then
storyboard.showOverlay( “selfpromo” )
end
return true
end

 

I would call it before I called the next ad.show()

I would call it before I called the next ad.show()