InterstitialAdUnit
public class InterstitialAdUnit : AdUnit, BannerBasedAdUnitProtocol, VideoBasedAdUnitProtocol
Represents an interstitial ad unit built for original type of integration.
-
The banner parameters for this ad unit.
Declaration
Swift
public var bannerParameters: BannerParameters { get set }
-
The video parameters for this ad unit.
Declaration
Swift
public var videoParameters: VideoParameters { get set }
-
The ad formats for the ad unit.
Declaration
Swift
public var adFormats: Set<AdFormat> { get set }
-
A flag that determines whether SKOverlay should be supported
Declaration
Swift
public var supportSKOverlay: Bool { get set }
-
Initializes a new interstitial ad unit with a unique configuration identifier.
Declaration
Swift
public init(configId: String)
Parameters
configId
The unique identifier for the ad unit configuration.
-
Initializes a new interstitial ad unit with a minimum width and height percentage.
Declaration
Swift
public convenience init(configId: String, minWidthPerc: Int, minHeightPerc: Int)
Parameters
configId
The unique identifier for the ad unit configuration.
minWidthPerc
The minimum width percentage of the ad.
minHeightPerc
The minimum height percentage of the ad.
-
Sets the view in which Prebid will start tracking an impression.
Declaration
Swift
public func activatePrebidImpressionTracker()
-
Activates Prebid’s SKAdNetwork StoreKit ads flow.
Ensure this method is called before presenting interstitials.
This feature is not available for video ads.
Declaration
Swift
public func activatePrebidSKAdNetworkStoreKitAdsFlow()
-
Attempts to display an
SKOverlay
if a valid configuration is available.Declaration
Swift
public func activateSKOverlayIfAvailable()
-
Dismisses the SKOverlay if presented.
Declaration
Swift
public func dismissSKOverlayIfAvailable()