an ad message with optional placeholders to fill
the player to get the time data from
OptionalskipOffset: numberif specified, {remainingTime} will be filled with the remaining time until the ad can be skipped
OptionalactiveAdIndex: numberif specified, {activeAdIndex} will be set to this value. Can be used to calculate the ad index across multiple ad breaks which are scheduled for the same time. If not provided, the value will be calculated for the current ad break only from the player API.
OptionaltotalNumberOfAds: numberif specified, {totalAdsCount} will be set to this value. Can be used to calculate the total number of ads across multiple ad breaks which are scheduled for the same time. If not provided, the value will be calculated for the current ad break only from the player API.
the ad message with filled placeholders
Fills out placeholders in an ad message.
Has the following placeholders, which are replaced with:
activeAdIndexif provided.activeAdIndexcan be used to show the index of the current ad across multiple ad breaks with the same schedule time.totalNumberOfAdsif provided.totalNumberOfAdscan be used to show the number of ads across multiple ad breaks with the same schedule time.The format string is optional. If not specified, the placeholder is replaced by the time in seconds. If specified, it must be of the following format:
Examples: