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

لاستخدام "إعلانات البانر الذكية"، حدِّد 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-02-20 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-02-20 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Smart Banners are responsive ad units that adjust their size to fit the screen width of various devices and orientations."],["They utilize three ad heights (32 dp, 50 dp, 90 dp) based on the screen height of the device."],["Developers should use `AdSize.SmartBanner` when creating a `BannerView` to implement Smart Banners in their apps."],["Consider using adaptive banners as a newer alternative to Smart Banners for improved ad performance and flexibility."]]],["Smart Banners render screen-width ads, adapting to any device size and orientation. They detect device width and create an ad view accordingly, using heights of 32 dp (≤ 400 dp screen height), 50 dp (\u003e 400 dp and ≤ 720 dp), or 90 dp (\u003e 720 dp). Image ads are centered when they don't fill the space. To implement, specify `AdSize.SmartBanner` when creating a `BannerView`, such as `new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top)`.\n"]]