AppLovin MAX Defold Plugin for Android and iOS
Please check out our documentation to get started on integrating and enabling mediated networks using our guides.
To get started with the demo app, follow the instructions below:
-
Clone this repository and open the
game.project
file in Defold editor. -
For iOS, update the Bundle Identifier with the unique identifier associated with the app you will create or have already created in the MAX dashboard. Also update the extension property
ios_user_tracking_usage_description
for tracking authorization prompt in iOS 14+.[ios] bundle_identifier = YOUR_BUNDLE_IDENTIFIER [applovin] ios_user_tracking_usage_description = YOUR_USAGE_DESCRIPTION
-
For Android, Update the Package Name with the unique identifier associated with the app you will create or have already created in the MAX dashboard.
[android] package = YOUR_PACKAGE_NAME
-
Open the
example/main.gui_script
file and update theSDK_KEY
value with the AppLovin SDK key associated with your account.local SDK_KEY = "YOUR_SDK_KEY_HERE"
-
Open the
example/ads.lua
file and update the MAX ad unit IDs for the ad formats you would like to test. Each ad format will correspond to a unique MAX ad unit ID you created in the AppLovin dashboard for the bundle ID used before.local ios_ad_units = { Interstitial = "ENTER_IOS_INTERSTITIAL_AD_UNIT_ID_HERE", Rewarded = "ENTER_IOS_REWARDED_AD_UNIT_ID_HERE", Banner = "ENTER_IOS_BANNER_AD_UNIT_ID_HERE", MRec = "ENTER_IOS_MREC_AD_UNIT_ID_HERE" } local android_ad_units = { Interstitial = "ENTER_ANDROID_INTERSTITIAL_AD_UNIT_ID_HERE", Rewarded = "ENTER_ANDROID_REWARDED_AD_UNIT_ID_HERE", Banner = "ENTER_ANDROID_BANNER_AD_UNIT_ID_HERE", MRec = "ENTER_ANDROID_MREC_AD_UNIT_ID_HERE" }
-
Deploy the demo app to a platform by selecting Project > Bundle.
MIT