From 2f25400aed56adb910e72a7924e06094e2fd222b Mon Sep 17 00:00:00 2001 From: Olena Stepaniuk Date: Tue, 25 Mar 2025 14:30:17 +0200 Subject: [PATCH 1/3] docs: add SKAdN section to bidding-only config --- _includes/mobile/adunit-config-ios.md | 60 ++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/_includes/mobile/adunit-config-ios.md b/_includes/mobile/adunit-config-ios.md index 3ba61a69b2..4a1b841c6f 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 **native** ads, with no additional configuration required. The support of view-through ads is also automatically enabled for **banner** ad format. However, in order to activate StoreKit-rendered ads flow, it is required to call a respective method: + +`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 intestitials. 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() +``` \ No newline at end of file From 38aa14b1b9aa122c92018bd41e80e0e8834a2393 Mon Sep 17 00:00:00 2001 From: Olena Stepaniuk Date: Tue, 25 Mar 2025 14:34:01 +0200 Subject: [PATCH 2/3] docs: minor correction --- _includes/mobile/adunit-config-ios.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/mobile/adunit-config-ios.md b/_includes/mobile/adunit-config-ios.md index 4a1b841c6f..d79ca6f308 100644 --- a/_includes/mobile/adunit-config-ios.md +++ b/_includes/mobile/adunit-config-ios.md @@ -96,10 +96,10 @@ adUnit.activatePrebidAdViewImpressionTracker(adView: gamBanner) 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; +- View-through ads; - StoreKit-rendered ads. -Both methods are automatically enabled for **native** ads, with no additional configuration required. The support of view-through ads is also automatically enabled for **banner** ad format. However, in order to activate StoreKit-rendered ads flow, it is required to call a respective method: +Both methods are automatically enabled for **native** ad format, with no additional configuration required. The support of view-through ads is also automatically enabled for **banner** ad format. However, in order to activate StoreKit-rendered ads flow, it is required to call a respective method: `BannerAdUnit`: From 168fec056d0444872043a98110e41a8061f90b5a Mon Sep 17 00:00:00 2001 From: bretg Date: Mon, 31 Mar 2025 11:03:57 -0400 Subject: [PATCH 3/3] wordsmithing --- _includes/mobile/adunit-config-ios.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_includes/mobile/adunit-config-ios.md b/_includes/mobile/adunit-config-ios.md index d79ca6f308..f3e4871d7b 100644 --- a/_includes/mobile/adunit-config-ios.md +++ b/_includes/mobile/adunit-config-ios.md @@ -96,10 +96,10 @@ adUnit.activatePrebidAdViewImpressionTracker(adView: gamBanner) 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. +- View-through ads +- StoreKit-rendered ads -Both methods are automatically enabled for **native** ad format, with no additional configuration required. The support of view-through ads is also automatically enabled for **banner** ad format. However, in order to activate StoreKit-rendered ads flow, it is required to call a respective method: +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`: @@ -129,7 +129,7 @@ adUnit.activatePrebidBannerSKAdNetworkStoreKitAdsFlow(adView: gamBanner) #### SKOverlay -The SDK also provides support of SKOverlay for intestitials. In order to activate it, set `supportSKOverlay` to `true`: +The SDK also provides support of SKOverlay for interstitials. In order to activate it, set `supportSKOverlay` to `true`: ```swift adUnit.supportSKOverlay = true @@ -148,4 +148,4 @@ In order to dismiss SKOverlay, use the method below: ```swift adUnit.dismissSKOverlayIfAvailable() -``` \ No newline at end of file +```