Builder

class Builder

Helper class to configure AdswizzAdRequest

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The analytics custom data used for analytics events

Link copied to clipboard

The companion zone id

Link copied to clipboard
Link copied to clipboard

The additional custom parameters

Link copied to clipboard

The maximum total duration of ads to be selected, in seconds

Link copied to clipboard

Enable reporting of expected ads ( maximumAds requeste - ads returned ) missing from vast response

Link copied to clipboard

Http protocol - default is "https" Possible values: "http", "https"

Link copied to clipboard

The programmatic access library nonce handler

Link copied to clipboard

This is the an unique identifier of the application and should be a string like an http address.

Link copied to clipboard

The server url

Link copied to clipboard

This zone is a special zones that contains shim ads used to fill ad break should be the last one in the serialized AdEvents url parameter

Link copied to clipboard

The tags used for requesting the ads. Optional

Link copied to clipboard

The TCFv2 string from Transparency and Consent Framework

Link copied to clipboard

Vast version - default is "4.1" Possible values: "4.0", "4.1"

Link copied to clipboard

The zone alias referencing external zone

Link copied to clipboard

The zone on which the request will be made

Functions

Link copied to clipboard
fun build(completionBlock: (AdswizzAdRequest) -> Unit)

Builds an AdswizzAdRequest object

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

Prints current Builder values

Link copied to clipboard

Set custom analytics data used for analytics events. Optional.

Link copied to clipboard

Set a companion zone aliases list. Optional.

Link copied to clipboard

Set a companion zone ids list. Optional.

Link copied to clipboard

Set the companion zone id. Optional.

Link copied to clipboard

Set additional custom parameters to AdswizzAdRequest. Optional. Note that it should be only used at the recommendation of AdsWizz. All parameters must be URL encoded.

Link copied to clipboard

Set maximum total duration of ads to be selected (AdBreak duration) in milliseconds. Optional

Link copied to clipboard

Set the http protocol. Default is "https". Possible values: "http", "https".

Link copied to clipboard

Set the programmatic access library nonce handler. Optional.

Link copied to clipboard

Set a referrer. Optional.

Link copied to clipboard

Set the Adswizz ad server. This info is mandatory.

Link copied to clipboard

Set the shim zone in case request should fill the ad break with shim ads

Link copied to clipboard

Set the tags used for requesting the ads. Optional.

Link copied to clipboard

Set a TCFv2 string as described by IAB’s Transparency and Consent Framework (TCF).Optional

Link copied to clipboard

Set vast protocol version. Default is "4.0". Possible values: "4.0", "4.1".

Link copied to clipboard

Set the zone alias referencing external zone. Optional.

Link copied to clipboard

Set the zones on which the request will be made. Mandatory.