Thank you all for the help so far.
@Karina, do you have an email so I can ask you more questions about how to setup appodeal?
@Rob and @karpovpw, please see below.
I have tried building again and keep running into issues. With the disableAutoCacheForAdTypes parameter commented out, I still get an error when trying to load a live interstitial. Even though the listener function shows that an interstitial has been cached, when I check if it is loaded it returns false, then when trying to load the interstitial again I get the error I stated above.
02-09 12:13:18.802 8564 8612 I Corona : appodeal listener
02-09 12:13:18.802 8564 8612 I Corona : type = interstitial
02-09 12:13:18.802 8564 8612 I Corona : isError = false
02-09 12:13:18.802 8564 8612 I Corona : phase = loaded
02-09 12:13:18.802 8564 8612 I Corona : provider = appodeal
02-09 12:13:18.802 8564 8612 I Corona : name = adsRequest
02-09 12:13:18.802 8564 8612 I Corona : appodeal cached interstitial
02-09 12:13:31.251 8564 8612 I Corona : appodeal interstitial is not available…attempting to load
ERROR: appodeal.load(adUnitType [, options]), Request ignored. You didn’t specify ‘interstitial’ in supportedAdTypes during init()
Loading and displaying a live rewardedVideo seems to work fine however.
With the disableAutoCacheForAdTypes parameter enabled, nothing will load at all when calling appodeal.load. This is the code:
local function listener(event) print("appodeal listener") for k, v in pairs( event ) do print( "\t"..tostring(k).. " = ".. tostring(v) ) end if event.isError == true then print("appodeal error") elseif event.phase == "init" then appodeal.load("interstitial") appodeal.load("rewardedVideo") elseif event.phase == "loaded" then print("appodeal cached", event.type) elseif event.phase == "playbackEnded" then if event.type == "rewardedVideo" then print("appodeal give reward") end elseif event.phase == "closed" then print("appodeal closed") end end appodeal.init( listener, { appKey="xxxxxxx", -- testMode=true, disableAutoCacheForAdTypes={"interstitial", "rewardedVideo"}, childDirectedTreatment=true, disableAutoCacheForAdTypes={"banner"}, disableWriteExternalPermissionCheck=true, supportedAdTypes={"interstitial", "rewardedVideo"} } )
When trying to load the ads in the init phase in the listener, I get this error:
02-09 13:18:06.921 27958 29809 I Corona : appodeal listener 02-09 13:18:06.921 27958 29809 I Corona : phase = init 02-09 13:18:06.921 27958 29809 I Corona : provider = appodeal 02-09 13:18:06.921 27958 29809 I Corona : name = adsRequest 02-09 13:18:06.921 27958 29809 I Corona : isError = false 02-09 13:18:06.921 27958 29809 I Corona : ERROR: appodeal.load(adUnitType [, options]), Request ignored. You didn't specify 'interstitial' in supportedAdTypes during init() 02-09 13:18:06.922 27958 29809 I Corona : ERROR: appodeal.load(adUnitType [, options]), Request ignored. You didn't specify 'rewardedVideo' in supportedAdTypes during init()