Add AdMob App

In order to avoid your AdMob account being judged as Invalid traffic during the test, we strongly recommend that you use the test ID provided by AdMob to configure the following before the app is on the app store. After passing the test, change the parameters.

For test mode operation guidelines, please refer to AdMob Test Mode.

1. Click Apps → ADD YOUR FIRST APP.admob_en_1.jpg

If you already have other apps under your AdMob account, please click Apps → ADD APP in the left navigation bar.admob_en_2.jpg

2. Select your corresponding platform. If your app is not yet available in the app store, please select No.admob_en_3.jpg

3. If your app is already available, please enter the app store URL, select your app below and click SEARCH.admob_en_4.jpg

4. After creation, you will get the App ID.admob_en_5.jpg


AdMob Ad Unit ID

1. Click AppsSelect your appAd unitsGET STARTED.admob_en_6.jpg

2. Select and create the corresponding ad unit.admob_en_7.jpg

  • Banneradmob_en_8.jpg

  • Interstitialadmob_en_9.jpg

  • Rewardedadmob_en_10.jpg

  • Native advancedadmob_en_11.jpg

3. After the creation is complete, you will get the Ad unit ID, which will be used in the AdTiming configuration later.admob_en_12.jpg


The meaning of each field in the Ad unit

Field Description and Suggestions
Ad unit name

Enter a unique name and description that will help you find this ad unit later. we recommend that you name it:

AdTiming Placement ID_Ad Network Name_ Country_Floor Price
E.g: 6539_AdMob_USA_40

Ad type

Choose the ad type(s) allowed for this ad unit. You can choose any combination.

  • Checking all boxes is recommended.
  • Unchecking any of the boxes might limit the revenue generated by the ad unit.
  • Unchecking all of the boxes will result in an error. You must choose at least one ad type for each ad unit.

The ad types available depend on the ad format you select.

Automatic refresh

Determines how often a new ad request is generated for this ad unit and a new ad is shown to the user.

Recommended: Google optimized.

Google optimized: Calculated using AdMob historical data. Learn more.

Custom: You can set it to refresh once within 30-150 seconds.

Disabled: It means there is no restriction on the refresh frequency.

eCPM floor

Define the minimum eCPM that the AdMob Network needs to meet to serve an ad.

Note: Setting a high eCPM floor may cause a decrease in overall fill rate.

Frequency capping

Limits the number of times ads are shown to the same person per minute, per hour, or per day. Learn more

Server-side verification

Adds an additional layer of validation when a user finishes viewing a video ad in addition to standard client-side callbacks.

Note: Post back may take a few minutes after it's triggered.

Learn more


AdTiming Platform Configuration

Ad Network

1. Enter the AdTiming publisher platform, click on Ad Network → click Edit behind Google AdMob.___14.jpg

2. After filling in the relevant information, click Save.___15___.jpg

  • App ID:
    You can get your App ID in AdMob background AppsApp settings.admob_en_13.jpg
  • Currency: Select the corresponding currency unit in your AdMob reporting module.

You can click Sign in with Google to pull API data for Google login authorization (if you already have other apps under your account that have completed this step, you can directly select the corresponding Publisher ID).___17.jpg

You can also choose Manual to manually configure API data pull parameters (if you have logged in and authorized, you do not need to perform the following operations). ___23.jpg

Enter the Google Console Platform and log in to your Google account. If you log in to the Google Information Center for the first time, please select the country or region where your AdMob account is located.

  • API Key
    • Click Select Project NEW PROJECT.admob_en_14.jpg 
    • The Project name and Location can use the default name and location, and can also be customized.admob_en_15.jpg 
    • In the Getting Started section below, click Explore and enable APIs.admob_en_16.jpg 
    • Click Credentials → CREATE CREDENTIALS API Key.admob_en_17.jpg 
    • Get your API Key, and fill in the AdTiming platform.admob_en_18.jpg

  • Client ID & Client Secret
    • In the search box above, search for AdSense Management API, and then click ENABLE.admob_en_19.jpg 
    • Click on the navigation menu in the upper left corner and select API and Services OAuth consent screen.admob_en_20.jpg 
    • Select External and click CREATE.admob_en_21.jpg 
    • Save after entering the application name (no need to fill in other fields).admob_en_22.jpg 
    • Enter the credential interface, click Create credential OAuth client ID.admob_en_23.jpg 
    • Select Web Application for application type, and add redirect URI, click CREATE.admob_en_24.jpg 
    • Obtain the Client ID and Client Secret, and fill in the AdTiming platform.admob_en_25.jpg

  • Refresh Token
    • Enter OAuth 2.0 Playground, click the settings button on the right, check Use your own OAuth credentials, and enter your Client ID and Client Secret.admob_en_26.jpg 
    • In Step 1, select AdSense Management APIv1.4 →, and click Authorize APIs.admob_en_27.jpg 
    • Log in to your account and authorize the project.___28.jpg 
    • Click Exchange authorization code for tokens, get Refresh Token, and fill in AdTiming platform.admob_en_29.jpg


