@naveen_pcs, I’m not doing inmobi, but I init more than one adnetwork (such as vungle, iads, admob, etc.) by init’ing one after the other. When I show an ad, I call ads:setCurrentProvider API. See below.
Naomi
[lua]
local ads = require( “ads” )
local adNetwork
local appID
local adListener
appID = “vungleapidhere”
ads.init( “vungle”, appID, adListener )
appID = “iadsappidhere”
ads.init( “iads”, appID, adListener )
appID = “admobappidhere”
ads.init( “admob”, appID, adListener )
adNetwork = “vungle” – This will display vungle ad. Change it to “iads”, “admob”, etc. as needed
ads:setCurrentProvider(adNetwork)
– then call ads.show API
[/lua]