diff --git a/_includes/mobile/adunit-config-ios.md b/_includes/mobile/adunit-config-ios.md index 3ba61a69b2..f3e4871d7b 100644 --- a/_includes/mobile/adunit-config-ios.md +++ b/_includes/mobile/adunit-config-ios.md @@ -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. \ No newline at end of file +**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() +```