Hi, i am just trying to use interstitial ad. It works fine in test mode. (global)
But it doesn’t work when i turned off the test mode. inmobi doesn’t load any ads without test mode.
Here are my codes:
placementID = "ad placement id" function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization -- Load a banner ad inMobi.load( "interstitial", placementID ) elseif ( event.phase == "loaded" ) then -- The ad was successfully loaded print( event.type ) print( event.placementId ) elseif ( event.phase == "failed" ) then -- The ad failed to load print( event.type ) print( event.placementId ) print( event.isError ) print( event.response ) end end -- Initialize the InMobi plugin inMobi.init( adListener, { accountId="my account id", logLevel="debug" } ) function show\_ads() --{ inMobi.load( "interstitial", placementID ) if (inMobi.isLoaded( placementID ) ) then --{ inMobi.show( placementID, { yAlign="top" } ) else print("The ad failed to load") end --} end --}
Android Device Monitor says(under inmobi tag): “failed to fetch ad for placement id xxxxxxxxxxxxx, reason phrase a valiable in onAdLoadFailed callback”
There is one more thing, i don’t know if it has meaning:
any idea? my account id is correct, my placement id is correct. am i missing something?
Edit:
i got new warning(from device monitor): “REQUEST_INVALID - please check the site status on inmobi dashboard or reach out to PartnerManager”