Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 59 additions & 1 deletion _includes/mobile/adunit-config-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,62 @@ let gamBanner = GAMBannerView(adSize: GADAdSizeFromCGSize(AD_SIZE))
adUnit.activatePrebidAdViewImpressionTracker(adView: gamBanner)
```

**NOTE**: The SDK support only `seatbid[].bid[].burl` as impression tracking URL for now.
**NOTE**: The SDK support only `seatbid[].bid[].burl` as impression tracking URL for now.

### SKAdNetwork

The SDK supports two SKAdNetwork methods for ad networks to deliver ads in a bidding-only scenario, specifically for **banner** and **native** ad formats:

- View-through ads
- StoreKit-rendered ads

Both methods are automatically enabled for the **native** ad format, with no additional configuration required. The support of view-through ads is also automatically enabled for the **banner** ad format. However, in order to activate StoreKit-rendered ads flow, you must call a method appropriate to the case:

`BannerAdUnit`:

```swift
let gamBanner = GAMBannerView(adSize: GADAdSizeFromCGSize(AD_SIZE))
adUnit.activatePrebidSKAdNetworkStoreKitAdsFlow(adView: gamBanner)
```

`InterstitialAdUnit`:

```swift
adUnit.activatePrebidSKAdNetworkStoreKitAdsFlow()
```

`PrebidAdUnit`:

```swift
let adUnit = PrebidAdUnit(configId: CONFIG_ID)

// Use this method for intersitials
adUnit.activatePrebidInterstitialSKAdNetworkStoreKitAdsFlow()

// Use this method for banners
let gamBanner = GAMBannerView(adSize: GADAdSizeFromCGSize(AD_SIZE))
adUnit.activatePrebidBannerSKAdNetworkStoreKitAdsFlow(adView: gamBanner)
```

#### SKOverlay

The SDK also provides support of SKOverlay for interstitials. In order to activate it, set `supportSKOverlay` to `true`:

```swift
adUnit.supportSKOverlay = true
```

You should also call the method below when you are about to show the ad:

```swift
// Present SKOverlay if available
adUnit.activateSKOverlayIfAvailable()
// Present the interstitial
gamInterstitial.present(from: controller)
```

In order to dismiss SKOverlay, use the method below:

```swift
adUnit.dismissSKOverlayIfAvailable()
```