applovin.isLoaded() always returns false. Android.

I have been trying to integrate the applovin plugin but have the following issue.

1. applovin.isLoaded() always return false.

  1. If I wait for the call back for event.phase = “loaded” and then try to show the ad, i get this error:

WARNING: applovin.show() The Interstitial Ad has not finished loading yet

I am using build: 2016.2824

Targeting: Android.

And here is the complete settings document (although I don’t think it matters):

settings =

{

  plugins =

  { 

      [“plugin.applovin”] =

      {

          publisherId = “com.coronalabs”,

          supportedPlatforms = { iphone=true, android=true, osx=true, win32=true, appletvos=true }

      },

      [“plugin.google.play.services”] =

      {

          publisherId = “com.coronalabs”,

      },

      [“CoronaProvider.analytics.flurry”] =

      {

          publisherId = “com.coronalabs”,

      },

      [“plugin.fbAudienceNetwork”] =

      {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, android=true, osx=true, [“win32-sim”]=true }

      },

      [“CoronaProvider.ads.vungle”] =

      {

          publisherId = “com.vungle”,

      },

  },

orientation =

{

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

default = “landscapeLeft”,

supported = { “landscapeRight”, }

},

excludeFiles =

{

– Include only the necessary icon files on each platform

iphone = { “Icon-*dpi.png”, },

android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },

},

– iOS Section

iphone =

{

plist =

{

UIStatusBarHidden = false,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

CFBundleIconFiles =

{

“Icon.png”,

“Icon@2x.png”,

“Icon-167.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-60@3x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small@3x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

},

–[[

– iOS app URL schemes:

CFBundleURLTypes =

{

{

CFBundleURLSchemes =

{

“fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId

}

}

}

–]]

}

},

– Android Section

android =

{

usesPermissions =

{

“android.permission.INTERNET”,

},

},

}

Are there any messages in your console log?

None. I am logging all the events for applovin, but other than that I am not seeing anything.

  1. I get the event.phase = “init” without an error.

  2. I request load the ad after the init. applovin.load()

  3. I then get the event.phase = “loaded” again with no error.

The applovin console shows as my integration being successful. No impressions. 

Can you please give the the following info:

  1. Post up the relevent code you are using for init(), load() and isLoaded(). (in context preferably) Please use code tags when posting any code also.

  2. Take a screenshot of your applovin dashboard for the app in question (the android app in your portal). If you don’t want to post it here, please email it to me at: danny [at] coronalabs [dot] [com]

Thank you

Not sure what the issue was last night but today I did a build and it works correctly. Maybe my internet was very slow and it was having a hard time downloading the ads? Maybe my test phone had an issue with connectivity? Whatever it was, I am sorry for wasting your time.

Similar problem.

I/Corona  (23755): Applovin     init

I/Corona  (23755): Applovin     loaded

I/Corona  (23755): isLoaded     true

W/Corona  (23755): WARNING: applovin.show() An Interstitial Ad has not been loaded. Use applovin.load() to load an Interstitial Ad before attempting to show it

W/Corona  (23755): WARNING: applovin.show() The Interstitial Ad has not finished loading yet

No matter how many time to wait.

Hello there grcool.

If you download our Applovin sample here: https://github.com/coronalabs/plugins-sample-applovin

and insert your app id in the sample, what phases does it report when you click the “load ad” button?

Also, be sure you have given the app the correct access permissions for Android, listed here: https://docs.coronalabs.com/daily/plugin/applovin/index.html

Thank you

Thank you for response! It was my fail - a called load function  without (true) param and show function  with (true) param.

Glad you sorted it.

To make the process easier, I recommend storing a bool value, like shouldShowRewarded, and pass that to the load/show functions. Then you just have to manage the state of shouldShowRewarded, rather than trying to remember which one you should use.

Are there any messages in your console log?

None. I am logging all the events for applovin, but other than that I am not seeing anything.

  1. I get the event.phase = “init” without an error.

  2. I request load the ad after the init. applovin.load()

  3. I then get the event.phase = “loaded” again with no error.

The applovin console shows as my integration being successful. No impressions. 

Can you please give the the following info:

  1. Post up the relevent code you are using for init(), load() and isLoaded(). (in context preferably) Please use code tags when posting any code also.

  2. Take a screenshot of your applovin dashboard for the app in question (the android app in your portal). If you don’t want to post it here, please email it to me at: danny [at] coronalabs [dot] [com]

Thank you

Not sure what the issue was last night but today I did a build and it works correctly. Maybe my internet was very slow and it was having a hard time downloading the ads? Maybe my test phone had an issue with connectivity? Whatever it was, I am sorry for wasting your time.

Similar problem.

I/Corona  (23755): Applovin     init

I/Corona  (23755): Applovin     loaded

I/Corona  (23755): isLoaded     true

W/Corona  (23755): WARNING: applovin.show() An Interstitial Ad has not been loaded. Use applovin.load() to load an Interstitial Ad before attempting to show it

W/Corona  (23755): WARNING: applovin.show() The Interstitial Ad has not finished loading yet

No matter how many time to wait.

Hello there grcool.

If you download our Applovin sample here: https://github.com/coronalabs/plugins-sample-applovin

and insert your app id in the sample, what phases does it report when you click the “load ad” button?

Also, be sure you have given the app the correct access permissions for Android, listed here: https://docs.coronalabs.com/daily/plugin/applovin/index.html

Thank you

Thank you for response! It was my fail - a called load function  without (true) param and show function  with (true) param.

Glad you sorted it.

To make the process easier, I recommend storing a bool value, like shouldShowRewarded, and pass that to the load/show functions. Then you just have to manage the state of shouldShowRewarded, rather than trying to remember which one you should use.