AdMacroProvider

interface AdMacroProvider

The AdMacroProvider interface is used to provide various macros that cannot be automatically computed by the SDK. The methods can be selectively overridden depending on the integration scenario.

Functions

Link copied to clipboard
open fun getContentId(): String?

This method is used to provide values for the CONTENTID macro.
CONTENTID is content identifier for the content asset into which the ad is being loaded or inserted.
Applicable to ad request & all tracking pixels.
default values is null

Link copied to clipboard
open fun getContentUri(): String?

This method is used to provide values for the CONTENTURI macro.
CONTENTURI is the URI of the main media content asset into which the ad is being loaded or inserted
Applicable to ad request & all tracking pixels.
default values is null

Link copied to clipboard

This method is used to provide values for the MEDIAPLAYHEAD macro.
MEDIAPLAYHEAD is playhead position of the video or audio content (NOT the ad creative).
Applicable to ad request & all tracking pixels.
default values is null