Notification

Get personalized optimization tips, understand your account health and set up completion on the improved "My AdMob page".

Get started

Set up a test device

In this article: 

Setting up a test device lets you safely test production ads and verify your implementation code without violating AdMob’s invalid traffic policy. 

When you configure your Android or iOS device as a test device, the AdMob Network sends production ads in test mode to your device using the ad unit IDs you've created in your AdMob account. 

Note: If you haven’t created any ad units yet, you can use demo ads to test your ad implementation. Learn more about the difference between demo ads and test devices

Ads in test mode

Ads served by the AdMob Network will display a label that lets you know you’re in test mode. Look for the test mode label before clicking on an ad. Clicking on production ads can result in a policy violation for invalid traffic. Learn more about using mediation and test devices

Note: Depending on your SDK version, you may have a label that says Test Ad instead of Test Mode.

Click to view example ads in test mode

Example interstitial ad in test mode:

Example of an interstitial ad in Ad Mob in test mode.

Example banner ad in test mode:

Example of a banner in test mode.

Example native ad in test mode:

Note: Native ads in test mode will have [Test mode] in the headline of the ad instead of the test mode label. 

Example of an Ad Mob native ad in test mode.

Use test devices with AdMob Mediation

If you’re using AdMob Mediation, test mode applies to ads served from the AdMob Network only and does not apply to ads served by other networks. 

Be sure that you've instructed your third-party ad source will serve ads in test mode. If you click on live ads served from a third-party ad source, you may receive a policy violation.

Testing instructions for third-party ad sources are available on Google Developer for Android, iOS, and Unity.

Add a test device

  1. Sign in to your AdMob account at https://admob.google.com.
  2. Click Settings in the sidebar.
  3. Click the Test devices tab.
  4. Click Add test device.  
    Note: The maximum number of test devices you can add is 250.
  5. Enter a device name. Consider using a name that will help you quickly identify your devices in your AdMob account.
    Note: The device name will be visible to anyone who has access to your AdMob account. 
  6. Select the platform of your device.
  7. Enter your Advertising ID/IDFA. Learn how to find your advertising ID/IDFA
  8. Select a gesture to use to activate ad inspector:
    1. None. If you select none, you can still activate ad inspector with an API call. Learn more about Ad inspector
    2. Shake 
    3. Flick twice  
  9. Click Save
Note: Ads in test mode can take up to 1 hour to show in apps. In some cases, it may take up to 24 hours for test ads to show in apps.

You can also add a test device in your app programmatically using the Mobile Ads SDK request configuration. Review the instructions on Google Developer for Android, iOS, and Unity.

Edit a test device

  1. Sign in to your AdMob account at https://admob.google.com.
  2. Click Settings in the sidebar.
  3. Click the Test devices tab.
  4. Click the name of the test device you want to edit.
  5. You can change the device name. Try to use a name that will help you quickly identify your devices in your AdMob account.
    Note: The device name will be visible to anyone who has access to your AdMob account
  6. Change the gesture you want to use to activate ad inspector. Learn more about Ad inspector.
  7. Click Save & Close.

Remove a test device

Removing a test device means that the AdMob Network will start serving live ads to the device. Note that clicking on live ads can result in a policy violation for invalid traffic.

  1. Sign in to your AdMob account at https://admob.google.com.
  2. Click Settings in the sidebar.
  3. Click the Test devices tab.
  4. Select the device you want to remove. 
  5. Click Remove.  
  6. Click Remove in the confirmation dialog.
Note: Removing ads in test mode can take up to 1 hour. In some cases, it may take up to 24 hours for test ads to be removed in apps.

Find your advertising ID/IDFA

There are several ways to find an ID to use in your AdMob account to configure your device as a test device. Note that Android devices use the advertising ID and iOS devices use the IDFA. 

Android

On Android devices, you can find your advertising ID in your device settings. Navigate to Settings, click Google, and then Ads:

Where to find an Android device ID.

You can also find the advertising ID programmatically. Learn how to get a user-resettable advertising ID

iOS

Currently, Apple does not surface the IDFA by default on iOS devices. However, it can be retrieved using third-party apps. Check the App Store for apps that can retrieve your advertising ID, or find your IDFA programmatically.

Was this helpful?

How can we improve it?
true
Show your support to promote DEI in Gaming by turning intentions into action!

Check out the newly launched Diversity in Gaming website, where you can find video stories and written pledges from global gaming developers. This campaign centers on 3 pillars: diverse teams, diverse games and diverse audiences showing how diversity is not just good for gamers, but for business as well. Show your support by taking the pledge to promote DEI in Gaming and share it on social!

Learn More

Search
Clear search
Close search
Google apps
Main menu
4272590718131698266
true
Search Help Center
true
true
true
true
true
73175
false
false