يوضّح هذا الدليل كيفية تلقّي إعلانات اختبارية لعملية دمج إعلاناتك. ننصحك باستخدام إعلانات اختبارية أثناء التطوير حتى تتمكّن من اختبار سلوك النقر بدون التأثير في إحصاءات حملاتك المستندة إلى الحجز أو تحصيل رسوم من المعلِنين.
أسرع طريقة لتفعيل الاختبار هي استخدام الوحدات الإعلانية التجريبية التي توفّرها Google.
هذه الوحدات الإعلانية غير مرتبطة بحسابك على "مدير إعلانات Google"، لذلك من غير المحتمل أن يُنشئ حسابك زيارات غير صالحة عند استخدام هذه الوحدات الإعلانية.
في ما يلي وحدات إعلانية تجريبية تشير إلى تصاميم إعلانات اختبارية محدّدة لكل شكل إعلان:
نقطة مهمة: تم ضبط وحدات الإعلانات التجريبية هذه لعرض الإعلانات المُباعة مباشرةً في "مدير الإعلانات"، ولا تعرض الإعلانات المُباعة مباشرةً أداة AdChoices.
تفعيل الأجهزة الاختبارية (وضع الاختبار)
إذا كنت تريد إجراء اختبارات أكثر دقة باستخدام إعلانات ذات شكل نهائي، يمكنك الآن إعداد جهازك على أنّه جهاز اختباري واستخدام معرّفات الوحدات الإعلانية التي أنشأتها في واجهة مستخدم "مدير إعلانات Google".
اتّبِع الخطوات التالية لإضافة جهازك كجهاز اختباري.
إضافة جهاز الاختبار بطريقة آلية
إذا كنت تريد اختبار الإعلانات في تطبيقك أثناء تطويره، اتّبِع الخطوات أدناه لتسجيل جهازك الاختباري آليًا.
حمِّل تطبيقك الذي يتضمّن إعلانات وأرسِل طلب إعلان.
تحقَّق من وحدة التحكّم بحثًا عن رسالة مشابهة لما يلي:
<Google> To get test ads on this device, set:
GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers =
@[ @"2077ef9a63d2b398840261c8221a0c9b" ];
أعِد تشغيل تطبيقك. إذا كان الإعلان من Google، سيظهر لك التصنيف وضع الاختبار في منتصف أعلى الإعلان (بانر أو إعلان بيني أو إعلان مقابل مكافأة):
بالنسبة إلى "الإعلانات المدمجة مع المحتوى المتقدّمة"، يتم إضافة السلسلة
وضع الاختبار إلى بداية مادة عرض العنوان.
يمكن النقر على الإعلانات التي تحمل تصنيف وضع الاختبار بدون أن يؤثّر ذلك سلبًا عليك. لن تظهر الطلبات ومرّات الظهور والنقرات على الإعلانات في وضع الاختبار في تقارير حسابك.
يُرجى الاطّلاع على القسم التالي لمعرفة التفاصيل.
اختبار التوسّط
لا تعرض الوحدات الإعلانية التجريبية من Google سوى إعلانات Google. ولاختبار إعداد التوسّط، عليك استخدام أسلوب تفعيل أجهزة الاختبار.
لا تعرض الإعلانات التي يتم التوسّط فيها التصنيف وضع الاختبار. تتحمّل أنت مسؤولية التأكّد من تفعيل وضع الاختبار لكل شبكة من شبكات التوسّط حتى لا تبلغ هذه الشبكات عن حسابك بسبب النشاط غير الصالح. لمزيد من المعلومات، يُرجى الرجوع إلى دليل التوسّط الخاص بكل شبكة.
إذا لم تكن متأكدًا مما إذا كان محوّل شبكة إعلانات التوسّط يوفّر وضعًا اختباريًا، من الأفضل تجنُّب النقر على الإعلانات من تلك الشبكة أثناء التطوير. يمكنك استخدام السمة adNetworkClassName مع أي من أشكال الإعلانات لمعرفة شبكة الإعلانات التي عرضت الإعلان الحالي.
تاريخ التعديل الأخير: 2025-09-02 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-09-02 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis guide explains how to use test ads during development to test clickthrough behavior without affecting campaign stats or charging advertisers.\u003c/p\u003e\n"],["\u003cp\u003eYou can quickly enable testing using Google-provided demo ad units, or configure your device as a test device and use your own ad unit IDs.\u003c/p\u003e\n"],["\u003cp\u003eiOS simulators are automatically configured as test devices, while physical devices require adding the device ID programmatically for testing.\u003c/p\u003e\n"],["\u003cp\u003eWhen using test ads, a "Test mode" label will appear on Google ads (except mediated ads), ensuring clicks are safe and won't affect reporting.\u003c/p\u003e\n"],["\u003cp\u003eFor mediation testing, enable test mode for each network to avoid invalid activity flags; refer to individual mediation guides for network-specific instructions.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/test-ads \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/test-ads \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/test-ads \"View this page for the Unity platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/test-ads \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThis guide explains how to receive test ads for your ads integration. It's\nrecommended that you use test ads during development so you can test\nclickthrough behavior without affecting your reservation campaigns' stats or\ncharging advertisers.\n\nPrerequisite\n\n- Complete [Get Started](/ad-manager/mobile-ads-sdk/ios/quick-start).\n\nDemo ad units\n\nThe quickest way to enable testing is to use Google-provided demo ad units.\nThese ad units are not associated with your Ad Manager\naccount, so there's no risk of your account generating invalid traffic when\nusing these ad units.\n| **Key Point:** Make sure you replace these IDs with your own ad unit ID before publishing your app.\n\nHere are demo ad units that point to specific test creatives for each format:\n\n| Ad format | Demo ad unit ID |\n|-------------------------------------------------------------------------------|----------------------------------------------|\n| [App Open](/ad-manager/mobile-ads-sdk/ios/app-open) | `/21775744923/example/app-open` |\n| [Adaptive Banner](/ad-manager/mobile-ads-sdk/ios/banner) | `/21775744923/example/adaptive-banner` |\n| [Fixed Size Banner](/ad-manager/mobile-ads-sdk/ios/banner/fixed-size) | `/21775744923/example/fixed-size-banner` |\n| [Interstitial](/ad-manager/mobile-ads-sdk/ios/interstitial) | `/21775744923/example/interstitial` |\n| [Rewarded Ads](/ad-manager/mobile-ads-sdk/ios/rewarded) | `/21775744923/example/rewarded` |\n| [Rewarded Interstitial](/ad-manager/mobile-ads-sdk/ios/rewarded-interstitial) | `/21775744923/example/rewarded-interstitial` |\n| [Native](/ad-manager/mobile-ads-sdk/ios/native) | `/21775744923/example/native` |\n| [Native Video](/ad-manager/mobile-ads-sdk/ios/native/video-ads) | `/21775744923/example/native-video` |\n\nKey Point: These demo ad units are configured to serve direct-sold ads in Ad Manager, and direct-sold ads do not return AdChoices.\n\nEnable test devices (Test mode)\n\nIf you want to do more rigorous testing with production-looking ads, you can\nnow configure your device as a test device and use your own ad unit IDs that\nyou've created in the Ad Manager UI.\n\n\nFollow the steps below to add your device as a test device.\n| **Key Point:** iOS simulators are automatically configured as test devices.\n\nAdd your test device programmatically\n\nIf you want to test ads in your app as you're developing, follow the\nsteps below to programmatically register your test device.\n\n1. Load your ads-integrated app and make an ad request.\n2. Check the console for a message that looks like this: \n\n ```\n \u003cGoogle\u003e To get test ads on this device, set:\n GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers =\n @[ @\"2077ef9a63d2b398840261c8221a0c9b\" ];\n ```\n Copy your test device ID to your clipboard.\n3. Modify your code to set the test device ID through\n [`testDeviceIdentifiers`](/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADRequestConfiguration#testdeviceidentifiers):\n\n Swift \n\n let testDeviceIdentifiers = [\"2077ef9a63d2b398840261c8221a0c9b\"]\n MobileAds.shared.requestConfiguration.testDeviceIdentifiers = testDeviceIdentifiers \n https://github.com/googleads/googleads-mobile-ios-examples/blob/66edbf824f3d3cfa30bae69bb6b86004b01674b8/Swift/advanced/APIDemo/APIDemo/Snippets/RequestConfigurationSnippets.swift#L23-L24\n\n Objective-C \n\n NSArray *testDeviceIdentifiers = @[ @\"2077ef9a63d2b398840261c8221a0c9b\" ];\n GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = testDeviceIdentifiers; \n https://github.com/googleads/googleads-mobile-ios-examples/blob/66edbf824f3d3cfa30bae69bb6b86004b01674b8/Objective-C/advanced/APIDemo/APIDemo/Snippets/RequestConfigurationSnippets.m#L28-L29\n\n | **Caution:** Be sure to remove the code that sets these test devices before you release your app.\n4. Re-run your app. If the ad is a Google ad, you'll see a **Test mode** label\n centered at the top of the ad (banner, interstitial, or rewarded ad):\n\n | **Note:** To see the **Test mode** label, you need to be using an SDK version of 7.59.0 or higher. In versions 7.26.0 to 7.58.0 the label will say Test Ad.\n\n For native advanced ads, the headline asset is prepended with the string\n **Test mode**.\n\nAds with this **Test mode** label are safe to click. Requests, impressions, and\nclicks on ads in test mode won't show up in your account's reports.\n| **Note:** Mediated ads do *NOT* render a **Test mode** label. See the following section for details.\n\nTesting with mediation\n\nGoogle's demo ad units only show Google ads. To test your mediation\nconfiguration, you must use the [enable test devices](#enable_test_devices)\napproach.\n\nMediated ads do *not* render a **Test mode** label. You are responsible for\nensuring that test mode is enabled for each of your mediation networks so that\nthese networks don't flag your account for invalid activity. See each network's\nrespective [mediation guide](/ad-manager/mobile-ads-sdk/ios/mediation) for\nmore information.\n\nIf you aren't sure whether a mediation ad network adapter provides a test mode,\nit is safest to avoid clicking on ads from that network during development. You\ncan use the\n[`adNetworkClassName`](/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView#adnetworkclassname)\nproperty on any of the ad formats to figure out which ad network served the\ncurrent ad."]]