AdCompanionOptions

class AdCompanionOptions(var extraExposureTime: Duration = Duration.ZERO, var preferredResourceType: AdCompanionResourceType = AdCompanionResourceType.FIRST_RESOURCE_AVAILABLE, var optimizeCompanionDisplay: Boolean = true)

Holds configuration parameters for controlling ad Companion behavior. Can be set in AdswizzSDK using setAdCompanionOptions function.

Constructors

Link copied to clipboard
constructor(extraExposureTime: Duration = Duration.ZERO, preferredResourceType: AdCompanionResourceType = AdCompanionResourceType.FIRST_RESOURCE_AVAILABLE, optimizeCompanionDisplay: Boolean = true)

Properties

Link copied to clipboard

Set how long the sync-banner will be visible after the ad playout The default value is 0, which removes the banner as soon as the ad finishes.

Link copied to clipboard

Enable or disable companion optimization. default value is true

Link copied to clipboard

Select the preferred type of companion. Possible values IMAGE, HTML, I_FRAME, FIRST_RESOURCE_AVAILABLE

Functions

Link copied to clipboard
open override fun toString(): String