Skip to main content

Ad Policy

Ad policy controls ad skipping and ad cooldown behavior. It is configured under Ads.Policy, independently from Ads.ClientSide and Ads.ServerSide, so the same policy applies whether playback uses client-side ads (CSAI) or server-side ads (SSAI).

AttributeTypeRequiredDescription
SkipModeAdsSkipModenoSkip mode of the ads, Ad will skip a single ad wherever possible, Pod will skip the whole pod wherever possible. (Defaults to Pod)
CooldownintnoSnapback cooldown duration in seconds after an ad break completes. Set to 0 to disable the cooldown.
PauseAdCooldownintnoCooldown duration in seconds between non linear pause ad displays. Set to 0 to disable the cooldown.
var config = new Configuration
{
Ads = new AdsConfiguration
{
Policy = new AdsPolicyConfiguration
{
SkipMode = AdsSkipMode.Ad,
Cooldown = 300,
PauseAdCooldown = 300
}
}
};

player.SetConfig(config);