Pakiet SDK do reklam mobilnych Google obsługuje reklamy o stałych rozmiarach w sytuacjach, gdy reklamy w formacie banera zoptymalizowanym nie spełniają Twoich oczekiwań.
Tabela poniżej zawiera standardowe rozmiary banerów.
Rozmiar w dp (szer. x wys.)
Opis
Dostępność
stała AdSize
320 x 50
Baner
Telefony i tablety
GADAdSizeBanner
320 x 100
Duży baner
Telefony i tablety
GADAdSizeLargeBanner
300 x 250
Średni prostokąt IAB
Telefony i tablety
GADAdSizeMediumRectangle
468 x 60
Baner w pełnym rozmiarze IAB
Tablety
GADAdSizeFullBanner
728 x 90
Tablica wyników IAB
Tablety
GADAdSizeLeaderboard
Aby zdefiniować niestandardowy rozmiar banera, ustaw go za pomocą tagu GADAdSizeFromCGSize:
[null,null,["Ostatnia aktualizacja: 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"]]