Skip to main content
Corvus Connection

On Ad Break Begin

TwitchTrigger
entry.onAdBreakBeginFires when an ad break starts. Binds the break length, whether it was automatic, and who ran it.Triggers when an ad break begins.Requires the channel:read:ads scope.
MonetizationLifecycle

Outputs

Name
Kind
Type
Flags
outExecexecNone
durationSecondsDataSystem.Int32multiplexed
isAutomaticDataSystem.Booleanmultiplexed
requesterNameDataSystem.Stringmultiplexed
startedAtDataSystem.DateTimemultiplexed

Bindings

Name
Type
Description
durationSecondsSystem.Int32The ad break's length in seconds.
isAutomaticSystem.BooleanTrue when the ad break was scheduled automatically.
requesterNameSystem.StringThe display name of whoever started the ad break.
startedAtSystem.DateTimeWhen the ad break started (UTC).

Parameters

Name
Type
Required
Default
Choices
cooldownSecondsSystem.Int32no0None
perUserCooldownSecondsSystem.Int32no0None
debounceMsSystem.Int32no0None
dedupeKeySystem.Stringno""None
maxConcurrencySystem.Int32no0None

Lowers to C#

[OnAdBreakBegin] Handle(ctx, AdBreakBeginContext e)