Add Instance

1.Click Mediation → Ad unit → Add Instance.admob_guide_18.jpg

3. After filling in the relevant information, click Save.admob_guide_19.jpg

  • Ad NetwrokSelect AdMob.

  • Instance Name: You can define the name of your ad unit yourself, we suggest you name it: AdTiming Placement ID_Ad Network Name_ Country_Floor Price. (E.g: 6539_AdMob_USA_40)

  • Unit ID:You can enter the AdMob backend, enter the Ad units in the left navigation bar, find the AdMob Unit ID on the right side of the interface, and paste it into the AdTiming platform.admob_en_30.jpg


AdMob Test Mode

It’s important to enable test ads so that you can click on ads without charging Google advertisers. If you click on too many ads in non-test mode, your account may be reported for violating AdMob’s Invalid traffic policy.
Learn more, AdMob test ads for Android and AdMob test ads for iOS.

Configure the following AdMob test Unit ID on the AdTiming platform.

  • AdMob Unit IDadmob_guide_21.jpg

Android-AdMob Unit ID for Test

Ad format AdMob Unit ID for Test
Rewarded Video ca-app-pub-3940256099942544/5224354917
Interstitial ca-app-pub-3940256099942544/1033173712
Native Advanced ca-app-pub-3940256099942544/2247696110
Banner ca-app-pub-3940256099942544/6300978111


iOS-AdMob Unit ID for Test

Ad format AdMob Unit ID for Test
Rewarded Video ca-app-pub-3940256099942544/1712485313
Interstitial ca-app-pub-3940256099942544/4411468910
Native Advanced ca-app-pub-3940256099942544/3986624511
Banner ca-app-pub-3940256099942544/2934735716


Add the AdMob SDK&Adapter to Your Build


1.  Add the AdMob SDK

  • Add the following in your project-level build.gradle file.
 allprojects {
   repositories {

       maven {
           url ""
  • Add the following in your application-level build.gradle file.
dependencies {
    implementation ''


2. Add the AdMob Adapter

    AdTiming supports both Gradle dependencies and Manual download mechanisms.

       Gradle dependencies

  • Add the following in your project-level build.gradle file.
 allprojects {
   repositories {

        maven {
            url ""
  • Add the following in your application-level build.gradle file.
implementation 'com.adtiming.adapters:admob:3.5.1@aar'

       Manual download

  • Download the AdMob Adapter from here.
  • Add the AdMob Adapter to Your Project
    Add the AdmobAdapter-x.x.x.aar to the libs folder in your Android Project.
  • Make sure you add the following to your Gradle build file under the dependencies section:
implementation (name:'AdmobAdapter-x.x.x', ext:'aar')


3. Update Android Manifest.xml

  • Configure Android Manifest.xml
android:value="admob_app_id" />


4. For Proguard Users Only
If you are using ProGuard with the AdMob adapter, you must add the following code to your ProGuard configuration (Android Studio: or Eclipse: proguard-project.txt):

-keep public class** {
 public *;
-keep public class** {
 public *;


5. Tips for using AdMob Mediation Solutions 

  • If you use instances with AdTiming mediation, please remove the AdMob code from your project.
  • If you use Instances with AdMob for waterfall management, please make sure only one initialization method was called for a specific user.
     AdtAds.init(this, adtimingKey, new Callback() {
             public void onSuccess() {


          public void onError(String message) {

      MobileAds.initialize(context, admobKey);



AdTiming supports both Cocoapods and Manualdownload mechanisms.


To Integrate the AdMob SDK with Cocoapods, enter the following line in your podfile and you are good to go!

pod 'Google-Mobile-Ads-SDK'

Manual Download

1. Download the AdMob framework

  • you can find the lastest AdMob SDK here.

2. Add the AdMob frameworks to your Project

Update Info.plist

If you have added AdMob SDK in your project, you need to update your application Info.plist file, add string value your AdMob application ID GADApplicationIdentifier key. You can find your app ID in the AdMob interface.


Please Note: Be sure to use your actual AdMob app ID instead of the ID listed above .

Importrant! This step is required since the Google Mobile Ads SDK version 7.42.0. Failure to add this Info.plist entry will result in a crash with the following message: "The Google Mobile Ads SDK was initialized incorrectly."

You are now all set to deliver AdMob Ads within your application.

Was this article helpful?
1 out of 1 found this helpful



Please sign in to leave a comment.