Godot Android plugin for IronSource SDK.
- Ad units supported: BANNER, REWARDED_VIDEO, INTERSTITIAL
- Ad networks (currently added): AdMob, AdColony, AppLovin
- Godot 3.2.1
- Android Build template
- Set up custom build for Android.
After that you should have
android/build
directory in your Godot project. - Open the
build
directory in your favourite text editor. - Open
AndroidManifest.xml
-
Insert attributes
tools:replace="allowBackup, label" android:allowBackup="false"
inside<application>
tag:
- Open gradle.properties
-
Clone or download this plugin and place it inside
android
folder like so: -
If using AdMob, then insert your APP ID to
AndroidManifest.conf
inside plugin folderWARNING: If you leave the value as it is, the application will crash. So if you are not using AdMob remove AdMob related stuff.
-
In Godot under
Project Settings
add the plugin toModules
-
Add IronSource.gd as autoloadable singleton for convienience:
- Edit
IronSource.gd
and insert your APP_KEY and ad units:
const APP_KEY = "<INSERT_YOUR_APP_ID>"
onready var ad_units: Array = [BANNER, REWARDED_VIDEO, INTERSTITIAL]
- Then anywhere in code:
IronSource.show_rewarded_video("Level_Complete")
- Check singleton
IronSource.gd
for all methods and callbacks
Before going live comment out
IntegrationHelper.validateIntegration(activity);
from IronSourcePlugin.java
If you want to add new ad networks make sure it complies with the requirements
Work based on: