You should have AppLovinMAX account in order to use this module https://www.applovin.com/max/
-
Add NativeLib Addon into your project (search it in Godot's AssetLib).
-
Find
APPLOVINMAX
in plugins list and press "Install" button. -
Set your SDK key in plugin variables list (see https://dash.applovin.com/o/account#keys).
-
Enable Custom Build and check Plugins/App Lovin Max for using in Android.
-
Add res://addons/applovinmax-ios to export resources for using in iOS.
-
Install NativeLib-CLI in your system.
-
Make
nativelib -i applovinmax
in your project directory. -
Set
AppLovin/SdkKey
in your project settings (see https://dash.applovin.com/o/account#keys). -
Enable Custom Build and check Plugins/App Lovin Max for using in Android.
-
Add res://addons/applovinmax-ios to export resources for using in iOS.
-
Permission ACCESS_COARSE_LOCATION will automatically be added when exporting to Android.
-
For iOS, consider using the ATT plugin (https://github.com/DrMoriarty/godot-ios-att) (required by Apple for iOS 14.0+).
The core module has only SDK for Applovin network. For using additional networks you should install specific adapters. For example install applovinmax-facebook
for Facebook Audience Network.
Wrapper on gd-script will be in your autoloading list. Use global name applovin_max
anywhere in your code to use API.
Show debug mediation view.
Check is SDK inited or not.
Set custom user ID.
Check if GDPR applies to your user.
Set GDPR consent from your user.
Set age restriction for your user.
Set if CCPA applied to your user.
Load banner with specific zone ID. callback_id
is instance_id from callback object.
Load interstitial with specific zone ID. callback_id
is instance_id from callback object.
Load rewarded ad with specific zone ID. callback_id
is instance_id from callback object.
Load MREC with specific zone ID. gravity
is Android Gravity. callback_id
is instance_id from callback object.
Returns current banner width. Returns 0 if there are no active banners.
Returns current banner height. Returns 0 if there are no active banners.
Show banner with specific zone ID. The banner must be loaded before this call.
Hide banner with specific zone ID.
Completely remove banner view from the screen.
Show interstitial with specific zone ID. The interstitial must be loaded before call.
Show rewarded video ad with specific zone ID. The rewarded ad must be loaded before call.
Show MREC with specific zone ID. The MREC must be loaded before call.
Remove MREC view from the screen.
When load ad you specified instance_id of callback object. This object can have methods to get callbacks from the SDK.
For example: applovin_max.loadBanner("zone_id", true, self.get_instance_id())
_on_rewarded_video_ad_loaded(id: String)
_on_rewarded_video_ad_failed_to_load(id: String, error: String)
_on_rewarded_video_ad_opened(id: String)
_on_rewarded_video_ad_left_application(id: String)
_on_rewarded_video_ad_closed(id: String)
_on_rewarded_video_started(id: String)
_on_rewarded_video_completed(id: String)
_on_rewarded(id: String, reward: String, amount: int)
_on_banner_loaded(id: String)
_on_banner_failed_to_load(id: String)
_on_banner_failed_to_load(id: String, error: String)
_on_banner_shown(id: String)
_on_mrec_loaded(id: String)
_on_mrec_failed_to_load(id: String, error: String)
_on_interstitial_loaded(id: String)
_on_interstitial_failed_to_load(id: String, error: String)
_on_interstitial_close(id: String)