Check out the new Applovin Max plugin with support for mediation for providers like Unity and Facebook
Thank you Scott, it’s amazing!)
It works nice with Interstitials and RewardedVideo, but when I try to load “banner”, my app crushes:
applovin.load( "banner", {iOSUnitId ="XXXXXXXXXXXXXXXXX", androidUnitId="XXXXXXXXXXXXXXXXX"} )
build.settiings:
settings =
{
orientation =
{
-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = "portrait",
supported = { "portrait", },
},
--
-- Android section
--
android =
{
usesPermissions =
{
"android.permission.INTERNET",
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.VIBRATE"
},
strings =
{
["google_app_id"]= "X:XXXXXXXXXXXX:android:XXXXXXXXXXXXXXXXXXXXXX"
},
useGoogleServicesJson = true,
minSdkVersion = "19",
applicationChildElements =
{
-- Array of strings
[[
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX"/>
<meta-data android:name="applovin.sdk.key" android:value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>
]],
},
},
--
-- iOS section
--
iphone =
{
xcassets = "Images.xcassets",
plist =
{
GADApplicationIdentifier = "ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX",
AppLovinSdkKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
UILaunchStoryboardName = "LaunchScreen",
NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
SKAdNetworkItems = {
{SKAdNetworkIdentifier= "275upjj5gd.skadnetwork"},
{SKAdNetworkIdentifier= "294l99pt4k.skadnetwork"},
{SKAdNetworkIdentifier= "2fnua5tdw4.skadnetwork"},
{SKAdNetworkIdentifier= "2u9pt9hc89.skadnetwork"},
{SKAdNetworkIdentifier= "3rd42ekr43.skadnetwork"},
{SKAdNetworkIdentifier= "4468km3ulz.skadnetwork"},
{SKAdNetworkIdentifier= "44jx6755aq.skadnetwork"},
{SKAdNetworkIdentifier= "44n7hlldy6.skadnetwork"},
{SKAdNetworkIdentifier= "4fzdc2evr5.skadnetwork"},
{SKAdNetworkIdentifier= "4pfyvq9l8r.skadnetwork"},
{SKAdNetworkIdentifier= "523jb4fst2.skadnetwork"},
{SKAdNetworkIdentifier= "5l3tpt7t6e.skadnetwork"},
{SKAdNetworkIdentifier= "5lm9lj6jb7.skadnetwork"},
{SKAdNetworkIdentifier= "6964rsfnh4.skadnetwork"},
{SKAdNetworkIdentifier= "6g9af3uyq4.skadnetwork"},
{SKAdNetworkIdentifier= "74b6s63p6l.skadnetwork"},
{SKAdNetworkIdentifier= "7rz58n8ntl.skadnetwork"},
{SKAdNetworkIdentifier= "7ug5zh24hu.skadnetwork"},
{SKAdNetworkIdentifier= "84993kbrcf.skadnetwork"},
{SKAdNetworkIdentifier= "8s468mfl3y.skadnetwork"},
{SKAdNetworkIdentifier= "9nlqeag3gk.skadnetwork"},
{SKAdNetworkIdentifier= "9rd848q2bz.skadnetwork"},
{SKAdNetworkIdentifier= "9t245vhmpl.skadnetwork"},
{SKAdNetworkIdentifier= "a7xqa6mtl2.skadnetwork"},
{SKAdNetworkIdentifier= "c6k4g5qg8m.skadnetwork"},
{SKAdNetworkIdentifier= "cg4yq2srnc.skadnetwork"},
{SKAdNetworkIdentifier= "cj5566h2ga.skadnetwork"},
{SKAdNetworkIdentifier= "e5fvkxwrpn.skadnetwork"},
{SKAdNetworkIdentifier= "ejvt5qm6ak.skadnetwork"},
{SKAdNetworkIdentifier= "g28c52eehv.skadnetwork"},
{SKAdNetworkIdentifier= "g2y4y55b64.skadnetwork"},
{SKAdNetworkIdentifier= "gta9lk7p23.skadnetwork"},
{SKAdNetworkIdentifier= "hs6bdukanm.skadnetwork"},
{SKAdNetworkIdentifier= "kbd757ywx3.skadnetwork"},
{SKAdNetworkIdentifier= "kbmxgpxpgc.skadnetwork"},
{SKAdNetworkIdentifier= "klf5c3l5u5.skadnetwork"},
{SKAdNetworkIdentifier= "m8dbw4sv7c.skadnetwork"},
{SKAdNetworkIdentifier= "mlmmfzh3r3.skadnetwork"},
{SKAdNetworkIdentifier= "mtkv5xtk9e.skadnetwork"},
{SKAdNetworkIdentifier= "n6fk4nfna4.skadnetwork"},
{SKAdNetworkIdentifier= "n9x2a789qt.skadnetwork"},
{SKAdNetworkIdentifier= "ppxm28t8ap.skadnetwork"},
{SKAdNetworkIdentifier= "prcb7njmu6.skadnetwork"},
{SKAdNetworkIdentifier= "pwa73g5rt2.skadnetwork"},
{SKAdNetworkIdentifier= "pwdxu55a5a.skadnetwork"},
{SKAdNetworkIdentifier= "qqp299437r.skadnetwork"},
{SKAdNetworkIdentifier= "r45fhb6rf7.skadnetwork"},
{SKAdNetworkIdentifier= "rx5hdcabgc.skadnetwork"},
{SKAdNetworkIdentifier= "t38b2kh725.skadnetwork"},
{SKAdNetworkIdentifier= "tl55sbb4fm.skadnetwork"},
{SKAdNetworkIdentifier= "u679fj5vs4.skadnetwork"},
{SKAdNetworkIdentifier= "uw77j35x4d.skadnetwork"},
{SKAdNetworkIdentifier= "v72qych5uu.skadnetwork"},
{SKAdNetworkIdentifier= "wg4vff78zm.skadnetwork"},
{SKAdNetworkIdentifier= "wzmmz9fp6w.skadnetwork"},
{SKAdNetworkIdentifier= "yclnxrl5pm.skadnetwork"},
{SKAdNetworkIdentifier= "ydx93a7ass.skadnetwork"},
{SKAdNetworkIdentifier= "3qcr597p9d.skadnetwork"},
{SKAdNetworkIdentifier= "3qy4746246.skadnetwork"},
{SKAdNetworkIdentifier= "3sh42y64q3.skadnetwork"},
{SKAdNetworkIdentifier= "424m5254lk.skadnetwork"},
{SKAdNetworkIdentifier= "4dzt52r2t5.skadnetwork"},
{SKAdNetworkIdentifier= "578prtvx9j.skadnetwork"},
{SKAdNetworkIdentifier= "5a6flpkh64.skadnetwork"},
{SKAdNetworkIdentifier= "8c4e2ghe7u.skadnetwork"},
{SKAdNetworkIdentifier= "av6w8kgt66.skadnetwork"},
{SKAdNetworkIdentifier= "cstr6suwn9.skadnetwork"},
{SKAdNetworkIdentifier= "f38h382jlk.skadnetwork"},
{SKAdNetworkIdentifier= "p78axxw29g.skadnetwork"},
{SKAdNetworkIdentifier= "s39g8k73mm.skadnetwork"},
{SKAdNetworkIdentifier= "v4nxqhlyqp.skadnetwork"},
{SKAdNetworkIdentifier= "zq492l623r.skadnetwork"},
{SKAdNetworkIdentifier= "24t9a8vw3c.skadnetwork"},
{SKAdNetworkIdentifier= "32z4fx6l9h.skadnetwork"},
{SKAdNetworkIdentifier= "54nzkqm89y.skadnetwork"},
{SKAdNetworkIdentifier= "6xzpu9s2p8.skadnetwork"},
{SKAdNetworkIdentifier= "79pbpufp6p.skadnetwork"},
{SKAdNetworkIdentifier= "9b89h5y424.skadnetwork"},
{SKAdNetworkIdentifier= "c3frkrj4fj.skadnetwork"},
{SKAdNetworkIdentifier= "feyaarzu9v.skadnetwork"},
{SKAdNetworkIdentifier= "ggvn48r87g.skadnetwork"},
{SKAdNetworkIdentifier= "glqzh8vgby.skadnetwork"},
{SKAdNetworkIdentifier= "k674qkevps.skadnetwork"},
{SKAdNetworkIdentifier= "ludvb6z3bs.skadnetwork"},
{SKAdNetworkIdentifier= "rvh3l7un93.skadnetwork"},
{SKAdNetworkIdentifier= "x8jxxk4ff5.skadnetwork"},
{SKAdNetworkIdentifier= "xy9t38ct57.skadnetwork"},
{SKAdNetworkIdentifier= "zmvfpc5aq8.skadnetwork"},
{SKAdNetworkIdentifier= "22mmun2rn5.skadnetwork"},
{SKAdNetworkIdentifier= "4w7y6s5ca2.skadnetwork"},
{SKAdNetworkIdentifier= "5tjdwbrq8w.skadnetwork"},
{SKAdNetworkIdentifier= "6p4ks3rnbw.skadnetwork"},
{SKAdNetworkIdentifier= "737z793b9f.skadnetwork"},
{SKAdNetworkIdentifier= "97r2b46745.skadnetwork"},
{SKAdNetworkIdentifier= "b9bk5wbcq9.skadnetwork"},
{SKAdNetworkIdentifier= "bxvub5ada5.skadnetwork"},
{SKAdNetworkIdentifier= "dzg6xy7pwj.skadnetwork"},
{SKAdNetworkIdentifier= "f73kdq92p3.skadnetwork"},
{SKAdNetworkIdentifier= "hdw39hrw9y.skadnetwork"},
{SKAdNetworkIdentifier= "lr83yxwka7.skadnetwork"},
{SKAdNetworkIdentifier= "mls7yz5dvl.skadnetwork"},
{SKAdNetworkIdentifier= "mp6xlyr22a.skadnetwork"},
{SKAdNetworkIdentifier= "s69wq72ugq.skadnetwork"},
{SKAdNetworkIdentifier= "su67r6k2v3.skadnetwork"},
{SKAdNetworkIdentifier= "w9q455wk68.skadnetwork"},
{SKAdNetworkIdentifier= "x44k69ngh6.skadnetwork"},
{SKAdNetworkIdentifier= "x8uqf25wch.skadnetwork"},
{SKAdNetworkIdentifier= "y45688jllp.skadnetwork"},
{SKAdNetworkIdentifier= "n38lu8286q.skadnetwork"},
{SKAdNetworkIdentifier= "v9wttpbfk9.skadnetwork"},
{SKAdNetworkIdentifier= "252b5q8x7y.skadnetwork"},
{SKAdNetworkIdentifier= "9g2aggbj52.skadnetwork"},
{SKAdNetworkIdentifier= "krvm3zuq6h.skadnetwork"},
{SKAdNetworkIdentifier= "nu4557a4je.skadnetwork"},
{SKAdNetworkIdentifier= "r26jy69rpl.skadnetwork"},
{SKAdNetworkIdentifier= "3l6bd9hu43.skadnetwork"},
{SKAdNetworkIdentifier= "488r3q3dtq.skadnetwork"},
{SKAdNetworkIdentifier= "52fl2v3hgk.skadnetwork"},
{SKAdNetworkIdentifier= "6v7lgmsu45.skadnetwork"},
{SKAdNetworkIdentifier= "89z7zv988g.skadnetwork"},
{SKAdNetworkIdentifier= "8m87ys6875.skadnetwork"},
{SKAdNetworkIdentifier= "hb56zgv37p.skadnetwork"},
{SKAdNetworkIdentifier= "m297p6643m.skadnetwork"},
{SKAdNetworkIdentifier= "m5mvw97r93.skadnetwork"},
{SKAdNetworkIdentifier= "vcra2ehyfk.skadnetwork"},
{SKAdNetworkIdentifier= "238da6jt44.skadnetwork"},
{SKAdNetworkIdentifier= "9yg77x724h.skadnetwork"},
{SKAdNetworkIdentifier= "ecpz2srf59.skadnetwork"},
{SKAdNetworkIdentifier= "gvmwg8q7h5.skadnetwork"},
{SKAdNetworkIdentifier= "n66cz3y3bx.skadnetwork"},
{SKAdNetworkIdentifier= "nzq8sh4pbs.skadnetwork"},
{SKAdNetworkIdentifier= "pu4na253f3.skadnetwork"},
{SKAdNetworkIdentifier= "v79kvwwj4g.skadnetwork"},
{SKAdNetworkIdentifier= "yrqqpx2mcb.skadnetwork"},
{SKAdNetworkIdentifier= "z4gj7hsk7h.skadnetwork"},
{SKAdNetworkIdentifier= "f7s53z58qe.skadnetwork"},
{SKAdNetworkIdentifier= "7953jerfzd.skadnetwork"}
},
UIStatusBarHidden = false,
NSBluetoothAlwaysUsageDescription = "Not used within app",
UILaunchStoryboardName = "LaunchScreen",
},
},
--
-- Plugins section
--
plugins =
{
["plugin.utf8"] = { publisherId = "com.coronalabs" },
["plugin.applovinMax"] = { publisherId = "com.solar2d" },
["plugin.applovinMax.AdColony"] = { publisherId = "com.solar2d" },
["plugin.applovinMax.GoogleAdMob"] = { publisherId = "com.solar2d" },
["plugin.applovinMax.IronSource"] = { publisherId = "com.solar2d" },
["plugin.applovinMax.MyTarget"] = { publisherId = "com.solar2d" },
["plugin.applovinMax.UnityAds"] = { publisherId = "com.solar2d" },
['plugin.reviewPopUp'] = { publisherId = "tech.scotth" },
["plugin.firebaseAnalytics"] =
{
publisherId="tech.scotth",
marketplaceId = "llj7lh",
supportedPlatforms = { iphone=true, android=true }
},
['plugin.att'] = { publisherId = 'com.solar2d' },
},
--
-- Project section
--
excludeFiles =
{
-- Exclude unnecessary files for each platform
all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", },
android = { "LaunchScreen.storyboardc", },
},
}
The Solar2D version is 2021.3656
What can it be do you think? Thanks!
The same on the 2022.3665
Can confirm that app crashes on even attempting to load a banner ad
The plugin doesn’t work. You need to update the plugin.
Working on it
Good. I updated the plugin and it works. But I can’t update adapters. How to update them?
I figured out you need to update the version in corona.gradle in adapter and that’s it)
Banner position "top"
, "center"
and "bottom"
not working.
iOS or Android?
Android. The parameter has no effect. Although params.gravity = Gravity.BOTTOM is defined in the source code
I’ve changed:
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
FrameLayout.LayoutParams.WRAP_CONTENT
);
On the:
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
140
);
And it worked)
I also added a check on line 812:
if (bannerAd != null) {
bannerAd.removeAllViews();
bannerAd.destroy();
}
Cool))) Thanks!
Can you also add a yandex adapter?
Sure, also looking into the problems with building for iOS
Did you succeed? Everything builds and works in Xcode, but when I add a plugin to solar2d, I get compilation errors
Did you succeed?
Sorry been extremely busy the last few day, will try to look at this tomorrow
Add in build setting:
iphone =
{
xcassets = "Images.xcassets",
plist =
{
MinimumOSVersion = "10.0",
It works!