Biểu ngữ thông minh
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chọn nền tảng:
Android
iOS
Unity
Biểu ngữ thông minh là các đơn vị quảng cáo hiển thị quảng cáo biểu ngữ trải ngang các màn hình thuộc mọi kích thước
trên nhiều loại thiết bị, bất kể màn hình ở hướng ngang hay dọc. Biểu ngữ thông minh có thể nhận diện độ rộng của thiết bị theo hướng xoay hiện tại và điều chỉnh quảng cáo cho phù hợp với kích thước đó.
3 chiều cao được triển khai trong biểu ngữ thông minh:
Chiều cao quảng cáo |
Chiều cao màn hình |
32 dp |
≤ 400 dp |
50 dp |
> 400 dp và ≤ 720 dp |
90 dp |
> 720 dp |
Thông thường, biểu ngữ thông minh trên điện thoại có chiều cao là 50 dp khi ở hướng dọc và 32 dp khi ở hướng ngang. Trên máy tính bảng, biểu ngữ thông minh thường cao 90 dp ở cả hai hướng.
Khi quảng cáo dạng hình ảnh không đủ lớn để chiếm toàn bộ không gian đã phân bổ, hình ảnh đó sẽ được căn giữa và khoảng trống ở hai bên sẽ được lấp đầy.

Để sử dụng Biểu ngữ thông minh, hãy chỉ định AdSize.SmartBanner
cho kích thước quảng cáo khi tạo BannerView
. Ví dụ:
// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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```"]]