Hello,
I have updated to new applovin plugin and with paid version I can not get any interstitial ad.
When I try with free version it starts working again.
Ps. I am switched to new usage style as well but still no luck!
Thanks
Bulent
Hello,
I have updated to new applovin plugin and with paid version I can not get any interstitial ad.
When I try with free version it starts working again.
Ps. I am switched to new usage style as well but still no luck!
Thanks
Bulent
Can you post your exact init() and load()/show() code please?
Thanks,
Brent
Hi Brent,
By the way isLoaded is true but show is not doing anything.
Thank you
[lua] [“plugin.applovin.paid”] =
{
publisherId = “com.coronalabs”
},
local applovin = require( “plugin.applovin.paid” )
– this is called in main.lua
local function adAppLovinListener( event )
print("— Applovin", event.phase, event.type )
end
applovin.init( adAppLovinListener, { sdkKey=KEY } )
if (applovin.isLoaded(“interstitial”)) then
applovin.show(“interstitial”)
end
local isLoaded = applovin.isLoaded(“rewardedVideo”)
if (isLoaded) then
applovin.show(“rewardedVideo”)
display.remove(rewardedBtn)
end
[/lua]
Here is the console output;
[Device] plugin.applovin.paid: 2.0 (SDK: 4.1.0)
[Device] — Applovin init nil
[Device] — Applovin loaded rewardedVideo
[Device] — Applovin loaded interstitial
When rewardedBtn is clicked;
[Device] — Applovin displayed rewardedVideo
[Device] — Applovin playbackBegan rewardedVideo
[Device] — Applovin validationSucceeded rewardedVideo
[Device] — Applovin playbackEnded rewardedVideo
[Device] — Applovin hidden rewardedVideo
When we try to show interstitial nothing happens, isLoaded returns true but show does not do anything.
Thank you
Hi @bulupe,
Where are you loading ads in your code? Meaning, where do you call “applovin.load()” in the overall progression starting with “applovin.init()”?
Thanks,
Brent
This is a strange issue as I cannot reproduce it.
Which iOS device are you testing on (including iOS version)?
Is this happening consistently, or just intermittently?
Also as Brent mentions, where are you calling load() in the overall progression?
I would also recommend checking the device log for errors from the plugin.
You can use the macOS ‘Console’ app for this.
Select your device from the pane on the left
Filter on your app name
The interesting part is to monitor what happens in the log at the time you try to show an interstitial.
Hi Ingremar, Brent,
The project is not small thats why I have not copied all source code here. Load is called somewhere else with the same parameters.
The most interesting thing is if I switch back to free version it starts to work again.
I will try to reproduce this is a simple project.
PS. Console does not show anything when I call show, as I said isLoaded is true but show does not work.
Thank you.
Hi @bulupe,
You’re not including both versions in your “build.settings” are you?
Did you try our AppLovin sample app (link near the top of the documentation) and substitute your own key in there to test?
Brent
Hi Brent,
No, I am not .
I tried and its working thats why I suspect that there might be a conflict with some other plugin in real project.
Now I am trying to reproduce this in a simpler project.
Thank you.
settings = { splashScreen = { ios = { enable = true, image = "scl\_splash.png" }, android = { enable = true, image = "scl\_splash.png" } }, orientation = { default = "portrait", supported = { "portrait", } }, excludeFiles = { all = { "\*secret.txt" }, }, -- -- iOS Section -- iphone = { plist = { CFBundleShortVersionString = "5.5.5", ITSAppUsesNonExemptEncryption = false, UIStatusBarHidden = false, UIPrerenderedIcon = true, UILaunchStoryboardName = 'launchscreen', UIApplicationExitsOnSuspend = false, CFBundleDisplayName = "Game", CFBundleName = "Game", CFBundleIconFiles = { "Icon.png", "Icon@2x.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-167.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png" }, UIBackgroundModes = {"remote-notification"}, UILaunchImages = { { -- iPhone 4 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { -- iPhone 5 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, { -- iPad Pro Portrait ["UILaunchImageMinimumOSVersion"] = "9.0", ["UILaunchImageName"] = "Default-Portrait-1366", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{1024, 1366}" }, }, NSAppTransportSecurity = { NSAllowsArbitraryLoads=true, NSExceptionDomains = { ["192.168.56.101"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true, }, } }, NSCalendarsUsageDescription = "No need for calendar.", NSPhotoLibraryUsageDescription = "This app would like to save screenshots.", NSCameraUsageDescription = "No need for camera.", FacebookAppID = "0000", CFBundleURLTypes = { { CFBundleURLSchemes = { "fb0000", } } }, LSApplicationQueriesSchemes = { "fb", "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "com.android.vending.BILLING", }, facebookAppId = "00000", googlePlayGamesAppId = "00000" }, -- Plugins Section plugins = { ["plugin.gpgs"] = { publisherId = "com.coronalabs", supportedPlatforms = {android=true } }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true} }, ["plugin.OneSignal"] = { publisherId = "com.onesignal" }, ["plugin.applovin.paid"] = { publisherId = "com.coronalabs" }, ["plugin.admob"] = { publisherId = "com.coronalabs" }, ["plugin.math2d"] = { publisherId = "com.roaminggamer" }, ["plugin.googleAnalytics"] = { publisherId = "com.coronalabs" }, ["plugin.facebook.v4"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, ["CoronaProvider.native.popup.activity"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true } }, ["plugin.kochava.faa"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, }, }
Thanks for the settings.
However, I tried a sample app by including all of the plugins you use (except math2d), but I still cannot reproduce your issue.
Rewarded videos and interstitial ads load and display properly.
I’ve identified the problem within the plugin. I’ll fix it and notify you on this thread when it’s live on the build server.
Sorry for the inconvenience.
Thank you, It seems to be working now, we will do more tests. Btw what was it related to, a plugin?
Thank you
Can you post your exact init() and load()/show() code please?
Thanks,
Brent
Hi Brent,
By the way isLoaded is true but show is not doing anything.
Thank you
[lua] [“plugin.applovin.paid”] =
{
publisherId = “com.coronalabs”
},
local applovin = require( “plugin.applovin.paid” )
– this is called in main.lua
local function adAppLovinListener( event )
print("— Applovin", event.phase, event.type )
end
applovin.init( adAppLovinListener, { sdkKey=KEY } )
if (applovin.isLoaded(“interstitial”)) then
applovin.show(“interstitial”)
end
local isLoaded = applovin.isLoaded(“rewardedVideo”)
if (isLoaded) then
applovin.show(“rewardedVideo”)
display.remove(rewardedBtn)
end
[/lua]
Here is the console output;
[Device] plugin.applovin.paid: 2.0 (SDK: 4.1.0)
[Device] — Applovin init nil
[Device] — Applovin loaded rewardedVideo
[Device] — Applovin loaded interstitial
When rewardedBtn is clicked;
[Device] — Applovin displayed rewardedVideo
[Device] — Applovin playbackBegan rewardedVideo
[Device] — Applovin validationSucceeded rewardedVideo
[Device] — Applovin playbackEnded rewardedVideo
[Device] — Applovin hidden rewardedVideo
When we try to show interstitial nothing happens, isLoaded returns true but show does not do anything.
Thank you
Hi @bulupe,
Where are you loading ads in your code? Meaning, where do you call “applovin.load()” in the overall progression starting with “applovin.init()”?
Thanks,
Brent
This is a strange issue as I cannot reproduce it.
Which iOS device are you testing on (including iOS version)?
Is this happening consistently, or just intermittently?
Also as Brent mentions, where are you calling load() in the overall progression?