Banners inteligentes
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Selecione a plataforma:
Android
iOS
Unity
Os banners inteligentes são blocos de anúncios que renderizam anúncios de banner na largura da tela em qualquer tamanho de tela em diferentes dispositivos em qualquer orientação. Os banners inteligentes detectam a largura do dispositivo na orientação atual e criam a visualização do anúncio nesse tamanho.
Três alturas de anúncio são implementadas em banners inteligentes:
Altura do anúncio |
Altura da tela |
32 dp |
≤ 400 dp |
50 dp |
> 400 dp e ≤ 720 dp |
90 dp |
> 720 dp |
Normalmente, os banners inteligentes em smartphones têm uma altura de 50 dp no modo retrato e 32 dp no modo paisagem. Em tablets, a altura normalmente é de 90 dp em ambas as orientações.
Quando um anúncio de imagem não é grande o suficiente para ocupar todo o espaço alocado, a imagem é centralizada, e o espaço de cada lado é preenchido.

Para usar banners inteligentes, especifique o AdSize.SmartBanner
para o tamanho do anúncio ao
criar um BannerView
. Exemplo:
// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-09-02 UTC.
[null,null,["Última atualização 2025-09-02 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```"]]