There are a lot of moving pieces here.
-
Please don’t do any ad operations in scene:create(). Please defer them until the scene is on the screen in scene:show()'s “did” phase.
-
Please put code at the top of your adListener() function to print the contents of the event table. You can google around/search for Lua table printing functions. Then you need to tether your test device to your computer and watch the console log to see what the ad service is telling you. Without doing this, you’re just going to frustrate yourself and spend time guessing on solutions.
-
Ad initialization takes time. It happens in the background and you cannot make any other ad calls until initialization is complete. When you go to your scene and are calling appodeal.show() you’re likely calling it before initialization is complete. You need to do more work in your adListener function to set up a way to let the rest of your code that the plugin is done initializing and you can safely call other functions.
Rob