InterstitialRenderingAdUnit
@objcMembers
public class InterstitialRenderingAdUnit : NSObject, BaseInterstitialAdUnitProtocol
Represents an interstitial ad unit. Built for rendering type of integration.
-
A delegate for handling interactions with the ad unit.
Declaration
Swift
public weak var delegate: InterstitialAdUnitDelegate? -
A Boolean value indicating whether the ad unit is ready to be displayed.
Declaration
Swift
public var isReady: Bool { get } -
The set of ad formats supported by this ad unit.
Declaration
Swift
public var adFormats: Set<AdFormat> { get set } -
The position of the ad on the screen.
Declaration
Swift
public var adPosition: AdPosition { get set } -
The banner parameters used for configuring ad unit.
Declaration
Swift
public var bannerParameters: BannerParameters { get } -
The video parameters used for configuring ad unit.
Declaration
Swift
public var videoParameters: VideoParameters { get }
-
A flag that determines whether SKOverlay should be supported
Declaration
Swift
public var supportSKOverlay: Bool { get set }
-
The area of the close button in the video controls as a percentage.
Declaration
Swift
public var closeButtonArea: Double { get set } -
The position of the close button in the video controls.
Declaration
Swift
public var closeButtonPosition: Position { get set } -
The area of the skip button in the video controls, specified as a percentage of the screen width.
Declaration
Swift
public var skipButtonArea: Double { get set } -
The position of the skip button in the video controls.
Declaration
Swift
public var skipButtonPosition: Position { get set } -
The delay before the skip button appears, in seconds.
Declaration
Swift
public var skipDelay: Double { get set } -
A Boolean value indicating whether the video controls are muted.
Declaration
Swift
public var isMuted: Bool { get set } -
A Boolean value indicating whether the sound button is visible in the video controls.
Declaration
Swift
public var isSoundButtonVisible: Bool { get set }
-
Initializes a new
BaseInterstitialAdUnitwith the specified configuration ID.Declaration
Swift
public convenience init(configID: String)Parameters
configIDThe unique identifier for the ad unit configuration.
-
Initializes a new
InterstitialRenderingAdUnitwith the specified configuration ID and minimum size percentage.Declaration
Swift
public convenience init(configID: String, minSizePercentage: CGSize)Parameters
configIDThe unique identifier for the ad unit configuration.
minSizePercentageThe minimum size percentage for the ad unit.
-
Initializes a new
InterstitialRenderingAdUnitwith the specified configuration ID and event handler.Declaration
Swift
public convenience init(configID: String, eventHandler: AnyObject?)Parameters
configIDThe unique identifier for the ad unit configuration.
eventHandlerAn object for handling ad events.
-
Initializes a new
InterstitialRenderingAdUnitwith the specified configuration ID, minimum size percentage, and event handler.Declaration
Swift
public convenience init( configID: String, minSizePercentage: CGSize, eventHandler: AnyObject )Parameters
configIDThe unique identifier for the ad unit configuration.
minSizePercentageThe minimum size percentage for the ad unit.
eventHandlerAn object for handling ad events.
-
Loads a new ad.
Declaration
Swift
public func loadAd() -
Shows the ad from a specified view controller.
Note
This method must be called on the main thread.Declaration
Swift
public func show(from controller: UIViewController)Parameters
controllerThe view controller from which the ad will be presented.
-
Sets the impression-level OpenRTB configuration string for the ad unit.
Declaration
Swift
public func setImpORTBConfig(_ ortbConfig: String?)Parameters
ortbConfigThe impression-level OpenRTB configuration string to set. Can be
nilto clear the configuration. -
Returns the impression-level OpenRTB configuration string.
Declaration
Swift
public func getImpORTBConfig() -> String? -
Sets the global OpenRTB configuration string for the ad unit. It takes precedence over
Targeting.setGlobalOrtbConfig.Declaration
Swift
public func setGlobalORTBConfig(_ ortbConfig: String?)Parameters
ortbConfigThe global OpenRTB configuration string to set. Can be
nilto clear the configuration. -
Returns the global OpenRTB configuration string.
Declaration
Swift
public func getGlobalORTBConfig() -> String?