教學課程:測試採用新 AdMob 廣告格式的情形
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
步驟 1:使用 AdMob 建立新的廣告單元變化版本進行測試
如要開始使用,您必須先建立新的廣告單元,然後在應用程式的程式碼中導入廣告。
本教學課程使用插頁式獎勵廣告格式,做為測試採用的新格式。不過,請注意,您可以按照類似的步驟導入及測試任何其他廣告格式。
請務必具備本教學課程的先決條件
您的應用程式 (iOS、Android 或 Unity 專案)
您的應用程式已註冊為已連結至 AdMob 應用程式的 Firebase 應用程式 (瞭解詳情)
存取應用程式相關聯的 AdMob 帳戶,並有權限建立新的廣告單元
可存取與應用程式相關聯的 Firebase 專案,且有權限建立和管理 Remote Config 和 A/B Testing,以及查看 Google Analytics
您偏好的 IDE
建立廣告單元
在 AdMob 帳戶中,建立要向使用者測試的廣告單元。
在本教學課程中,您將建立一個新的插頁式獎勵廣告單元。其他廣告單元設定對本教學課程而言並不重要,因此請選取適合您應用程式的設定。
AdMob UI:如何建立新的獎勵插頁式廣告單元">
AdMob UI:如何設定新廣告單元的獎勵金額">
導入廣告單元
AdMob UI 顯示新的廣告單元 ID 和整合 SDK 的操作說明">
建立廣告單元後,AdMob 會提供廣告單元的專屬廣告單元 ID。請記下 AdMob 帳戶中的廣告單元 ID,因為您需要這個 ID 才能在應用程式中導入廣告。
按照畫面上的指示,整合 Google Mobile Ads (AdMob) SDK,並將新的廣告單元導入應用程式。
建立新的獎勵式插頁廣告單元後,您應會在 AdMob 帳戶中,為此特定應用程式列出兩個廣告單元。在本教學課程的後續步驟中,您將設定 Firebase,以便在 A/B 測試中使用相同的廣告刊登位置,使用這些廣告單元。
arrow_back_ios前言
步驟 2:在 Firebase 控制台arrow_forward_ios中設定 A/B 測試
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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*** ** * ** ***"]]