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.
return a valid AdswizzAdRequest object
throws SDKError: a missing zone id error if it was not provided or a missing server address

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.
analyticsCustomData: custom parameters to add to AnalyticsEvent
return same builder object

Link copied to clipboard

Set a companion zone aliases list. Optional.
companionZoneAliases: List containing companion zones aliases
return same builder object

Link copied to clipboard

Set a companion zone ids list. Optional.
companionZoneIds: List containing companion zones ids
return same builder object

Link copied to clipboard

Set the companion zone id. Optional.
companionZones: companionZones description
return same builder object

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.
customParam: custom parameters with a suggested format of key1=value1&key2=value2
return same builder object

Link copied to clipboard

Set maximum total duration of ads to be selected (AdBreak duration) in milliseconds. Optional
duration: Long
return same builder object

Link copied to clipboard

Set the http protocol. Default is "https". Possible values: "http", "https".
httpProtocol: http or https
return same builder object

Link copied to clipboard

Set the programmatic access library nonce handler. Optional.
palNonceHandler: object that is a mirror of pal sdk's NonceManager
return same builder object

Link copied to clipboard

Set a referrer. Optional.
referrer: referrer description
return same builder object

Link copied to clipboard

Set the Adswizz ad server. This info is mandatory.
server: Adswizz server
return same builder object

Link copied to clipboard

Set the shim zone in case request should fill the ad break with shim ads
zone: The AdswizzShimZone to be used by request
return same builder object

Link copied to clipboard

Set the tags used for requesting the ads. Optional.
tagsArray: string with tags separated by comma
return same builder object

Link copied to clipboard

Set a TCFv2 string as described by IAB’s Transparency and Consent Framework (TCF).Optional
userConsentV2: tcfv2 string
return same builder object

Link copied to clipboard

Set vast protocol version. Default is "4.0". Possible values: "4.0", "4.1".
vastVersion: as described above
return same builder object

Link copied to clipboard

Set the zone alias referencing external zone. Optional.
zoneAlias: zoneAlias description< /br>return same builder object

Link copied to clipboard

Set the zones on which the request will be made. Mandatory.
zones: List of AdswizzAdZone. The set should contain at least one element
return same builder object