(IMA - VMAP only, VAST) Used to remove the entire upcoming ad break if no ad is currently playing OR to skip the entire current ad break if an ad is playing
Consider the following when using this method:
To cancel a preroll ad in IMA before playback starts,
preloadAds
must be set totrue
.If you call
skipAdBreak()
multiple times, behavior varies based on the ad client.
AdΒ Client Behavior VAST Calling skipAdBreak()
multiple times skips the same number of upcoming ad breaks
For example, ifskipAdBreak()
is called three times, the next three ad breaks will be skipped.IMA (VMAP only) Calling skipAdBreak()
multiple times only skips the next scheduled ad break
For example, ifskipAdBreak()
is called three times, only the next ad break will be skipped.