이제 앱에서 새 광고 단위가 구현되었으므로 이 광고 단위의 성능을 이해할 수 있도록 A/B 테스트를 설정해야 합니다. 테스트 목적은 물론 테스트의 대상 사용자를 정의합니다. 또한 테스트 대안 (앱에 있는 서로 다른 광고 단위)을 정의하고 앱에서 이러한 대안의 표시를 제어하는 Remote Config 매개변수를 설정해야 합니다.
Firebase A/B Testing는 다음 제품을 사용해서 앱에 광고 단위를 추가할 때의 효과를 테스트하고 분석합니다.
Firebase A/B Testing (이 단계) - 테스트 목표 및 구성 가능한 매개변수를 정의합니다.
Firebase Remote Config (다음 단계) - 매개변수 구성을 처리하는 로직을 코드에 추가합니다.
Google Analytics (백그라운드에서 실행) - 구성의 영향을 측정합니다.
새 A/B 테스트 시작
새 광고 형식 채택에 대한 제어된 테스트를 시작하려면 먼저 Firebase Console의 A/B Testing 섹션으로 이동합니다. 실험 만들기를 클릭한 다음 Remote Config를 선택합니다.
기본사항 설정
기본사항 섹션에서 실험 이름을 정의하고 실험 설명을 제공합니다.
A/B 테스트의 기본사항 설정 방법을 보여주는 Firebase Console UI"
class="screenshot">
타겟팅 설정
타겟팅 섹션에서 실험 대상이 되는 iOS 또는 Android 앱을 선택합니다.
실험에 노출되는 사용자 비율을 설정합니다. 이 튜토리얼에서 새 광고 단위는 사용자의 10%를 대상으로 합니다. 그렇다고 해서 모든 사용자의 10%에게 새 광고 형식이 표시되는 것은 아니고, 사용자의 10%가 새 광고 형식이 표시되거나 표시되지 않는 실험에 포함됩니다.
나머지 설정은 모두 기본값으로 둡니다.
A/B 테스트의 타겟팅을 설정하는 방법을 보여주는 Firebase Console UI"
class="screenshot">
목표 설정
Firebase A/B Testing는 우수한 대안을 결정하기 위해 기본 측정항목을 추적하지만, 앱의 다른 중요 요소들에 서로 다른 구성이 미치는 영향을 이해할 수 있도록 보조 측정항목을 추가할 수도 있습니다.
이 튜토리얼에서는 추정 AdMob 수익 최적화가 기본 목표이므로 드롭다운 메뉴에서 이를 선택합니다.
(선택사항)A/B Testing에서 총 추정 수익 또는 다른 유지율과 같은 추가 측정항목을 추적하려면 측정항목 추가를 클릭하여 선택합니다.
A/B 테스트의 목표 설정 방법을 보여주는 Firebase Console UI"
class="screenshot">
대안 설정
A/B 테스트 구성의 마지막 단계는 새 광고 단위를 사용자에게 표시할지 여부를 제어하는 Remote Config 매개변수를 정의하는 것입니다.
대안 섹션에서 기준 카드의 매개변수 필드에 SHOW_NEW_AD_KEY라는 새 매개변수를 입력하여 만듭니다.
SHOW_NEW_AD_KEY 매개변수에 대해 다음 설정을 사용해서 대안 섹션 설정을 마칩니다.
기준 대안: false로 설정된 값(즉, 새 광고 형식 표시 안 함)
대안 A 대안: true로 설정된 값(즉, 새 광고 형식 표시)
이 튜토리얼에서 기준 대안은 사용자에게 새 광고 형식을 전혀 표시하지 않습니다. 하지만 대안 A 대안은 사용자 중 하위 집합에 새 광고 형식을 표시합니다. 이것은 매개변수의 부울 값으로 제어됩니다. 이러한 값은 여기에서 Firebase A/B Testing에 설정되지만 실제로 처리를 위해 이러한 값을 앱 코드로 전송하는 것은 Firebase Remote Config입니다. 다음 단계에서 Remote Config를 설정합니다.
A/B 테스트의 대안 설정 방법을 보여주는 Firebase Console UI"
class="screenshot">
검토를 클릭하여 실험이 예상한 대로 설정되었는지 확인합니다. 하지만 시험을 실제로 시작하기 전에 Firebase에서 수신된 true 또는 false 매개변수 값에 앱 코드가 대응하는 방법을 정의해야 합니다.
다음 단계로 이동하여 Remote Config가 SHOW_NEW_AD_KEY 매개변수를 처리하는 방법을 구현합니다.
[null,null,["최종 업데이트: 2025-07-24(UTC)"],[],[],null,["Step 2: Set up an A/B test in the Firebase console\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nNow that you have a new ad unit implemented in your app, you need to set up an\nA/B test that will help you understand how this ad unit performs. You'll define\nwhich users to target in the test as well as your testing goals. You'll also\nneed to define your test variants (the different ad units in your app) and set\nup the Remote Config parameter which will control the display of the\nvariants in your app.\n\nFirebase A/B Testing utilizes the following products to test and analyze the\neffects of adding an ad unit to your app:\n\n- Firebase A/B Testing (this step) --- define goals and configurable parameters for your test\n- Firebase Remote Config (next step) --- add logic to your code to handle the configuration of the parameters\n- Google Analytics (runs behind the scenes) --- measures the impact of the configurations\n\n**Initiate a new A/B test**\n\nTo initiate a controlled test over adopting a new ad format, start by navigating\nto the *A/B Testing* section of the Firebase console. Click **Create\nexperiment** , then select **Remote Config**.\n\n**Set up the basics**\n\nIn the *Basics* section, define the experiment name and provide the\nexperiment description.\nFirebase console UI showing how to set up the basics of A/B test\" class=\"screenshot\"\\\u003e\n\n**Set up targeting**\n\n1. In the *Targeting* section, select the iOS or Android app that the\n experiment will target.\n\n2. Set the percentage of users who will be exposed to the experiment. For this\n tutorial, the new ad unit will be tested with 10% of your users. Note that\n this doesn't mean that 10% of all your users will see the new ad format;\n this means that 10% of your users will be part of the experiment to see or\n not see the new ad format.\n\n Leave all other settings as their defaults.\n\nFirebase console UI showing how to set up the targeting of A/B test\" class=\"screenshot\"\\\u003e **Note:** Due to the different user behavior patterns observed from iOS and Android users, each A/B test can only target either the iOS or Android version of your app.\n|\n| To run the same test for both versions of your app, set up an experiment\n| for one version of your app, then duplicate the test settings in a second\n| experiment. In this second experiment, select the other version of your app\n| in the *Targeting* section.\n\n**Set up your goals**\n\nFirebase A/B Testing tracks a primary metric to determine the winning\nvariant, but it also allows you to add secondary metrics to understand the\nimpacts of different configurations on other important factors for your app.\n\n1. For this tutorial, *Estimated AdMob revenue* optimization is the primary\n goal, so select it from the dropdown menu.\n\n2. *(Optional)* If you want A/B Testing to track additional metrics, like\n *Estimated total revenue* or different retention rates, select those by\n clicking **Add metric**.\n\nFirebase console UI showing how to set up the goals of A/B test\" class=\"screenshot\"\\\u003e\n\n**Set up the variants**\n\nThe last step of configuring an A/B test is defining a Remote Config\nparameter that controls whether the new ad unit will be shown to users.\n\n1. In the *Variants* section, create a new parameter named\n `SHOW_NEW_AD_KEY` by typing it in the *Parameter* field of the\n *Baseline* card.\n\n2. Finish setting up the *Variants* section using the following settings\n for the `SHOW_NEW_AD_KEY` parameter:\n\n - ***Baseline*** variant: *Value* set to `false` (which means: do ***not*** show new ad format)\n - ***Variant A*** variant: *Value* set to `true` (which means: show new ad format)\n\n For this tutorial, the *Baseline* variant ***will not show*** the new ad\n format to users at all, but the *Variant A* variant ***will show*** the\n new ad format to a small subset of users. This is controlled by the\n parameter's boolean value. These values are set here in\n Firebase A/B Testing, but it's actually Firebase Remote Config\n that sends these values to your app's code for handling. You'll set up\n Remote Config in the next step.\n | **Note:** In your own future tests, if you set up various experiments and variants, we recommend giving variants meaningful names to easily track the test results later on.\n\nFirebase console UI showing how to set up the variants of A/B test\" class=\"screenshot\"\\\u003e\n\nClick **Review** to make sure your experiment is set up as expected. However,\nbefore you can actually start the experiment, you need to define how your app's\ncode will react to the `true` or `false` parameter value received from Firebase.\nProceed to the next step to implement how Remote Config handles the\n`SHOW_NEW_AD_KEY` parameter.\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\n[arrow_back_ios**Step 1** : Use AdMob to create a new ad unit variant](/docs/tutorials/test-ad-format-adoption/step-1)\n[**Step 3** : Handle Remote Config parameter valuesarrow_forward_ios](/docs/tutorials/test-ad-format-adoption/step-3)\n\n\u003cbr /\u003e\n\n*** ** * ** ***"]]