AdMob
AdMob cocos guide for Custom Adapter GMA SDK.
App Prerequisites
- minSdkVersion of 26 or higher
- compileSdkVersion of 36 or higher
Ensure your android/build.gradle (project-level) includes the required repositories:
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Installation
Install Extension
- Open your Cocos project
- Go to the top menu: Extension → Extension Manager
- Click on: "Install from File"

- Select and upload the TapMind extension ZIP file
Download TapMind Extension
Enable Extension (if it is disabled)
- After installation, go to the Installed tab
- Locate the TapMind extension
- Enable it
Extension → Extension Manager → Install from File → Select TapMind Extension ZIP → Install → Installed Tab → Enable Extension
Configuration
Platform-specific values The steps below apply to both Android and iOS. When copying adapter class names or platform-specific parameters, use the Android or iOS tab for your build target.
CREATING CUSTOM EVENTS FOR WATERFALL
- Under the Mediation tab : Click on Create Mediation group section
- Select Android or iOS (depending on your target platform) and type of Ad format and Continue
- In the Name field : Type in as provided in the G-sheet
- Click on Add ad units
- Select the app and the Ad units that you want to use custom targeting on.
Add Custom Event → Create Mediation Group → Select Android or iOS → Add Name → Add Ad units → Select app and Ad units
AD SOURCES (WATERFALL SECTION)
- Click on Water fall source
- Click on Setup ad Source and then at the Bottom left Click on custom event
- Select the App for the setup (Android or iOS, depending on your target platform)
- Select ad unit and add the parameters as follows
For the Below details Please reach out TapMind Account Manger
Mapping name : As Per the G-sheet Provided
ecpm : As Per the G-sheet Provided
Class : com.tapmind.tech.TapMindMediationAdapterAdmob
Parameter : { "placementName": "As Per the G-sheet Provided"}
Ad Sources → Add Custom Event → Enter Label → Set eCPM → Add Mapping → Enter Mapping Name → Enter Class Name → Add Parameter
Response can be checked in LOGCAT by using tag: TapMindAdapter
The above setup completes our TapMind x ADMOB integration. You should see an Ad if test setup is complete and working fine.
Official Google Documentation for creating a custom event : https://support.google.com/admob/answer/13407144
