<br />

[Video](https://www.youtube.com/watch?v=h-FMndW2kHo)

Google Mobile Ads SDK supports fixed ad sizes for situations where adaptive
banners ads don't meet your needs.

The following table lists the standard banner sizes.

| Size in dp (WxH) | Description | Availability | AdSize constant |
|---|---|---|---|
| 320x50 | Banner | Phones and tablets | `GADAdSizeBanner` |
| 320x100 | Large banner | Phones and tablets | `GADAdSizeLargeBanner` |
| 300x250 | IAB medium rectangle | Phones and tablets | `GADAdSizeMediumRectangle` |
| 468x60 | IAB full-size banner | Tablets | `GADAdSizeFullBanner` |
| 728x90 | IAB leaderboard | Tablets | `GADAdSizeLeaderboard` |

To define a custom banner size, set your size using [`GADAdSizeFromCGSize`](https://developers.google.com/admob/ios/api/reference/Functions.md.txt):

### Swift

```swift
let adSize = adSizeFor(cgSize: CGSize(width: 250, height: 250))
```

### Objective-C

```objective-c
GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(250, 250));
```

Set an ad size smaller than or equal to the device screen size.
To determine the maximum screen size on iOS 26 and later, use the
[`UIWindowScene.effectiveGeometry.coordinateSpace`](https://developer.apple.com/documentation/uikit/uiwindowscene/geometry/coordinatespace)
property. On iOS 18 and earlier, use the
[`UIWindowScene.coordinateSpace`](https://developer.apple.com/documentation/uikit/uiwindowscene/coordinatespace)
property.
For details about size constraints, see
[Ad request size requirements](https://support.google.com/admob/answer/9905175#ad-request-size-requirement).


## Fixed size banner ads example

[Swift](https://github.com/googleads/googleads-mobile-ios-examples/blob/main/Swift/advanced/APIDemo/APIDemo/AdMobBannerSizesViewController.swift)
[Objective-C](https://github.com/googleads/googleads-mobile-ios-examples/blob/main/Objective-C/advanced/APIDemo/APIDemo/AdMobBannerSizesViewController.m)