El SDK de anuncios de Google para dispositivos móviles admite tamaños de anuncios fijos para situaciones en las que los anuncios de banner adaptables no satisfacen tus necesidades.
En la siguiente tabla, se enumeran los tamaños de banner estándar.
Tamaño en dp (ancho x alto)
Descripción
Disponibilidad
Constante de AdSize
320 x 50
Banner
Teléfonos y tablets
GADAdSizeBanner
320 x 100
Banner grande
Teléfonos y tablets
GADAdSizeLargeBanner
300 x 250
Rectángulo mediano de IAB
Teléfonos y tablets
GADAdSizeMediumRectangle
468 x 60
Banner de tamaño completo de la IAB
Tablets
GADAdSizeFullBanner
728 x 90
Tabla de clasificación de IAB
Tablets
GADAdSizeLeaderboard
Para definir un tamaño de banner personalizado, establece el tamaño con GADAdSizeFromCGSize:
[null,null,["Última actualización: 2025-03-01 (UTC)"],[[["The Google Mobile Ads SDK offers fixed ad sizes as an alternative to adaptive banners."],["Standard banner sizes include Banner (320x50), Large Banner (320x100), IAB medium rectangle (300x250), IAB full-size banner (468x60), and IAB leaderboard (728x90), each with specified availability for phones and/or tablets."],["Custom banner sizes can be defined using `GADAdSizeFromCGSize` by providing the desired width and height."],["Code examples for implementing fixed size banner ads are available in both Swift and Objective-C."]]],["The Google Mobile Ads SDK supports fixed-size banner ads with standard sizes for phones and tablets. Available sizes include 320x50 (Banner), 320x100 (Large banner), 300x250 (IAB medium rectangle), 468x60 (IAB full-size banner), and 728x90 (IAB leaderboard), each with a corresponding `GADAdSize` constant. Custom sizes can be set using `GADAdSizeFromCGSize`, demonstrated in Swift and Objective-C examples provided in the documentation.\n"]]