إطلاق أداة فحص الإعلانات
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
اختيار النظام الأساسي:
Android
iOS
Unity
Flutter
قبل اختبار عملية دمج الإعلانات، عليك تشغيل "أداة فحص الإعلانات" في تطبيقك.
تتضمّن هذه الصفحة معلومات حول كيفية تشغيل "أداة فحص الإعلانات"
باستخدام الإيماءات
وكيفية تشغيلها
برمجيًا.
المتطلبات الأساسية
قبل المتابعة، يُرجى اتّباع الخطوات التالية:
- أكمِل جميع العناصر في قسم
المتطلبات الأساسية لإنشاء حساب على
AdMob وإعداد جهازك الاختباري وإعداد حزمة تطوير البرامج (SDK) لإعلانات Google على الأجهزة الجوّالة
وتثبيت أحدث إصدار.
اختيار خيار الإطلاق
يمكنك تشغيل "فاحص الإعلانات" بالطرق التالية:
- استخدِم الإيماءة التي اخترتها في واجهة مستخدم AdMob بعد تسجيل جهاز اختباري. لمزيد من التفاصيل، يُرجى الاطّلاع على مقالة إعداد جهاز اختبار.
- برمجيًا من خلال حزمة "SDK لإعلانات Google على الأجهزة الجوّالة"
تشغيل التطبيقات باستخدام الإيماءات
لتشغيل "أداة فحص الإعلانات" باستخدام إيماءة، نفِّذ الإيماءة التي أعددتها في واجهة مستخدم AdMob لجهاز الاختبار، مثل التدوير السريع مرّتين أو الهزّ. لمزيد من التفاصيل، يُرجى الاطّلاع على مقالة اختبار تطبيقك باستخدام "أداة فحص الإعلانات".
بعد ضبط إيماءة في واجهة مستخدم AdMob، يُرجى الانتظار بعض الوقت حتى يتم نشرها. أرسِل طلب إعلان من خلال حزمة تطوير البرامج (SDK) لإعلانات Google على الأجهزة الجوّالة لتسجيل إعداد الإيماءات على جهازك الاختباري. إذا لم يؤدِّ تنفيذ الإيماءة إلى فتح "أداة فحص الإعلانات"، حاوِل تحميل إعلان وإعادة تشغيل تطبيقك واختبار الإيماءة مرة أخرى.
التشغيل آليًا
افتح "فاحص الإعلانات" من خلال تنفيذ ما يلي:
Java
MobileAds.openAdInspector(
context,
new OnAdInspectorClosedListener() {
public void onAdInspectorClosed(@Nullable AdInspectorError error) {
// Error will be non-null if ad inspector closed due to an error.
}
});
Kotlin
MobileAds.openAdInspector(context) { error ->
// Error will be non-null if ad inspector closed due to an error.
}
تعمل هذه الطريقة مع أجهزة الاختبار المسجَّلة آليًا أو في واجهة مستخدم AdMob.
لمزيد من التفاصيل، يُرجى الاطّلاع على مقالة تفعيل الأجهزة الاختبارية.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-09-02 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-09-02 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["Select platform: [Android](/admob/android/ad-inspector/launch-ad-inspector \"View this page for the Android platform docs.\") [iOS](/admob/ios/ad-inspector/launch-ad-inspector \"View this page for the iOS platform docs.\") [Unity](/admob/unity/ad-inspector/launch-ad-inspector \"View this page for the Unity platform docs.\") [Flutter](/admob/flutter/ad-inspector/launch-ad-inspector \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nBefore you test your ad integration, you must launch ad inspector in your app.\nThis page covers how to launch ad inspector\nusing gestures\nand how to launch\nprogrammatically.\n\nPrerequisites\n\nBefore you continue, do the following:\n\n- Complete all items in the initial [Prerequisites](/admob/android/ad-inspector#prerequisites) to create an AdMob account, set your test device, initialize Google Mobile Ads SDK, and install the latest version.\n\nChoose a launch option\n\nYou can launch ad inspector in the following ways:\n\n- Use the gesture you selected in the AdMob UI after registering a test device. For details, see [Set up a test device](https://support.google.com/admob/answer/9691433).\n- Programmatically through the Google Mobile Ads SDK.\n\nLaunch using gestures\n\nTo launch ad inspector with a gesture, perform the gesture, such as a double\nflick or shake, that you configured in AdMob UI for your test\ndevice. For more details, see\n[Test your app with ad inspector](https://support.google.com/admob/answer/10159602).\n\nAfter you set a gesture in the AdMob UI, allow time to propagate. Make an ad\nrequest through the Google Mobile Ads SDK to register your\ngesture setting with your test device. If performing your gesture fails to\nopen in ad inspector, try to load an ad, restart your app, and test the gesture\nagain.\n\nLaunch programmatically\n\nLaunch ad inspector by running the following: \n\nJava \n\n MobileAds.openAdInspector(\n context,\n new OnAdInspectorClosedListener() {\n public void onAdInspectorClosed(@Nullable AdInspectorError error) {\n // Error will be non-null if ad inspector closed due to an error.\n }\n }); \n https://github.com/googleads/googleads-mobile-android-examples/blob/ccc290a583d7f552bdcf81ea76adc05beaa43f0b/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/AdInspectorSnippets.java#L28-L34\n\nKotlin \n\n MobileAds.openAdInspector(context) { error -\u003e\n // Error will be non-null if ad inspector closed due to an error.\n } \n https://github.com/googleads/googleads-mobile-android-examples/blob/ccc290a583d7f552bdcf81ea76adc05beaa43f0b/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/AdInspectorSnippets.kt#L25-L27\n\nThis method works for test devices registered\nprogrammatically or in the AdMob UI.\nFor more details, see\n[Enable test devices](/admob/android/test-ads#enable_test_devices)."]]