כדי להתחיל, קודם צריך ליצור יחידות מודעות חדשות ולאחר מכן להטמיע את המודעות
בקוד של האפליקציה.
המדריך הזה משתמש
מודעת מעברון
בתור מקרה בדיקה לדוגמה. עם זאת, כשתקראו את המדריך הזה,
לתשומת ליבכם: אפשר לבצע שלבים דומים כדי להטמיע מכסת תדירות ולבדוק אותה
לפורמטים אחרים של מודעות.
חשוב לוודא שיש לכם את הדרישות המוקדמות לקבלת המדריך הזה
אפליקציה משלכם (פרויקט ב-iOS, ב-Android או ב-Unity)
גישה לחשבון AdMob המשויך לאפליקציה, עם הרשאות ליצירה
יחידות מודעות חדשות
גישה לפרויקט Firebase המשויך לאפליקציה, עם הרשאות ליצירה
ולנהל את Remote Config ואת A/B Testing, וגם להציג
Google Analytics
סביבת הפיתוח המשולבת (IDE) המועדפת עליכם
יצירה של יחידת מודעות
ממשק המשתמש של AdMob שמראה איך יוצרים יחידה חדשה של מודעות מעברון">
בחשבון AdMob, יוצרים יחידת מודעות מעברון חדשה.
מגדירים את מכסת התדירות:
מרחיבים את הקטע Advanced settings בממשק המשתמש של AdMob ומפעילים את האפשרות Frequency capping.
מציינים את תדירות הצגת המודעות שרוצים לבדוק. בוחרים תדירות
גבוהה מהתדירות שבה נעשה שימוש ביחידת המודעות הקיימת.
לדוגמה, נניח שביחידת מודעות המעברון הקיימת יש 4 חשיפות
לכל משתמש ל-10 דקות, אבל מומלץ לבדוק אם אפשר להגדיל
מקסימום ל-6 חשיפות למשתמש ב-10 דקות.
אנחנו ממליצים לשמור את משך הזמן (כלומר, "ל-10 דקות")
עקביים בכל יחידות המודעות שמתבצעת השוואה. שאר ההגדרות של יחידת המודעות,
אבל הן לא חשובות למדריך הספציפי הזה, לכן צריך לבחור הגדרות
שמתאימים לאפליקציה שלכם.
ממשק המשתמש של AdMob שמראה איך להגדיר את מכסת התדירות ליחידת המודעות החדשה"
class="screen">
חוזרים על השלבים שלמעלה אם רוצים להוסיף עוד יחידת מודעות מעברון
כדאי לבדוק מכסת תדירות עוד יותר גבוהה. עבור המדריך הזה, יצרנו
יחידת מודעות עם 8 חשיפות למשתמש ב-10 דקות.
הטמעה של יחידת המודעות
ממשק המשתמש של AdMob שבו מוצגים מזהה חדש של יחידת מודעות והוראות לשילוב ה-SDK">
אחרי שיוצרים כל יחידת מודעות, מקבלים מ-AdMob את הערך הייחודי של יחידת המודעות
מזהה יחידת המודעות. חשוב לזכור איפה נמצא מזהה יחידת המודעות הזה בחשבון AdMob, כי תצטרכו אותו כדי להטמיע את המודעה באפליקציה.
פועלים לפי ההוראות במסך כדי להטמיע את
SDK של Google Mobile Ads (AdMob) ולהטמיע את יחידת המודעות החדשה באפליקציה.
אחרי שיוצרים שתי יחידות של מודעות מעברון חדשות, צריכות להופיע שלוש יחידות מודעות בחשבון AdMob של האפליקציה הספציפית הזו. בשלבים הבאים במדריך הזה, תגדירו ל-Firebase להשתמש בכל אחת מיחידות המודעות האלה בבדיקה מסוג A/B באמצעות אותו מיקום מודעה.
ממשק המשתמש של AdMob שבו מוצגות כל יחידות המודעות לאפליקציה"
class="screen">
[null,null,["עדכון אחרון: 2025-07-24 (שעון UTC)."],[],[],null,["Step 1: Use AdMob to create new ad unit variants for testing\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------|\n| Introduction: [Optimize AdMob ad frequency using Firebase](/docs/tutorials/optimize-ad-frequency) |\n| **Step 1: Use AdMob to create new ad unit variants for testing** \u003cbr /\u003e |\n| Step 2: [Set up an A/B test in the Firebase console](/docs/tutorials/optimize-ad-frequency/step-2) |\n| Step 3: [Handle Remote Config parameter values in your app's code](/docs/tutorials/optimize-ad-frequency/step-3) |\n| Step 4: [Start the A/B test and review the test results in the Firebase console](/docs/tutorials/optimize-ad-frequency/step-4) |\n| Step 5: [Decide whether to roll out the new ad format](/docs/tutorials/optimize-ad-frequency/step-5) |\n\n\u003cbr /\u003e\n\nTo get started, you first need to create new ad units and then implement the ads\nin your app's code.\n\nThis tutorial uses the\n[interstitial](https://support.google.com/admob/answer/9884467) ad\nformat as the example test case. When reading this tutorial, though, keep in\nmind that you could follow similar steps to implement and test frequency capping\nfor other ad formats.\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\nAdMob UI showing how to create a new interstitial ad unit\"\\\u003e\n\n1. In your AdMob account, create a new *Interstitial* ad unit.\n\n2. Set the frequency cap:\n\n 1. Expand the **Advanced settings** in the AdMob UI, then enable\n **Frequency capping**.\n\n 2. Specify an ad frequency that you want to test. Choose a frequency that's\n higher than the frequency used in your existing ad unit.\n\n For example, suppose your existing interstitial ad unit shows 4 impressions\n per user per 10 minutes, but you want to test out if you can increase the\n cap to *6 impressions* per user per 10 minutes.\n\n We recommend keeping the time duration (that is, \"per 10 minutes\")\n consistent across the ad units being compared. The other ad unit settings,\n though, aren't important for this particular tutorial, so select settings\n that are appropriate for your app.\n AdMob UI showing how to set the frequency capping for the new ad unit\" class=\"screenshot\"\\\u003e\n3. Repeat the steps above if you'd like to add another interstitial unit to\n test out an even higher frequency cap. For this tutorial, we created another\n ad unit with *8 impressions* per user per 10 minutes.\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 each 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 two new interstitial ad units, you should now have three ad units\nlisted in your AdMob account for this specific app. In the next steps of\nthis tutorial, you'll configure Firebase to use each of these ad units in an A/B\ntest using the *same ad placement*.\nAdMob UI displaying all ad units for the app\" class=\"screenshot\"\\\u003e\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\n[arrow_back_ios**Introduction**](/docs/tutorials/optimize-ad-frequency)\n[**Step 2** : Set up an A/B test in the Firebase consolearrow_forward_ios](/docs/tutorials/optimize-ad-frequency/step-2)\n\n\u003cbr /\u003e\n\n*** ** * ** ***"]]