Ad inspector (Beta)

Stay organized with collections Save and categorize content based on your preferences.
Ad inspector is an in-app overlay that enables authorized devices to perform real-time analysis of test ad requests directly within a mobile app. It is included with the Google Mobile Ads SDK version 8.10.0 and higher, and can be enabled with no coding required.

Using ad inspector, you can:

  • Inspect your ad units
  • Check whether your ads are filling as expected
  • Identify errors and view details about how to resolve them
  • View the details for each Open Bidding ad network per request
  • View the mediation details for each ad network per request
  • Test individual third-party Open Bidding or waterfall mediation ad sources
  • Verify that you've correctly configured each ad unit for Open Bidding and waterfall mediation

This guide demonstrates how to launch and use the different features in ad inspector.

Prerequisites

In order to use ad inspector, you need to:

  • Use Google Mobile Ads SDK version 8.10.0 or higher.

Launch ad inspector

Ad inspector can be launched from anywhere in your app in the following ways:

  1. Use the launch button from the debug menu.
  2. Use the gesture that you selected in the ad inspector settings.
  3. Programmatically using the provided API.

Launch using debug menu

No changes are needed to your app to launch ad inspector through the debug menu. Simply find an ad served by your Ad Manager network, and touch and hold the ad with two fingers to open the debug menu. Then, select Open ad inspector.

If you didn't link your device, you may be asked to sign in to your Ad Manager account.

You can also select Ad inspector settings from the debug settings and choose a gesture that can open ad inspector in the future without having to go through the debug menu.

Launch programmatically

Ad inspector can also be launched programmatically:

[GADMobileAds.sharedInstance presentAdInspectorFromViewController:viewController
  completionHandler:^(NSError *error) {
    // Error will be non-nil if there was an issue and the inspector was not displayed.
}];

This API works for test devices registered programmatically.

Ensure that the view controller passed to this API is already fully visible on screen (viewDidAppear: had been called). If the view controller passed is in the process of being displayed (for example, if the above API is called in the view controller's viewDidLoad function), then the presentation of ad inspector will fail.

View and troubleshoot ad units

Once launched, the main ad inspector screen appears, containing a list of all ad units the device has made ad requests for since ad inspector was enabled during this app session. The list also contains ad units with Open Bidding enabled and will dim those with no ad requests yet:

Ad units are ordered chronologically with most recently completed requests first. As shown above, known ad units with no requests completed are dimmed.

We recommend initializing the Google Mobile Ads SDK before using ad inspector.

View mediation waterfall details for an ad unit

Tap an ad unit to view its SDK request log, which gives details about the mediation waterfall up to the point when the ad was filled (or the waterfall ended without a fill) for the latest ad requests.

Each request can be expanded using the disclosure indicator to show the results of the mediation waterfall for that request, along with any error and latency that was applicable for that request.

For third-party ad sources, the error messages are sent directly from the ad source. If you need more information, consult your third-party ad source.

View bidding details for an ad unit

If you are new to Open Bidding, read the introduction to Open Bidding.

In the SDK request log, you can see the Open Bidding ad sources that are called in the ad request. Tap an ad unit in the SDK request log to view the details of each ad source in the Open Bidding auction.

The Open Bidding results are sorted in order to bring the actionable items closer to the top of the list:

  • At the top is the ad network that won the auction.

  • Next are the ad networks with issues. You can follow the troubleshooting steps for the issues at the end of the Open Bidding FAQs.

  • Then, there are the ad networks that had no ads returned or did not bid. This is a possible indicator of many different issues with the ad source as it might not have bid due to its setup or decisioning. You can refer to the ad source's setup guide or Open Bidding FAQs for more support.

  • Finally, at the bottom of the list are the ad networks that lost the Open Bidding auction.

Mediation waterfall can place the ad source that won the Open Bidding auction according to their eCPM value.

A mediation waterfall is the result of multiple yield groups competing for the same inventory. You can add up to ten third-party yield partners to a single yield group, including both Open Bidding yield partners and mediation for mobile apps yield partners.

Advanced ad unit debugging

When troubleshooting ad units, it can be helpful to dig into the ad request itself to identify where something is failing or to share with Google Support to aid in debugging. Tap the menu icon at the top of the waterfall chain and select Share request string to export a full ad request. This saves you the trouble of having to run network traces on your own app.

Additionally, you can view decoded third-party bidding parameters by tapping the Third-party bidding parameter option on the same menu as the request string. This provides details about which third-party bidding parameters might be having issues, helping you to debug your app or validate that a network is collecting its signals successfully.

View available adapters

Navigate to the Adapters tab, where you can find a list of all third-party adapters associated with the ad sources in the bidding or mediation configurations in your app, and their initialization statuses. In the event the adapter is not found or fails to initialize, consult the help center article to troubleshoot the issue.

In addition to supported third-party adapters, you can also view custom event adapters; custom events enable publishers to use an ad network that AdMob does not support. Custom events can be identified in the adapter list alongside standard third-party adapters by their class name as shown below:

In addition to providing class name and status information, ad inspector also provides the labels that were assigned to the class in the AdMob UI.

Perform a single ad source test

Ad inspector has a feature to restrict ad requests in your app to only serve ads from a single Open Bidding or waterfall mediation ad source. This lets you verify that you've correctly implemented the third-party adapter and that the ad source is serving as expected.

To enable this feature, toggle the Single ad source test switch at the bottom of the screen. This displays the following ad source selection dialog:

You must initialize the Google Mobile Ads SDK before you can use single ad source testing.

You can then select a single ad source to test. Once an ad source is selected, the following screen appears:

The single ad source test setting applies to any future ad requests you make in the same session. However, it won't apply to any previously cached ads in that session that have not yet been shown. Force restarting your app is recommended when applying a single ad source test in order to invalidate any cached ads that could be served instead of your chosen ad source receiving a request.

After restarting your app, all ad unit placements will attempt to show an ad from the selected network only. Launching ad inspector when a single ad source test is active will show the active test ad source:

In single ad source test mode, all ad requests attempt to fill with the selected ad source, regardless of whether that ad source was configured for bidding or mediation for the requested ad unit. This means that if the ad source you're testing is not in the mediation waterfall for an ad unit, you'll see a "No fill" error message.

In a single ad source test, you can tap an ad unit to view its SDK request log. This lets you know whether the ad source filled the ad requests made after single ad source testing is enabled. If the ad source failed to load an ad, an error message appears describing the error.

If you've added multiple instances of the selected ad source to a mediation waterfall, you'll see each instance of the call to the ad source in the waterfall until the ad is either filled or the waterfall ended without a fill.

Stop a single ad source test

To stop the test, toggle off the switch:

A confirmation message then appears over the following restart screen:

We recommend a force restart of your app after stopping the test in order to invalidate any cached ads for the ad source that was tested.