แบนเนอร์อัจฉริยะ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลือกแพลตฟอร์ม:
Android
iOS
Unity
แบนเนอร์อัจฉริยะคือหน่วยโฆษณาที่แสดงโฆษณาแบนเนอร์ที่มีความกว้างเท่ากับหน้าจอบนหน้าจอทุกขนาดในอุปกรณ์ต่างๆ ไม่ว่าจะวางแนวใด แบนเนอร์อัจฉริยะจะตรวจหา
ความกว้างของอุปกรณ์ในการวางแนวปัจจุบันและสร้างมุมมองโฆษณาที่มีขนาดดังกล่าว
โฆษณาแบนเนอร์อัจฉริยะมีโฆษณาสูง 3 แบบ ดังนี้
ความสูงของโฆษณา |
ความสูงหน้าจอ |
32 dp |
≤ 400 dp |
50 dp |
> 400 dp และ ≤ 720 dp |
90 dp |
> 720 dp |
โดยปกติแล้ว แบนเนอร์อัจฉริยะบนโทรศัพท์จะมีความสูง 50 dp ในแนวตั้งและ 32 dp
ในแนวนอน ในแท็บเล็ต โดยปกติความสูงจะอยู่ที่ 90 dp ทั้งในแนวตั้งและแนวนอน
เมื่อโฆษณาแบบรูปภาพมีขนาดไม่ใหญ่พอที่จะใช้พื้นที่ที่จัดสรรไว้ทั้งหมด
รูปภาพจะอยู่ตรงกลางและพื้นที่ทั้ง 2 ด้านจะได้รับการเติมเต็ม

หากต้องการใช้แบนเนอร์อัจฉริยะ ให้ระบุ AdSize.SmartBanner
สำหรับขนาดโฆษณาเมื่อ
สร้าง BannerView
เช่น
// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 UTC
[null,null,["อัปเดตล่าสุด 2025-08-27 UTC"],[[["\u003cp\u003eSmart Banners are responsive ad units that adjust their size to fit the screen width of 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 of the device.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should use \u003ccode\u003eAdSize.SmartBanner\u003c/code\u003e when creating a \u003ccode\u003eBannerView\u003c/code\u003e to implement Smart Banners in their apps.\u003c/p\u003e\n"],["\u003cp\u003eConsider using adaptive banners as a newer alternative to Smart Banners for improved ad performance and flexibility.\u003c/p\u003e\n"]]],["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"],null,["Select platform: [Android](/admob/android/banner/smart \"View this page for the Android platform docs.\") [iOS](/admob/ios/banner/smart \"View this page for the iOS platform docs.\") [Unity](/admob/unity/banner/smart \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\n| Try the newer [adaptive banners](/admob/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```c#\n// Create a Smart Banner at the top of the screen.\nBannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);\n```"]]