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).
| Attribute | Type | Required | Description |
|---|---|---|---|
| SkipMode | AdsSkipMode | no | Skip mode of the ads, Ad will skip a single ad wherever possible, Pod will skip the whole pod wherever possible. (Defaults to Pod) |
| Cooldown | int | no | Snapback cooldown duration in seconds after an ad break completes. Set to 0 to disable the cooldown. |
| PauseAdCooldown | int | no | Cooldown 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);