إعلانات البانر الذكية
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
اختيار النظام الأساسي:
Android
iOS
Unity
إعلانات البانر الذكية هي وحدات إعلانية تعرض إعلانات بانر بعرض الشاشة على أي حجم شاشة على جميع الأجهزة في أي اتجاه. ترصد "إعلانات البانر الذكية" عرض الجهاز في اتجاهه الحالي وتنشئ عرض الإعلان بهذا الحجم.
يتم استخدام ثلاثة مقاييس طول للإعلانات في "إعلانات البانر الذكية":
ارتفاع الإعلان |
ارتفاع الشاشة |
32 وحدة بكسل مستقلة الكثافة |
≤ 400 وحدة بكسل مستقلة الكثافة |
50 وحدة بكسل مستقلة الكثافة |
> 400 وحدة بكسل مستقلة الكثافة و≤ 720 وحدة بكسل مستقلة الكثافة |
90 وحدة بكسل مستقلة الكثافة |
أكبر من 720 وحدة بكسل مستقلة الكثافة |
يبلغ ارتفاع "البانرات الذكية" عادةً 50 بكسل مستقل الكثافة في الوضع العمودي و32 بكسل مستقل الكثافة في الوضع الأفقي على الهواتف. على الأجهزة اللوحية، يبلغ الارتفاع عادةً 90 وحدة بكسل مستقلة عن الكثافة في كلا الاتجاهين.
عندما لا يكون الإعلان المصوّر كبيرًا بما يكفي لشغل المساحة المخصّصة بالكامل، سيتم توسيط الصورة وملء المساحة على كلا الجانبين.

لاستخدام "إعلانات البانر الذكية"، حدِّد AdSize.SmartBanner
لحجم الإعلان عند إنشاء BannerView
. على سبيل المثال:
// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-09-02 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-09-02 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eSmart Banners are responsive ad units that adjust their size to fit the width of the device screen across various devices and orientations.\u003c/p\u003e\n"],["\u003cp\u003eThey utilize three ad heights (32 dp, 50 dp, 90 dp) based on the screen height to ensure optimal display.\u003c/p\u003e\n"],["\u003cp\u003eOn phones, Smart Banners typically have a height of 50 dp in portrait and 32 dp in landscape, while on tablets, they are usually 90 dp in both orientations.\u003c/p\u003e\n"],["\u003cp\u003eWhen using Smart Banners, developers need to specify \u003ccode\u003eAdSize.SmartBanner\u003c/code\u003e when creating a \u003ccode\u003eBannerView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConsider using adaptive banners as a newer alternative for enhanced ad experiences.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/banner/smart \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/banner/smart \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/banner/smart \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\n| **Tip:** Try the newer [adaptive banners](/ad-manager/mobile-ads-sdk/unity/banner/anchored-adaptive) instead.\n\nSmart Banners are ad units that render screen-width banner ads on any screen\nsize across different devices in either orientation. Smart Banners detect the\nwidth of the device in its current orientation and create the ad view that size.\n\nThree ad heights are implemented in smart banners:\n\n| Ad height | Screen height |\n|-----------|------------------------|\n| 32 dp | ≤ 400 dp |\n| 50 dp | \\\u003e 400 dp and ≤ 720 dp |\n| 90 dp | \\\u003e 720 dp |\n\nTypically, Smart Banners on phones have a height of 50 dp in portrait and 32 dp\nin landscape. On tablets, height is normally 90 dp in both orientations.\n\nWhen an image ad isn't large enough to take up the entire allotted space, the\nimage will be centered, and the space on either side will be filled in.\n\nTo use Smart Banners, specify the `AdSize.SmartBanner` for the ad size when\ncreating a `BannerView`. For example: \n\n // Create a Smart Banner at the top of the screen.\n BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);"]]