init

fun init(baseUrl: String, requestParameters: (StorytellerAdRequestInfo) -> Map<String, String>, urlFormat: UrlFormat = UrlFormat.PathSegment)

Configures the VAST module. Must be called before the module is registered with com.storyteller.Storyteller.modules.

The final VAST URL built from baseUrl, requestParameters, and urlFormat must be HTTPS and no longer than 2,048 characters.

Parameters

baseUrl

HTTPS base URL of the ad server, no trailing slash required.

requestParameters

Per-request key/value parameters. Host owns key casing and value sanitisation.

urlFormat

Serialisation strategy; defaults to UrlFormat.PathSegment.