MediationInterstitialAdUnit
@objcMembers
public class MediationInterstitialAdUnit : MediationBaseInterstitialAdUnit
This class is responsible for making bid request and providing the winning bid and targeting keywords to mediating SDKs. This class is a part of Mediation API.
-
The set of ad formats requested for this ad unit.
Only
.bannerand.videocan be rendered by the interstitial mediation adapters. Empty sets and sets containing unsupported formats are ignored.Declaration
Swift
public var adFormats: Set<AdFormat> { get set } -
Additional sizes for the ad unit.
Declaration
Swift
public var additionalSizes: [CGSize]? { get set } -
The area for the skip button in the video ad.
Declaration
Swift
public var skipButtonArea: Double { get set } -
The position of the skip button in the video ad.
Declaration
Swift
public var skipButtonPosition: Position { get set } -
The delay before the skip button appears in the video ad.
Declaration
Swift
public var skipDelay: Double { get set } -
Controls whether full-screen video ads without an end card close when playback completes. Set to
falseto keep the ad open with a Watch Again button. The default value istrue.Declaration
Swift
public var isAutoCloseOnCompletionEnabled: Bool { get set }
-
Convenience initializer for the mediation interstitial ad unit.
Declaration
Swift
public override convenience init(configId: String, mediationDelegate: PrebidMediationDelegate)Parameters
configIdThe unique identifier for the ad unit configuration.
mediationDelegateThe delegate for handling mediation.
-
Initializes a new mediation interstitial ad unit with the specified configuration ID, minimum size percentage, and mediation delegate.
Declaration
Swift
public init(configId: String, minSizePercentage: CGSize?, mediationDelegate: PrebidMediationDelegate)Parameters
configIdThe unique identifier for the ad unit configuration.
minSizePercentageThe minimum size percentage for the ad.
mediationDelegateThe delegate for handling mediation.
-
The configuration ID for the ad unit.
Declaration
Swift
public override var configId: String { get }