Ad skip
The ad skip event signals that the viewer skipped an ad before it finished. Send it when the viewer selects the skip button. Send Ad complete instead if the ad plays to completion.
- Prerequisites: Session start, Ad break start, Ad start
- Associated metric: None
IMPORTANT
This event must be surrounded by
adBreakStart and adBreakComplete bookends, even when a single ad plays. Without these bookends, ad events are ignored and the ad duration is counted as main content duration.Recommended implementation types
Web SDK
Call sendEvent with eventType: "media.adSkip":
| code language-javascript |
|---|
|
iOS
Call trackEvent with the AdSkip event type.
| code language-swift |
|---|
|
Android
Call trackEvent with the AdSkip event type.
| code language-kotlin |
|---|
|
Roku Edge
Call sendMediaEvent with eventType: "media.adSkip":
| code language-brightscript |
|---|
|
Media Edge API
Call the adSkip endpoint:
| code language-sh |
|---|
|
Legacy implementation types (Analytics-only)
Media SDK JS 3.x
Call trackEvent with the AdSkip event type:
| code language-javascript |
|---|
|
Chromecast
Call trackEvent with the AdSkip event type:
| code language-javascript |
|---|
|
Roku 2.x
Call mediaTrackEvent with the MEDIA_AD_SKIP event type:
| code language-brightscript |
|---|
|
Media Collection API
Send an adSkip POST to the events endpoint:
| code language-json |
|---|
|
recommendation-more-help
media-analytics-help