教程:测试新的 AdMob 广告格式的采用情况
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
第 1 步:使用 AdMob 创建新的广告单元变体以进行测试
如需开始,您需要先创建一个新的广告单元,然后在应用代码中实施广告。
本教程使用插页式激励广告格式作为正在测试采用情况的新格式。不过请注意,在阅读本教程时,您可以按照类似的步骤来实施和测试任何其他广告格式。
确保您满足本教程的前提条件
您自己的应用(iOS、Android 或 Unity 项目)
您的应用已注册为与 AdMob 应用相关联的 Firebase 应用(了解详情)
您有权访问您应用的关联 AdMob 账号,并且有权创建新的广告单元
有权访问您应用的关联 Firebase 项目,并且有权创建和管理 Remote Config 和 A/B Testing 以及查看 Google Analytics
您首选的 IDE
创建广告单元
在 AdMob 账号中,创建您希望针对用户测试的广告单元。
在本教程中,创建一个新的插页式激励广告单元。其他广告单元设置对本特定教程不重要,因此请选择适合您的应用的设置。
AdMob 界面,其中显示了如何创建新的插页式激励广告单元">
AdMob 界面,其中显示了如何为新广告单元设置奖励金额">
实施广告单元
AdMob 界面,其中显示了新的广告单元 ID 和集成 SDK 的说明">
创建广告单元后,AdMob 会为您提供该广告单元的唯一 广告单元 ID。请记得在 AdMob 账号中找到此广告单元 ID 的位置,因为您需要使用它在您的应用中实施广告。
按照屏幕上的说明集成 Google Mobile Ads (AdMob) SDK,并在您的应用中实施该新的广告单元。
创建新的插页式激励广告单元后,您的 AdMob 账号中现在应该为此特定应用列出了两个广告单元。在本教程的后续步骤中,您将配置 Firebase 以在使用相同广告展示位置的 A/B 测试中使用这些广告单元中的每一个广告单元。
arrow_back_ios简介
第 2 步:在 Firebase 控制台中设置 A/B 测试arrow_forward_ios
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["Step 1: Use AdMob to create a new ad unit variant for testing\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| Introduction: [Test new AdMob ad format adoption using Firebase](/docs/tutorials/test-ad-format-adoption) |\n| **Step 1: Use AdMob to create a new ad unit variant for testing** \u003cbr /\u003e |\n| Step 2: [Set up an A/B test in the Firebase console](/docs/tutorials/test-ad-format-adoption/step-2) |\n| Step 3: [Handle Remote Config parameter values in your app's code](/docs/tutorials/test-ad-format-adoption/step-3) |\n| Step 4: [Start the A/B test and review the test results in the Firebase console](/docs/tutorials/test-ad-format-adoption/step-4) |\n| Step 5: [Decide whether to roll out the new ad format](/docs/tutorials/test-ad-format-adoption/step-5) |\n\n\u003cbr /\u003e\n\nTo get started, you first need to create a new ad unit and then implement the ad\nin your app's code.\n\nThis tutorial uses the [rewarded\ninterstitial](https://support.google.com/admob/answer/9884467) ad\nformat as the new format being tested for adoption. When reading this tutorial,\nthough, keep in mind that you could follow similar steps to implement and test\nany other ad format.\n\n\u003cbr /\u003e\n\n**Make sure you have the prerequisites for this tutorial**\n\n\u003cbr /\u003e\n\n- Your own app (iOS, Android, or Unity project)\n\n- Your app registered as a Firebase App that's linked to an AdMob App\n ([learn more](//support.google.com/admob/answer/6383165))\n\n- Access to your app's associated AdMob account, with permissions to create\n new ad units\n\n- Access to your app's associated Firebase project, with permissions to create\n and manage Remote Config and A/B Testing as well as to view\n Google Analytics\n\n- Your preferred IDE\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n**Create an ad unit**\n\nIn your AdMob account, create the ad unit that you want to test with your\nusers.\n\nFor this tutorial, create a single new *Rewarded interstitial* ad unit. The\nother ad unit settings aren't important for this particular tutorial, so select\nsettings that are appropriate for your app.\n\nAdMob UI showing how to create a new rewarded interstitial ad unit\"\\\u003e\nAdMob UI showing how to set the reward amount for the new ad unit\"\\\u003e\n\n\n**Implement the ad unit**\n\nAdMob UI displaying new ad unit ID and instructions for integrating the SDK\"\\\u003e\n\nAfter you create the ad unit, AdMob provides you with the ad unit's unique\n**ad unit ID** . Remember where to find this ad unit ID in your AdMob account\nas you'll need it to implement the ad into your app.\n\nFollow the on-screen instructions to integrate the\nGoogle Mobile Ads (AdMob) SDK and to implement the new ad unit into your app.\n\nAfter creating a new rewarded interstitial ad unit, you should now have two ad\nunits listed in your AdMob account for this specific app. In the next steps\nof this tutorial, you'll configure Firebase to use each of these ad units in an\nA/B test using the *same ad placement*.\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\n[arrow_back_ios**Introduction**](/docs/tutorials/test-ad-format-adoption)\n[**Step 2** : Set up an A/B test in the Firebase consolearrow_forward_ios](/docs/tutorials/test-ad-format-adoption/step-2)\n\n\u003cbr /\u003e\n\n*** ** * ** ***"]]