Godot Integration for Android

You may use the Yodo1 MAS plugin with Godot Engine 3.2.3 or higher.

When you integrate the SDK, you import its library file into your project so you may use the file’s functions. Integrating the MAS SDK into your mobile app project gives you access to MAS fully managed monetization solution. This solution taps into multiple ad mediation platforms, selecting the one best suited for your game’s monetization through high quality ad networks that serve in-app ads.

Before you can start monetizing your app, you’ll need to integrate the MAS SDK.

Integrating the SDK

First, you need to download this file. It consists of three folders:

  • yodo1mas-plugin-android. Android plugin.
  • yodo1mas-plugin-ios. iOs plugin.
  • demo. Godot project, will work on iOs and android platforms.

Setup new project

  1. Configure, install, and enable the “Android Custom Template” for your project by following the official documentation;
  2. Copy folder plugins from the Yodo1Godot_release_files_1.. archive to your Godot project. You have to add them in the path res://android. This plugins folder contains two files GodotYodo1Mas.gdapand GodotYodo1Mas.***.aar. Please make sure to open GodotYodo1Mas.gdap with any text editor and check the gradle dependency.


If you are targeting users of 13 years old and above, please use this gradle dependency:

[dependencies ]

If you are targeting users bellow 13 years of age, please use this gradle dependency:

dependencies ]
  1. Copy the yodo1mas.gd file from the release archive and paste it into your Godot project.
  1. Copy files AndroidManifest.xmlconfig.gradle, and build.gradle and place them in the path res://android/build.
  1. Use Android label with attribute tools:replace. And add your AdMob App ID.
  • Example of using Android label with attribute tools:replace:
<application tools:replace="android:label" android:label="GodotYodo1Mas"
  • Add your AdMob App ID to your app’s res//android/build/AndroidManifest.xml file by adding the tag.
  • You can find your App ID in the MAS dashboard.
  • Please replace android:value with your own AdMob App ID
  1. Under Project -> Export -> Android -> Options ->
  • Custom Template: check Use Custom Build
  • Plugins: check Godot Yodo1 Mas (this plugin)
  • Permissions: check permissions for Access Network State and Internet
  1. Each system has a different version of Gradle installed. Please make sure to match the Grade version with the Gradle plugin version according to the table bellow.
Plugin VersionRequired Gradle Version
1.0.0 – – 2.3
1.2.0 – – 2.9 – 2.13
2.0.0 – – 2.13
2.1.3 – – 3.5
3.2.0 –
3.3.0 –
3.4.0 –
3.5.0 –
3.6.0 –
  1. Check the build.gradle file. You need to add repositories and activate multiDexEnabled.
maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
maven { url "https://dl.bintray.com/ironsource-mobile/android-adapters" }
maven { url "https://dl.bintray.com/yodo1/MAS-Android" }
maven { url "https://dl.bintray.com/yodo1/android-sdk" }
maven { url "https://android-sdk.is.com" }
maven { url "https://artifact.bytedance.com/repository/pangle" }
maven { url "https://sdk.tapjoy.com/" }
multiDexEnabled true
  1. You can export your Android project. An APK will be created automatically.

NOTE: Everytime you install a new version of the Android Build Template, you need to repeat this step, because it overrides the existing AndroidManifest.xml file.

Compiling the Plugin (Optional)

Compiling the plugin by yourself, is fairly easy.

  1. Clone this repository.
  2. Check for the desired version.
  3. Download the AAR library for Android plugin from the official Godot website.
  4. Copy the downloaded AAR file into the yodo1mas-plugin-android/godot-lib.release/ directory and rename it to godot-lib.release.aar.
  5. Use the command line and go to the yodo1mas-plugin-android/ directory.
  6. Run gradlew build.

You can also make a build using the Android Studio.

If all goes well, you’ll find the .aar files at yodo1mas-plugin-android/godotadmob/build/outputs/aar/.

Godot Manual

Set App Ids-

Create a Yodo1Mas node and add app ids in the yodo1mas script. You can find your App IDs in the MAS dashboard. 

For next step please test your integration.

Updated on September 24, 2021

Was this article helpful?

Related Articles