Applovin does not display ads or crushes the game

Hello, I am trying to use Applovin ads, I would like to show those ads in “gameover” scene.

I build the game for Android only, and I test it with two different devices. When “gameover” is shown, I don’t see any ads but the message “This game stopped”, and that’s the end.

If I add “plugin.google.play.services”, the game does not crush, but still cannot see ads.

 plugins = { ["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, },

I have created an account on Applovin website, I turn on “graphical insterstitials”, “video interstitials” and “playable ads”, but also tried to use only “graphical interstitials”.

Test ads - on, and I have played many times but did not see any ads.

In main class I have this code (I have implemented Appodeal ads in the same way, it was ok):

applovin = require( "plugin.applovin" ) local function adListener( event ) end -- Initialize the AppLovin plugin applovin.init( adListener, { sdkKey="EkQ9.....................", verboseLogging=false} )

In game over scene:

applovin.load("interstitial"); if applovin.isLoaded() then applovin.show("interstitial") end

Applovin support says: “The AppLovin adapter for Corona was created and is handled by Corona, and you should contact them for questions and technical issues”.

You should use Corona build 2017.3068 or later to get the latest Applovin plugin. You should also pre-load ads before you call your Game Over scene. Loading ads takes time and trying to do that in your Game Over scene is most likely the reason you see no ads. 

Keep in mind that if you are using Composer scenes, you must also call applovin.init() in your main.lua (not in any scene module).

As an example, when using Composer scenes you can move your applovin.load() call to the beginning of your scene’s “did” show.

Ok thanks, I have updated Corona SDK and I can see ads now, but I did not remove plugin.google.play.services.

When the game over is shown, first I see short video then full screen banner ad and that’s fine.

My code is this:

applovin.load("interstitial"); if applovin.isLoaded() then applovin.show("interstitial") end

Just one more question, how to load playable ads (mini-games) and can I use something like this to check if particular ad type is available, if not show another ad?

applovin.load("mini game"); -- dont know the keyword if applovin.isLoaded() then applovin.show("mini game") else applovin.load("interstitial"); applovin.show("interstitial"); end

There are only 2 ad types: “interstitial” and “rewardedVideo”. 

You control the categories to be used (playable etc) only through the Applovin dashboard. 

You should also remove “plugin.google.play.services” as it’s not needed anymore with the newer plugins (since build 2016.3005).

Ok, I understand now.

You should use Corona build 2017.3068 or later to get the latest Applovin plugin. You should also pre-load ads before you call your Game Over scene. Loading ads takes time and trying to do that in your Game Over scene is most likely the reason you see no ads. 

Keep in mind that if you are using Composer scenes, you must also call applovin.init() in your main.lua (not in any scene module).

As an example, when using Composer scenes you can move your applovin.load() call to the beginning of your scene’s “did” show.

Ok thanks, I have updated Corona SDK and I can see ads now, but I did not remove plugin.google.play.services.

When the game over is shown, first I see short video then full screen banner ad and that’s fine.

My code is this:

applovin.load("interstitial"); if applovin.isLoaded() then applovin.show("interstitial") end

Just one more question, how to load playable ads (mini-games) and can I use something like this to check if particular ad type is available, if not show another ad?

applovin.load("mini game"); -- dont know the keyword if applovin.isLoaded() then applovin.show("mini game") else applovin.load("interstitial"); applovin.show("interstitial"); end

There are only 2 ad types: “interstitial” and “rewardedVideo”. 

You control the categories to be used (playable etc) only through the Applovin dashboard. 

You should also remove “plugin.google.play.services” as it’s not needed anymore with the newer plugins (since build 2016.3005).

Ok, I understand now.