Tutorial: Test adoption of new AdMob ad formats

Step 1: Use AdMob to create a new ad unit variant for testing



To get started, you first need to create a new ad unit and then implement the ad in your app's code.

This tutorial uses the rewarded interstitial ad format as the new format being tested for adoption. When reading this tutorial, though, keep in mind that you could follow similar steps to implement and test any other ad format.

  • Your own app (iOS, Android, or Unity project)

  • Your app registered as a Firebase App that's linked to an AdMob App (learn more)

  • Access to your app's associated AdMob account, with permissions to create new ad units

  • Access to your app's associated Firebase project, with permissions to create and manage Remote Config and A/B Testing as well as to view Google Analytics

  • Your preferred IDE

Create an ad unit

In your AdMob account, create the ad unit that you want to test with your users.

For this tutorial, create a single new Rewarded interstitial ad unit. The other ad unit settings aren't important for this particular tutorial, so select settings that are appropriate for your app.

<span class=AdMob UI showing how to create a new rewarded interstitial ad unit"> <span class=AdMob UI showing how to set the reward amount for the new ad unit">

Implement the ad unit

<span class=AdMob UI displaying new ad unit ID and instructions for integrating the SDK">

After you create the ad unit, AdMob provides you with the ad unit's unique ad unit ID. Remember where to find this ad unit ID in your AdMob account as you'll need it to implement the ad into your app.

Follow the on-screen instructions to integrate the Google Mobile Ads (AdMob) SDK and to implement the new ad unit into your app.

After creating a new rewarded interstitial ad unit, you should now have two ad units listed in your AdMob account for this specific app. In the next steps of this tutorial, you'll configure Firebase to use each of these ad units in an A/B test using the same ad placement.




Introduction Step 2: Set up an A/B test in the Firebase console



Developer documentation for Firebase

Updated Feb 25, 2025

Developer documentation for Firebase

Updated Feb 25, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated May 9, 2023