assetParameterMacros

Customer macros for the $ tokens in asset-parameter values. Keys are the $-prefixed names as they appear in the break manifest; each callback is invoked when an ad request is built and its result replaces every occurrence of the name inside a value, so "\$OPTIVIEW_PLAYER_WIDTH\$x\$OPTIVIEW_PLAYER_HEIGHT\$" becomes "1920x1080". A fixed value is a constant callback: mapOf("\$SEGMENT\$" to { "sports" }); returning null leaves the macro unresolved. Use assetParameterMacroValues when an empty value should omit the parameter that contains the macro.

Customer macros are consulted before the built-in $OPTIVIEW_* set (com.dolby.optiview.ads.core.OptiViewAssetParameterMacros), so a built-in may be overridden. An unresolved $OPTIVIEW_* macro or a registered macro without a value is sent literally and reported as DA-ASSET-MACRO-UNKNOWN; any other unresolved $NAME$ token is sent literally without a diagnostic. Cleared when the session ends.