Integrate PubMatic OpenWrap with Mediation
This guide explains how to utilize the Google Mobile Ads SDK to load and present ads from PubMatic through mediation. It provides instructions on integrating PubMatic into the mediation configuration of a Godot app and integrating the PubMatic SDK and adapter.
This document is based on:
Supported integrations and ad formats
The AdMob mediation adapter for PubMatic has the following capabilities:
| Integration | |
|---|---|
| Bidding | ✅ |
| Waterfall | ✅ |
| Formats | |
|---|---|
| Banner | ✅ |
| Interstitial | ✅ |
| Rewarded | ✅ |
| Rewarded Interstitial | ✅ |
Prerequisites
- Complete the Get started guide
- Complete the mediation Get started guide
Step 1: Set up PubMatic OpenWrap
We recommend following the tutorial for Android or iOS, as it will be the same for both.
Step 2: Configure mediation settings for your AdMob ad unit
We recommend following the tutorial for Android or iOS, as it will be the same for both.
Step 3: Import the PubMatic OpenWrap SDK plugin
- Download the plugin for Android.
- Extract the
.zipfile. Inside, you will find apubmaticfolder. - Copy the contents of the
pubmaticfolder and paste them into the Android plugin folder atres://addons/admob/android/bin/.
The PubMatic adapter is already included in the standard iOS plugin download. If you followed the iOS Installation guide, you should already have the necessary files (poing-godot-admob-pubmatic.gdip) in your res://ios/plugins/ directory.
Step 4: Enable the plugin
Make sure to enable PubMatic in Project Settings (under Admob > Android > Mediation > Pubmatic).
Make sure to check both Ad Mob and Ad Mob PubMatic under the Plugins list in your iOS Export Presets (as well as entering your AdMob App ID in the Plists config).
Step 5: Add required code
No additional code configuration is required for this partner integration.