للبدء، عليك أولاً إنشاء وحدات إعلانية جديدة ثم تنفيذ الإعلانات.
في رمز التطبيق.
يستخدم هذا البرنامج التعليمي شكل الإعلان
البيني كمثال لإطار الاختبار. عند قراءة هذا البرنامج التعليمي، ضع في
يمكنك اتباع خطوات مماثلة لتطبيق ميزة تحديد عدد مرات الظهور واختبارها
مع أشكال الإعلانات الأخرى
التأكّد من استيفاء المتطلبات الأساسية لهذا الدليل التوجيهي
تطبيقك الخاص (مشروع iOS أو Android أو Unity)
تطبيقك مسجَّل كتطبيق Firebase مرتبط بتطبيق AdMob
(مزيد من المعلومات)
الوصول إلى حساب AdMob المرتبط بتطبيقك، مع أذونات الإنشاء
وحدات إعلانية جديدة
إمكانية الوصول إلى مشروع Firebase المرتبط بتطبيقك، مع أذونات الإنشاء
وإدارة Remote Config وA/B Testing بالإضافة إلى عرض
Google Analytics
بيئة تطوير البرامج (IDE) المفضّلة لديك
إنشاء وحدة إعلانية
واجهة مستخدم AdMob توضح كيفية إنشاء وحدة إعلانية بينية جديدة">
في حسابك على AdMob، أنشئ وحدة إعلانية بينية جديدة.
تحديد عدد مرات الظهور:
وسِّع الإعدادات المتقدمة في واجهة مستخدم AdMob، ثم فعِّلها
تحديد عدد مرّات الظهور:
حدِّد معدّل تكرار الإعلان الذي تريد اختباره. اختر معدل تكرار
أعلى من معدل التكرار المستخدم في وحدتك الإعلانية الحالية.
على سبيل المثال، لنفترض أن وحدة الإعلانات البينية الحالية تُظهر 4 مرات ظهور.
لكل مستخدم في كل 10 دقائق، ولكنك ترغب في اختبار ما إذا كان يمكنك زيادة
الحد الأقصى إلى 6 مرات ظهور لكل مستخدم في كل 10 دقائق.
ننصحك بالحفاظ على المدة الزمنية (أي "لكل 10 دقائق").
متسقة عبر الوحدات الإعلانية التي تتم مقارنتها تتيح لك إعدادات الوحدات الإعلانية الأخرى
إلا أنها ليست مهمة لهذا البرنامج التعليمي بالتحديد، لذا حدد الإعدادات
المناسبة لتطبيقك.
واجهة مستخدم AdMob توضح كيفية إعداد ميزة تحديد عدد مرّات الظهور للوحدة الإعلانية الجديدة"
class="لقطة شاشة">
كرر الخطوات المذكورة أعلاه إذا كنت تريد إضافة وحدة بينية أخرى إلى
اختبر تحديد عدد مرات ظهور أعلى. بالنسبة لهذا البرنامج التعليمي، أنشأنا مقطعًا آخر
8 مرات ظهور لكل مستخدم في كل 10 دقائق.
تنفيذ الوحدة الإعلانية
واجهة مستخدم AdMob تعرض رقم تعريف وحدة إعلانية جديدة وتعليمات لدمج حزمة SDK">
بعد إنشاء كل وحدة إعلانية، يزوِّدك AdMob بالميزة الفريدة للوحدة الإعلانية.
الرقم التعريفي للوحدة الإعلانية. تذكَّر مكان العثور على رقم تعريف الوحدة الإعلانية في حسابك على "AdMob".
لأنّك ستحتاج إليه لتنفيذ الإعلان في تطبيقك.
اتبع التعليمات الظاهرة على الشاشة لدمج
حزمة تطوير البرامج (SDK) Google Mobile Ads (AdMob) ولتنفيذ الوحدة الإعلانية الجديدة في تطبيقك.
بعد إنشاء وحدتين جديدتين للإعلانات البينية، من المفترض أن يكون لديك الآن ثلاث وحدات إعلانية
مدرجة في حسابك على AdMob لهذا التطبيق تحديدًا. في الخطوات التالية من
في هذا البرنامج التعليمي، عليك أولاً إعداد Firebase لاستخدام كل وحدة من هذه الوحدات الإعلانية في نموذج A/B
باستخدام موضع الإعلان نفسه.
واجهة مستخدم AdMob تعرض جميع الوحدات الإعلانية للتطبيق"
class="screenshot">
تاريخ التعديل الأخير: 2025-07-24 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-24 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["Step 1: Use AdMob to create new ad unit variants for testing\n\n\u003cbr /\u003e\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*** ** * ** ***"]]