AD's error

I got a problem during trying to show Appodeal interstitial ad

the initialization code

adProvider = "appodeal" function adListener( event ) print("asd") local msg = event.response -- Quick debug message regarding the response from the library print( "Message from the ads library: ", msg ) if ( event.isError ) then print( "Error, no ad received", msg ) else print( "Ah ha! Got one!" ) end end ads.init( adListener, {appId = "518e7293d9d79e23140de4f8a3eedf70c05b5a7ec5c4921c"})

and code when i try to launch AD in other scene

ads.show("interstitial") 

It would happen in 1st scene but there floats the error

https://docs.coronalabs.com/plugin/appodeal/init.html

The parameter name for appodeal.init() is appKey (not appId).

Also I see that you are using the ads.* CoronaProvider style of listener. That doesn’t work well with our more modern monetization plugins like Appodeal. You should use a separate listener for non ads.* listeners. As an example you cannot assume that if isError=false that an ad has been loaded. You should look for the “loaded” phase.

Event properties for Appdeal documented here:

https://docs.coronalabs.com/plugin/appodeal/event/adsRequest/index.html

https://docs.coronalabs.com/plugin/appodeal/init.html

The parameter name for appodeal.init() is appKey (not appId).

Also I see that you are using the ads.* CoronaProvider style of listener. That doesn’t work well with our more modern monetization plugins like Appodeal. You should use a separate listener for non ads.* listeners. As an example you cannot assume that if isError=false that an ad has been loaded. You should look for the “loaded” phase.

Event properties for Appdeal documented here:

https://docs.coronalabs.com/plugin/appodeal/event/adsRequest/index.html