SVSAdManager

constructor(@NonNull context: Context, @NonNull placement: SVSAdPlacement, @Nullable adRules: Array<SVSAdRule>, @Nullable adPlayerConfiguration: SVSAdPlayerConfiguration, @Nullable contentData: SVSContentData)

Main constructor

Parameters

context

the Android Context to attach to

placement

the SVSAdPlacement identifying this inventory item

adRules

an array of SVSAdRule instances that determines the ad playback configuration depending on the content properties

adPlayerConfiguration

the SVSAdPlayerConfiguration object containing ad playback parameters

contentData

an optional SVSContentData object containing properties about the content video

Throws

thrown if any of the parameters is incorrect