智慧型橫幅廣告
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
智慧型橫幅廣告是廣告單元,可在任何螢幕大小的裝置上,以任一方向呈現全螢幕橫幅廣告。智慧型橫幅廣告會偵測裝置在目前方向下的寬度,並建立該大小的廣告檢視畫面。
智慧型橫幅廣告支援三種廣告高度:
廣告高度 |
螢幕高度 |
32 dp |
高度 ≤ 400 dp |
50 dp |
> 400 dp 且 ≤ 720 dp |
90 dp |
> 720 dp |
一般來說,手機上的智慧橫幅廣告在直向模式下的高度為 50 dp,在橫向模式下的高度為 32 dp。在平板電腦上,無論螢幕是縱向或橫向,高度通常為 90 dp。
如果圖片廣告的大小不足以佔據整個分配的空間,圖片會置中,兩側的空間則會填滿。
如要使用智慧型橫幅廣告,請在建立 BannerView
時,指定廣告尺寸的 AdSize.SmartBanner
。例如:
// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-24 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-11-24 (世界標準時間)。"],[[["Smart Banners are responsive ad units that adjust their size to fit the width of the device screen across various devices and orientations."],["They utilize three ad heights (32 dp, 50 dp, 90 dp) based on the screen height to ensure optimal display."],["On 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."],["When using Smart Banners, developers need to specify `AdSize.SmartBanner` when creating a `BannerView`."],["Consider using adaptive banners as a newer alternative for enhanced ad experiences."]]],[]]