> For the complete documentation index, see [llms.txt](https://ios-docs.adster.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ios-docs.adster.tech/additional-features/collapsible-anchored-adaptive-banner-ad-only-for-gam.md).

# Collapsible Anchored Adaptive Banner Ad (Only for GAM)

#### Ad Request <a href="#a-d-request" id="a-d-request"></a>

Pass `collapsiblePlacement` on your `AdRequestConfiguration` alongside the adaptive parameters. Use `CollapsiblePlacement.top` or `CollapsiblePlacement.bottom` to indicate where the expanded banner should anchor.

#### Collapsible banner anchored to the bottom

```swift
let loader = AdSterAdLoader()
loader.delegate = self
loader.loadAd(adRequestConfiguration: AdRequestConfiguration(
    placement: "placement_name",
    viewController: self,
    adaptiveAdWidth: Int(UIScreen.main.bounds.width),
    adaptiveType: "Anchored",
    collapsiblePlacement: CollapsiblePlacement.bottom
))
```

#### Collapsible banner anchored to the top

```swift
let loader = AdSterAdLoader()
loader.delegate = self
loader.loadAd(adRequestConfiguration: AdRequestConfiguration(
    placement: "placement_name",
    viewController: self,
    adaptiveAdWidth: Int(UIScreen.main.bounds.width),
    adaptiveType: "Anchored",
    collapsiblePlacement: CollapsiblePlacement.top
))
```

{% hint style="info" %}
`collapsiblePlacement` accepts `CollapsiblePlacement.top` and `CollapsiblePlacement.bottom` (case-insensitive `"top"` / `"bottom"` strings are also accepted). Any other value is ignored and a standard banner is requested. Whether a collapsible creative is served is ultimately controlled by the ad network fill.
{% endhint %}

#### Receiving the ad

Handle the loaded ad through the `MediationAdDelegate` protocol exactly as with a standard banner ad — see [Banner Ad](https://ios-docs.adster.tech/ad-types/banner-ad).
