Stay organized with collections
Save and categorize content based on your preferences.
Smart Banners are ad units that render screen-width banner ads on any screen
size across different devices in either orientation. Smart Banners detect the
width of the device in its current orientation and create the ad view that size.
Three ad heights are implemented in smart banners:
Ad height
Screen height
32 dp
≤ 400 dp
50 dp
> 400 dp and ≤ 720 dp
90 dp
> 720 dp
Typically, Smart Banners on phones have a height of 50 dp in portrait and 32 dp
in landscape. On tablets, height is normally 90 dp in both orientations.
When an image ad isn't large enough to take up the entire allotted space, the
image will be centered, and the space on either side will be filled in.
To use Smart Banners in XML, specify the constant SMART_BANNER for the ad
size and set the width of the AdView to match_parent. For example:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["Smart Banners are responsive ad units that automatically adjust their size to fit the width of the device screen."],["Smart Banners have three possible ad heights (32dp, 50dp, 90dp) depending on the screen height of the device."],["When using Smart Banners, specify `SMART_BANNER` as the `adSize` and set the `AdView` width to `match_parent`."],["Consider using newer adaptive banners instead of Smart Banners for enhanced functionality."]]],["Smart Banners display screen-width ads, adapting to device size and orientation. They use three ad heights: 32 dp (≤ 400 dp screen height), 50 dp (\u003e 400 dp and ≤ 720 dp), and 90 dp (\u003e 720 dp). To implement in XML, set `adSize` to `SMART_BANNER` and `AdView` width to `match_parent`. Programmatically, utilize `AdSize.SMART_BANNER`. Image ads are centered when smaller than the space. The content suggests using adaptive banners instead.\n"]]