skipAdBreak()

(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 to true.

  • If you call skipAdBreak() multiple times, behavior varies based on the ad client.

    AdΒ ClientBehavior
    VASTCalling skipAdBreak() multiple times skips the same number of upcoming ad breaks

    For example, if skipAdBreak() 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, if skipAdBreak() is called three times, only the next ad break will be skipped.

© 2007-2024 Longtail Ad Solutions, Inc.