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.

Public Properties

  • The set of ad formats requested for this ad unit.

    Only .banner and .video can 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 false to keep the ad open with a Watch Again button. The default value is true.

    Declaration

    Swift

    public var isAutoCloseOnCompletionEnabled: Bool { get set }

Public Methods

  • Convenience initializer for the mediation interstitial ad unit.

    Declaration

    Swift

    public override convenience init(configId: String, mediationDelegate: PrebidMediationDelegate)

    Parameters

    configId

    The unique identifier for the ad unit configuration.

    mediationDelegate

    The 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

    configId

    The unique identifier for the ad unit configuration.

    minSizePercentage

    The minimum size percentage for the ad.

    mediationDelegate

    The delegate for handling mediation.

Computed Properties

  • The configuration ID for the ad unit.

    Declaration

    Swift

    public override var configId: String { get }