L'SDK Google Mobile Ads supporta le dimensioni degli annunci fisse per le situazioni in cui gli annunci banner adattabili non soddisfano le tue esigenze.
La tabella seguente elenca le dimensioni standard dei banner.
Dimensioni in dp (LxH)
Descrizione
Disponibilità
Costante AdSize
320 x 50
Banner
Telefoni e tablet
GADAdSizeBanner
320 x 100
Banner grande
Telefoni e tablet
GADAdSizeLargeBanner
300 x 250
Rettangolo medio IAB
Telefoni e tablet
GADAdSizeMediumRectangle
468 x 60
Banner IAB a grandezza originale
Tablet
GADAdSizeFullBanner
728 x 90
Classifica IAB
Tablet
GADAdSizeLeaderboard
Per definire le dimensioni di un banner personalizzato, impostale utilizzando GADAdSizeFromCGSize:
[null,null,["Ultimo aggiornamento 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"]]