- IronSource’s mediation platform lets publishers communicate with AdMob network, a Tag For Users under the Age of Consent in Europe (TFUA) request. This feature is enabled using ironSource SDK 6.14.0+, AdMob Unity Adapter 4.3.12+. Use the following.
- Send a test bid request to Facebook using AdMob's Mediation Test Suite. Android, iOS, Unity (Only iOS/Unity) Set Audience Network's ATE flag to True for testing.
This guide instructs you step-by-step on how to set Admob live as an Ad Network on the ironSource Mediation platform.
⚡ Before you start Make sure you have correctly integrated ironSource’s interstitial, rewarded video or banner mediation in your application.![Unity Unity](/uploads/1/1/8/2/118218918/271331627.jpg)
The CrystalExpress AdMob Custom Event allows AdMob publishers to add CrystalExpress as a Custom Ad Network within the AdMob platform. CrystalExpress currently support rewarded video format for AdMob mediation. Please use Rewarded Video ad unit to mediate Rewarded Video ads. NOTICE: The aspect ratio for CrystalExpress ad is 16:9, 4:3 or 1:1. Google AdMob Mediation for Unity.
Google Ad Manager ads are served using the AdMob SDK.
As of AdMob SDK 7.69.0+, AdMob are using XCFramework. If you are using CocoaPods for your AdMob integration, make sure you have CocoaPods Version 1.9.0+.
AdMob Supports Android Operating Systems Version 4.1 (API level 16) and up. The required Gradle Build Tool is 3.5.4.
You can learn about the support for AndroidXhere.
You can learn about the support for AndroidXhere.
Step 1. Create an AdMob Account
- To access AdMob’s ad inventory throughironSource‘s Mediation platform, you must create an account with AdMob. You can do so here.
- We recommend to adjust the time zone of your AdMob’s account to UTC to align with the ironSource dashboard. This will ensure accurate reporting. More info here.
Step 2. Create an Application and Ad Zone in Admob
Ccleaner for mac reddit. Next, you must add your app and set up Ad Zones in your Admob account.
AdMob does not allow to set up more than 3 ad zones of the same Ad Type in the same setup.
e.g. no more than three Rewarded Video ads being setup is allowed for the mediation group.
e.g. no more than three Rewarded Video ads being setup is allowed for the mediation group.
Add Your App
- Log into your Admob account. On your dashboard, click the ‘Apps’ button.
- A modal will appear where you can either search for your app, add your app manually or simply select an existing app to monetize.Note: You will need a unique Admob application per platform (iOS + Android), just the same as in yourironSource account.
- Select Interstitial, Rewarded Video or Banners as your ad unit format and enter the relevant details.
- For Interstitial:
Ad Type: You can leave the two boxes checked as we support text, image, video and rich media in interstitials.
Ad unit name: we recommend naming the ad unit intuitively so it will be easy to recognize as the ad unit you’ll be serving Admob Interstitials through the ironSource Mediation platform. - For Rewarded Video:
Ad unit name: we recommend naming the ad unit intuitively so it will be easy to recognize as the ad unit you’ll be serving Admob’s Rewarded Video through the ironSource Mediation platform. - For Banners:
Ad Unit Name: we recommend naming the ad unit intuitively so it will be easy to recognize as the ad unit you’ll be serving Admob Banners through the ironSource Mediation platformImportant!
Automatic refresh: Select the “Do not refresh” option. (Reminder – you can control the refresh rate on the mediation platform)
- For Interstitial:
- Now you will get your App ID and Ad Unit ID, before you exit we recommend saving these for later use. You can click ‘Done‘.
- Log into your Admob account. On your dashboard, click the ‘Apps’ button.
Step 3. Activate AdMob in YourironSource Network Setup Module
Vungle Admob Mediation Unity
Serving Admob’s ads through the ironSource Mediation platform has never been this easy. Sign in to your Google account when setting up Admob on the ironSource SDK Networks Setup and we’ll retrieve all the necessary parameters to run Admob’s Interstitials, Rewarded Video and Banners for you!
There are a few pieces of data from your AdMob account which need to be inserted into yourironSource Network Setup Module in order for AdMob to work correctly in connection withironSource:
App ID | The unique ID assigned to your app on Admob’s dashboard. |
API Key | This is a unique identifier for your Admob account, which allows ironSource Mediation Platform to import performance data from your Admob account to use in reporting & optimization. |
Ad Unit ID | The unique ID assigned to your app’s ad unit on Admob’s dashboard. |
Client ID | This is the unique identifier that specifies the relationship between your account and the ad unit. |
Client Secret | This is the unique identifier that specifies the relationship between your account and the ad unit. |
Refresh Token | This is the refresh token the client application already received. |
Once you obtain this information, you must configure Admob’s Parameters in yourironSource Account. By adding the above information correctly, you will be able to take full advantage of Admob’s ad inventory and reporting data on theironSource Mediation platform.
- App ID
To retrieve your App ID, go to ‘Apps’ tab on the left side bar on Admob’s platform and click on ‘App Settings’ . You will then see the application’s settings, as well as the App ID. - Ad Unit ID
To retrieve your Ad Unit ID, go to ‘Apps’ tab on the left side bar on Admob’s platform and click on ‘Ad Units’. You will then see the application’s ad units, as well as the Ad Unit ID. - API KEY
- To retrieve your API KEY, you must first create a designated project for your app on the Google Cloud Console. If this is your first time creating a project, you will be asked to agree to the Terms of Service. Provide a name for the project and click ‘Create‘. It may take a few minutes to set set up your new project.
- Go to Getting Started, where you should select “Explore and enable APIs“:
- Next, go to ‘Credentials‘ in the left sidebar.
- Select ‘Create credentials‘ and click on ‘API Key‘ in the drop-down.
- This will automatically create an API Key for you and present it
- If you need to retrieve it later on, you will find the API Key under API Keys in the Credentials section:
- To retrieve your API KEY, you must first create a designated project for your app on the Google Cloud Console. If this is your first time creating a project, you will be asked to agree to the Terms of Service. Provide a name for the project and click ‘Create‘. It may take a few minutes to set set up your new project.
- Client ID & Client Secret
- To retrieve your Client ID & Client Secret, go to Google’s API Manager.
- Click on the API Project drop-down at the upper-left of the page, select ‘Create a project’ or select the project you already created for this app:
In the case you are creating a new project for this purpose, provide a Project name, Billing account and Location in the dialog box that appears and click ‘Create’: - In the left sidebar, select ‘Credentials’, then select the ‘OAuth consent screen’ tab. On this page, provide a Product Name. Click Save:
- In the left sidebar, select ‘Dashboard‘, and go to ‘ENABLE APIS AND SERVICES‘:
- Next, ‘Enable‘ the AdMob API:
- Select the Credentials tab in the left sidebar. Click the ‘Create Credentials’ drop-down and select ‘OAuth client ID’
- Select Web application, and provide a name for your app.In the fields below, you must enter https://developers.google.com/oauthplayground for at least one Authorized redirect URI. For example:
- Authorized JavaScript origins:
https://YOUR_NAMESPACE (Optional)
- Authorized redirect URI: https://developers.google.com/oauthplayground
- Authorized JavaScript origins:
- Click ‘Create‘ and you will be presented with your ‘Client ID‘ and ‘Client Secret‘:
- Refresh Token
- To retrieve your Refresh Token, go to the OAuth 2.0 Playground.
- Click the settings icon in the upper right corner. Uncheck the box labeled Force approval prompt and check Use your own OAuth credentials. Input your Client ID and Client Secret:
- Next, in Step 1: Select & Authorize APIS, enter ‘https://www.googleapis.com/auth/admob.report’ and click ‘Authorize APIs‘:
- Grant your project access to your AdMob data
- You should then receive the Authorization Code from Step 1 and will be able to click the Exchange authorization code for tokens button. Then you will get a Refresh token as well as an Access Token:
- App ID
Configure Admob’s Parameters intoironSource Account
- Once you have all of these parameters, log in to yourironSource account and go to ‘Monetize‘ ➣ ‘SETUP‘ ➣ ‘SDK Networks‘.
- Select Admob from the list of Manage Networks and enter the Admob ‘API Key‘, ‘ClientID‘, ‘Client Secret‘ and ‘Refresh Token‘ or click the ‘Login with Google‘ option.
Login with Google: - Click ‘Save‘. Admob will then be enabled in the Available Ad Networks table.
- Next, select the app on which you’d like to runironSource’s Mediation with Admob.
- Select Admob from the Setup list of Ad Networks and click on the tool Define icon. Then insert the ‘App ID’ and ‘Ad UnitID‘ under Interstitial, Rewarded Video or Banner Settings.
- Verify your integration with the Reporting API; this column will check your integration through the Reporting API and return three possible responses: Verified, Failed and No Response. Double check your integration and the information you entered above; then click ‘Retry‘ until you see ‘Verified’.
- Once you have all of these parameters, log in to yourironSource account and go to ‘Monetize‘ ➣ ‘SETUP‘ ➣ ‘SDK Networks‘.
Step 4. Add the Admob Adapter to Your Build
Unity Admob Sdk
Unity Integration Manager (Recommended)
Once you’ve completed SDK integration, you can download AdMob Adapter, using the Unity Integration Manager.
In your Unity Development platform, go to ironSource> Integration Manager.
If you already have the latest version of the adapters, the action button will be changed to “Updated”, and will be disabled.
Android (Manual Resolve)
To apply your changes, make sure you use the “Resolve” process. This will download all relevant artifacts, according to your choices. For detailed information see instructions here.
Add AdMob App ID
Android
As of V17.0.0 (Adapter version 4.3.1 onwards), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s AndroidManifest as a child of the
As of V17.0.0 (Adapter version 4.3.1 onwards), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s AndroidManifest as a child of the
<application></application>
tag:Replace the “[ADMOB_APP_ID]” with the APP ID value you retrieved in step 3.
Not doing so results in crashes originated with AdMob’s SDK. For more information please refer to AdMob’s guide.
Not doing so results in crashes originated with AdMob’s SDK. For more information please refer to AdMob’s guide.
iOS
As of V7.42.0 (Adapter version 4.3.3 onwards), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s plist as described here.
Alternatively, you can make this change programmatically
As of V7.42.0 (Adapter version 4.3.3 onwards), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s plist as described here.
Alternatively, you can make this change programmatically
Replace the “GADApplicationIdentifier” value with the APP ID value you retrieve in step 3.
Android Plugin Manual Integration
- Download the Admob Adapter for Android:
Download AdMob adapter and AdMob SDK (AAR) from here. - Add the Admob files to your Unity project:
Import the files into Assets/Plugins/Android/.Disclaimer:Plugin version 6.7.1To accommodate changes in Unity version 5.5, the ironSource Plugin version 6.7.1 requires Android Manifests to be added separately for the Plugin and mediation adapter. If you are updating your plugin or currently running on 6.7.1, make sure to add the manifest activities noted in theAndroid documentation. - As of V17.0.0 (Adapter version 4.3.1 onwards), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s AndroidManifest as a child of the
<application></application>
tag:Replace the “[ADMOB_APP_ID]” with the APP ID value you retrieved in step 3.
Not doing so results in crashes originated with AdMob’s SDK. For more information please refer to AdMob’s guide.
iOS Plugin Manual Integration
- Download the AdMob iOS Adapter:
Download AdMob adapter and AdMob SDK from here. - Add the AdMob files to your Unity project:
Import AdMob adapter file into Assets/Plugins/iOS. - As of V7.42.0 (Adapter version 4.3.3 onwards), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s plist as described here.
Alternatively, you can make this change programmaticallyReplace the “GADApplicationIdentifier” value with the APP ID value you retrieve in step 3.
Step 5. Update Info.plist (For iOS)
As of AdMob SDK V7.42.0 for iOS (Adapter version 4.3.3 + iOS / Unity ), AdMob’s SDK requires publishers to add their AdMob App ID to the app’s plist as described here.
Alternatively, you can make this change programmatically
Alternatively, you can make this change programmatically
Replace the “GADApplicationIdentifier” value with the APP ID value you retrieve in step 3.
Not doing so results in crashes originated with AdMob’s SDK. For more information please refer to AdMob’s guide.
Not doing so results in crashes originated with AdMob’s SDK. For more information please refer to AdMob’s guide.
Step 6. Additional Steps
Child-directed setting – COPPA
ironSource’s mediation platform lets publishers communicate AdMob Child-directed settings directly to the AdMob network.
This feature is enabled using ironSource SDK 6.14.0+, AdMob Unity Adapter 4.3.12+.
This feature is enabled using ironSource SDK 6.14.0+, AdMob Unity Adapter 4.3.12+.
Use the following syntax, to set AdMob setTagForChildDirectedTreatment with the parameter “True”:
Use the following syntax, to set AdMob setTagForChildDirectedTreatment with the parameter “False”:
To learn more about Child-directed settings Under AdMob network visit here.
here.
here.
Users under the age of consent – GDPR
ironSource’s mediation platform lets publishers communicate with AdMob network, a Tag For Users under the Age of Consent in Europe (TFUA) request.
This feature is enabled using ironSource SDK 6.14.0+, AdMob Unity Adapter 4.3.12+.
This feature is enabled using ironSource SDK 6.14.0+, AdMob Unity Adapter 4.3.12+.
Use the following syntax, to set setTagForUnderAgeOfConsent with “True”:
Use the following syntax, to set setTagForUnderAgeOfConsent with “False”:
To learn more about Child-directed settings Under AdMob network visit here.
here.
Note:here.
Verify Your Ad Network Integration
The ironSource SDK provides an easy way to verify that your mediation integration was completed successfully. To verify your ironSource and additional Ad Networks’ integration, follow this document.
Done!
You are now all set to deliver Admob Ads within your application!
You are now all set to deliver Admob Ads within your application!
![Chartboost Chartboost](/uploads/1/1/8/2/118218918/153527415.png)
What’s Next?
To leverage additional mediation ad networks, integrate the adapters and follow our integration guides.
AdMob Mediation is a feature that lets you serve ads to your apps from multiplesources, including the AdMob Network, third-party ad networks, and AdMobcampaigns. AdMob Mediationhelps maximize your fill rate and increase your monetization by sending adrequests to multiple networks to ensure you find the best available network toserve ads.Case study.
Google Admob Plugin For Unity
This guide is your one stop shop for integrating mediation into your AdMob app.It covers both Open Bidding (Beta) integrations and waterfall integrations.
Prerequisites
- Before you can integrate mediation for an ad format, you need to integratethat ad format into your app:
- New to mediation? Read Overview of AdMobmediation.
- For Open Bidding: Google Mobile Ads Unity plugin 4.2.0 or higher.
Initialize the Mobile Ads SDK
The quick start guide shows you how to initialize the Mobile AdsSDK.During that initialization call, mediation and Open Bidding adapters alsoget initialized. It is important to wait for initialization to complete beforeyou load ads in order to ensure full participation from every ad network on thefirst ad request.
The sample code below shows how you can check each adapter's initializationstatus prior to making an ad request. Wps desktop version.
Choosing your mediation networks
AdMob mediation supports several ad sources, witha mix of waterfall and Open Bidding integrations. Select an ad source belowfor integration instructions specific to that ad source.
Ad Network | Banner | Interstitial | Rewarded | Open Bidding (Beta) | ANO support |
---|---|---|---|---|---|
No third-party SDKs required | |||||
Ad Generation | Bidding only | ||||
Chocolate Platform | Bidding only | ||||
Fluct | Bidding only | ||||
Improve Digital | Bidding only | ||||
Index Exchange | Bidding only | ||||
Media.net | Bidding only | ||||
MobFox | Bidding only | ||||
OpenX | Bidding only | ||||
PubMatic | Bidding only | ||||
Rubicon | Bidding only | ||||
Sharethrough | Bidding only | ||||
Smaato | Bidding only | ||||
Sonobi | Bidding only | ||||
TripleLift | Bidding only | ||||
UnrulyX | Bidding only | ||||
Yieldmo | Bidding only | ||||
YieldOne | Bidding only | ||||
Open source and versioned | |||||
AdColony | Country-specific | ||||
AppLovin | Country-specific | ||||
Chartboost | Country-specific | ||||
Country-specific | |||||
Fyber Marketplace | Country-specific | ||||
i-mobile | Country-specific | ||||
InMobi | Country-specific | ||||
ironSource | Country-specific | ||||
maio | Global | ||||
MoPub | Country-specific | ||||
myTarget | Country-specific | ||||
nend | Global | ||||
Tapjoy | Country-specific | ||||
Unity Ads | Country-specific | ||||
Verizon Media | Country-specific | ||||
Vungle | Country-specific | ||||
Non-open source | |||||
AdFalcon | Country-specific | ||||
Flurry | Country-specific | ||||
Leadbolt | Country-specific | ||||
LG U+AD | None | ||||
Tencent GDT | None | ||||
Vpon | None | ||||
Zucks | Country-specific |
Open source and versioned adapters
If an adapter is labeled with 'Open source and versioned' in the above table,it means the adapter source code is open-sourced in Google's GitHub repository(Android |iOS),enabling you to debug issues yourself should you choose to do so.
It also means that there are versioned adapter builds in Google's bintray repository(Android |iOS),built against a specific version of the third-party ad network SDK.Click on a specific ad network's guide for more details.
Adapter versioning
The adapter versioning scheme for versioned adapters is
<third-partySDK version>.<adapter patch version>
. For example, if anad network releases a new SDK version 1.2.3
, a new adapter version 1.2.3.0
will be released to Bintray after being tested against that new SDK.If an adapter needs updating outside the lifecycle of a third-party SDK release,the patch version will increase. A bug fix for adapter version
1.2.3.0
willbe released in version 1.2.3.1
.ANO support
When you configure multiple ad networks for mediation, you have tospecify what order to request these networks by setting their respective CPM.This can be difficult to manage, since ad network performance changes overtime.
Ad network optimization (ANO)is a feature that enables you to generate the highest CPM from the adnetworks in your mediation chain by automating the process of ordering themediation chain to maximize revenue.
The mediation networks table above has the following values forANO support: Slack online.
ANO support | What it means |
---|---|
Bidding only | The ad network only participates in Open Bidding. ANO support is not applicable. |
Country-specific | eCPM values are automatically updated on your behalf on a per-countrybasis. This is the optimal type of optimization. |
Global | A single global eCPM value is automatically updated on your behalf. |
None | You must manually configure an eCPM value for that ad network. |
Click on a specific ad network's guide for details on how to configureANO for that network.
Note: Only ad networks that are Open source and versioned have specificinstructions for setting up ANO on thatnetwork.Banner ads mediation
Make sure to disable refresh in all third-party ad networks UI for banner adunits used in AdMob mediation. This will prevent a double refresh since AdMobalso triggers a refresh based on your banner ad unit's refresh rate.
Open Bidding troubleshooting
When integrating an Open Bidding partner that requires their SDK, the followingsymptons indicate an improper integration:
- The Open Bidding Report shows significantly fewer ad requests to that partnerthan you expect.
- The
a3p
parameter in any request after the first ad requestis missing or is short (30 characters or less)
a3p
parameter regardless of whether you have configured Open Bidding.Follow this checklist to make sure your setup is correct:
- In the AdMob UI, your AdMob ad unit targets a mediation group that hasan Open Bidding entry configured for that third-party ad network.
- In the AdMob UI, your AdMob ad unit belongs to the same AdMob app ID that youpassed to the Google Mobile Ads SDK.
- You initialized the mobile ads SDK, andverified the adapter status is
READY
prior to loading an ad.