JWImaDaiAdvertisingConfigBuilder
@objcMembers
public class JWImaDaiAdvertisingConfigBuilder : NSObject, JWBuilder
Used to build a JWAdvertisingConfig
object to play ads using the DAI client.
-
Declaration
Swift
public typealias Output = JWAdvertisingConfig
-
Builds an advertising config based off the settings provided.
Throws
throws An error if the config is not setup properly.Declaration
Swift
public func build() throws -> JWAdvertisingConfig
-
Sets the GoogleDAI stream configuration.
Declaration
Swift
@discardableResult public func googleDAIStream(_ googleDAIStream: JWGoogleDAIStream) -> JWImaDaiAdvertisingConfigBuilder
Parameters
googleDAIStream
A GoogleDAIStream object that contains the stream information.
Return Value
The builder, so setters can be chained.
-
Sets the container with obstructions that should be marked as friendly.
Note
The viewability measurement may be affected if obstructions above the player view are not registered properly.Note
If the friendly obstructions array is modified, it will be registered until the next ad schedule is loaded or the current playlist item is replayed.See also
FriendlyObstructionsContainer.swiftDeclaration
Swift
@discardableResult public func friendlyObstructionsContainer(_ container: JWFriendlyObstructionsContainer) -> JWImaDaiAdvertisingConfigBuilder
Parameters
container
The container with obstructions that should be marked as friendly.
-
The Google IMA SDK settings.
Declaration
Swift
@discardableResult public func imaSettings(_ imaSettings: JWImaSettings) -> JWImaDaiAdvertisingConfigBuilder
Return Value
The builder, so setters can be chained.