InterstitialRenderingAdUnit
@objcMembers
public class InterstitialRenderingAdUnit : BaseInterstitialAdUnit
Represents an interstitial ad unit. Built for rendering type of integration.
-
The area of the skip button in the video controls, specified as a percentage of the screen width.
Declaration
Swift
@objc public var skipButtonArea: Double { get set }
-
The position of the skip button in the video controls.
Declaration
Swift
@objc public var skipButtonPosition: Position { get set }
-
The delay before the skip button appears, in seconds.
Declaration
Swift
@objc public var skipDelay: Double { get set }
-
Initializes a new interstitial rendering ad unit with the specified configuration ID.
Declaration
Swift
@objc public init(configID: String)
Parameters
configID
The unique identifier for the ad unit configuration.
-
Initializes a new interstitial rendering ad unit with the specified configuration ID and minimum size percentage.
Declaration
Swift
@objc public init(configID: String, minSizePercentage: CGSize)
Parameters
configID
The unique identifier for the ad unit configuration.
minSizePercentage
The minimum size percentage of the ad.
-
Initializes a new interstitial rendering ad unit with the specified configuration ID, minimum size percentage, and event handler.
Declaration
Swift
@objc public init(configID: String, minSizePercentage: CGSize, eventHandler: AnyObject)
Parameters
configID
The unique identifier for the ad unit configuration.
minSizePercentage
The minimum size percentage of the ad.
eventHandler
The event handler to manage ad events.
-
Called when an ad is successfully received.
Declaration
Swift
public override func callDelegate_didReceiveAd()
-
Called when the ad fails to be received.
Declaration
Swift
public override func callDelegate_didFailToReceiveAd(with error: Error?)
-
Called when the ad will be presented.
Declaration
Swift
public override func callDelegate_willPresentAd()
-
Called when the ad is dismissed.
Declaration
Swift
public override func callDelegate_didDismissAd()
-
Called when the user will leave the application.
Declaration
Swift
public override func callDelegate_willLeaveApplication()
-
Called when the ad is clicked.
Declaration
Swift
public override func callDelegate_didClickAd()
-
Checks if the ad is ready to be displayed.
Declaration
Swift
public override func callEventHandler_isReady() -> Bool
-
Sets the loading delegate for the event handler.
Declaration
Swift
public override func callEventHandler_setLoadingDelegate(_ loadingDelegate: NSObject?)
-
Sets the interaction delegate for the event handler.
Declaration
Swift
public override func callEventHandler_setInteractionDelegate()
-
Requests an ad with the specified bid response
Declaration
Swift
public override func callEventHandler_requestAd(with bidResponse: BidResponse?)
-
Shows the ad from the specified view controller.
Declaration
Swift
public override func callEventHandler_show(from controller: UIViewController?)
-
Tracks an impression for the ad.
Declaration
Swift
public override func callEventHandler_trackImpression()