RewardedVideoAdUnit
public class RewardedVideoAdUnit : AdUnit, VideoBasedAdUnitProtocol
Represents an rewarded ad unit for original type of integration.
-
Property for video parameters.
Declaration
Swift
public var videoParameters: VideoParameters { get set }
-
A flag that determines whether SKOverlay should be supported
Declaration
Swift
public var supportSKOverlay: Bool { get set }
-
Initializes a
RewardedVideoAdUnit
with the given configuration ID.Declaration
Swift
public init(configId: String)
Parameters
configId
The configuration ID for the ad unit.
-
Initializes a
RewardedVideoAdUnit
with the given configuration ID and minimum size percentages.Declaration
Swift
public convenience init(configId: String, minWidthPerc: Int, minHeightPerc: Int)
Parameters
configId
The configuration ID for the ad unit.
minWidthPerc
The minimum width percentage for the ad unit.
minHeightPerc
The minimum height percentage for the ad unit.
-
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()