Get started

Set up a test device

There is a known issue where ad requests from test devices registered in the AdMob UI always return no fill. Learn more.

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

Depending on your SDK version, you may see 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 banner ad 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. 

Using mediation and test devices

If you’re using AdMob mediation or Open Bidding, 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://apps.admob.com.
  2. Click Settings in the sidebar.
  3. Click the Test devices tab.
  4. Click Add test device.  
  5. Select the platform of your device.
  6. 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.
  7. Enter your Advertising ID/IDFA. Learn how to find your advertising ID/IDFA
  8. Click Done
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.

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://apps.admob.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..
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:

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?

Need more help?

Sign in for additional support options to quickly solve your issue