init With Gam
fun initWithGam(adUnit: (StorytellerAdRequestInfo.ClipsAdRequestInfo) -> String, descriptionUrl: (StorytellerAdRequestInfo.ClipsAdRequestInfo) -> String, contentUrl: (StorytellerAdRequestInfo.ClipsAdRequestInfo) -> String? = { null }, customParams: (StorytellerAdRequestInfo.ClipsAdRequestInfo) -> Map<String, String> = { emptyMap() }, tagParameters: (StorytellerAdRequestInfo.ClipsAdRequestInfo) -> Map<String, String> = { emptyMap() }, vastLoadTimeoutMs: Int? = null, mediaLoadTimeoutMs: Int? = null)
Configures IMA using callbacks from which Storyteller builds a Google Ad Manager video tag.
Host tagParameters are merged last and may deliberately override generated top-level values. Complete tags and callback values are never logged by this module.
Parameters
ad Unit
GAM ad-unit path serialized as iu.
description Url
HTTPS page or content description URL.
content Url
Optional content URL serialized as url.
custom Params
Optional custom targeting serialized as cust_params.
tag Parameters
Optional top-level GAM tag parameters merged last.
vast Load Timeout Ms
Optional positive IMA VAST-load timeout; null keeps IMA's default.
media Load Timeout Ms
Optional positive IMA media timeout; null keeps IMA's default.