A Godot's plugin for Android and iOS of AdMob

Godot AdMob
A Godot's plugin for Android and iOS of AdMob.
This repository is for a Godot Engine Plugin that allows showing the ads offered by AdMob in an easy way, without worrying about the building or version, just download and use.
The purpose of this plugin is to always keep up to date with Godot, supporting ALMOST ALL versions from 3.x to 4.x (when it is released), and also make the code compatible on Android and iOS, so each advertisement will work identically on both systems.
Installation
- First of all you need to install the AdMob Editor Plugin, you can download direcly from Godot Assets.
Android (v3.2.2+):
-
Download the
android-?-template-v{{ your_godot_version }}.zip
in the releases tab. -
Enable Android Build Template. Check the tutorial here
-
Extract the content in
android-?-template-v{{ your_godot_version }}.zip
intores://android/plugins
directory on your Godot project -
Add your AdMob App ID to your app's
res://android/build/AndroidManifest.xml
file by adding a<meta-data>
tag with namecom.google.android.gms.ads.APPLICATION_ID
, as shown below. -
(Optional) If you are using UMP, you can add too the Delay app measurement inside
AndroidManifest.xml
-
Export the project enabling the
Use Custom Build
andAdMob Plugin
:
iOS (v3.3+):
- Tutorial: https://www.youtube.com/watch?v=pkTUVArtG7Y
- Download the
ios-template-v{{ your_godot_version }}.zip
in the releases tab. - Download the googlemobileadssdkios.zip used to build the plugin.
- Extract the content in
ios-template-v{{ your_godot_version }}.zip
intores://ios/plugins
directory on your Godot project - Extract the content in
googlemobileadssdkios.zip
intores://ios/plugins/admob/lib
, will be like this:
- Export the project enabling the
AdMob Plugin
:
- Into your Xcode Project: Update your GAMENAME-Info.plist file, on GADApplicationIdentifier key with a string value of your AdMob app ID:
- Enable SKAdNetwork to track conversions:
- (Optional) If you are using UMP, you can add too the Delay app measurement
User Messaging Platform (UMP):
- To use UMP due of EUROPE ePrivacy Directive and the General Data Protection Regulation (GDPR), you first need to do configure your Funding Choices.
- If your app is "ForChildDirectedTreatment" then the UMP won't appear and signals won't work for consent, this is normal so don't worry.
- To show personalized or non-personalized ads, then you need to change inside your AdMob Account