Serve video ad units (VAST)

Learn about third-party in-stream video ads

Third-party in-stream video ads are accepted on Authorized Buyers according to the technical specifications and policies outlined below. Support for in-stream video ads applies to mobile applications and on sites accessed through mobile browsers.

Third-party in-stream ads must be served via a linear VAST pre-fetch tag by a VAST vendor approved specifically for Authorized Buyers. See the list of approved Ad Manager vendors.

New Flash video ads can no longer be uploaded into Studio, Campaign Manager 360, Display & Video 360, Google Ad Manager or Google Ads.

Flash video ads can no longer run through Campaign Manager 360, Display & Video 360, Authorized Buyers, Google Ad Manager or Google Ads. Additionally, our Active View and Verification tools for video no longer uses Flash. Learn more about how Google video ads have transitioned to HTML5.

In-stream video ad

Unit sizes File types File size Video length Frame rate
Video ads can render in any sized player.*

Examples
480x360
(4:3)
640x360
(16:9)
1920x800
(5:2)
Video
H.264 (MP4) video file type must be included **

Other formats, such
as HLS can be included but may not be used.

Audio
MP3 or AAC preferred.
10 MB
(maximum)
Maximum and minimum ad durations are set by publishers.

Although most inventory allows up to 15 seconds maximum ad duration, some requests allow 60 or more seconds.***
30 FPS
(maximum)

Recommendations

Some connected TV devices require that you add an HLS-encoded media file to your VAST response.

It is strongly recommended that you include an MP4 with at least 1080p resolution for ads served against high-quality, TV-styled content.  

    * Separate snippets are generated when different width and height values are declared. We recommend consistency when declaring video ad sizes. 
  ** The user device, with help from the IMA SDK chooses the first media file it encounters where the file type listed is a video format that the device can understand. This is determined by client-side software that is run for video ad requests. The MP4 requirement ensures sufficient device coverage.
*** Publishers commonly allow longer durations for skippable ads (determined by the skippable_max_ad_duration signal). If you have longer format ads, such as 60 or more seconds, consider making them skippable to improve your reach.
  

Companion ad (optional, but recommended)

Unit sizes Resource types File size Animation length Frame rate
300x250 Image
Static GIF, JPG, PNG


IFrameResource
HTML/JavaScript code to be displayed
within an iframe on the publishers page.
See section 2.3.3.2 of the
VAST specification for more details.
150 K
(maximum)
Host-initiated play
30 seconds

User-initiated play
(rollover or click)
4 minutes
24 FPS
300x60

Creative requirements

  • All VAST tags must comply with the Google XML summary for VAST ad server response. VAST 2.0 or higher is supported.
  • Audio is not allowed for companion ads.
  • Creatives may not expand past ad unit boundaries.
  • Creatives must play inline by including the playsinline parameter. Creatives may not expand past ad unit boundaries unless initiated by the user.
  • On all ads with partially black, white, or transparent backgrounds, you must add a visible border of a contrasting color to the majority background color of the creative.
  • All creatives must be free of applications, such as ActiveX, viruses, exit pops, spyware, and malware.
  • Creative coding may not use cross-domain scripting or set cookies in unapproved domains.
  • All creatives must open in new windows. The target window for the clickthrough URL must be set to "_blank" so the URL will open in a new window. Do not leave the target statement undeclared.
  • For each video ad served in a VAST tag, a <mediafile></mediafile> node is required for the MP4 video format. Other formats, such as HLS may be included but might not be used. If a tag does not include each of the formats, it will only serve on the players with the included formats.

    Missing media files do not result in disapproved ads, but are filtered at runtime. Progressive is required. Streaming is optional.
  • Consistent <adsystem></adsystem> node value: Please be sure that your all of your VAST tags include a specific consistent value for your company in the <adsystem></adsystem> node in the VAST XML. For example, Google always includes the following for VAST tags: <adsystem>Google</adsystem>.
  • Unique ad ID value: Each VAST tag generated should include a unique value for the id attribute in the <ad></ad> node. Two different VAST tags should not have the same Ad id value. For instance:
    • VAST tag 1:  <Ad id="3947179">
    • VAST tag 2:  <Ad id="8741831">
  • Note that only the following resource types will be allowed for <companion></companion> node in the VAST XML:
    • StaticResource: URI to a static file, such as an image
    • IFrameResource: URI source for an iframe to display the companion element
    •  HTMLResource
Use of a Google SDK for third-party ad servers

Google HTML5 SDK

In order for Google’s HTML5 SDK to serve video ads from a third-party ad server, the third-party ad server must include a CORS header in all of its responses. The CORS header must be formatted as follows:

Access-Control-Allow-Origin: [allow domain access from the originating request]

OR

Access-Control-Allow-Origin: *

Access-Control-Allow-Origin: * option cannot be used in combination with
Access-Control-Allow-Credentials: true.

VAST wrappers
  • No more than two VAST wrappers that redirect to one VAST in-line is permitted.
  • Supported TrackingEvents (wrapper may include more than one node per each event):
    • start
    • firstQuartile
    • midpoint
    • thirdQuartile
    • complete
    • mute
    • unmute
    • pause
    • resume
SSL-compliance
Creatives must be SSL-compliant.

All inventory available through Google partners has a secure connection (SSL) and requires SSL-compliant creatives.

For more information, see the SSL implementation guide.

  • Vendors must receive separate certification to serve VAST ads on SSL-compliant publisher inventory.
  • All ad responses must be SSL-compliant (HTTPS). All servers involved require full SSL certification.
  • VAST tags should auto-detect requests from an HTTP or HTTPS protocol and auto-adjust the URIs and companion banners to be SSL-compliant, if necessary.
  • Vendors and buyers must ensure that any URIs within the VAST XML (for instance, the <impression></impression>, <mediafile></mediafile>, and other nodes) that are served by a party other than the primary VAST vendor are also from vendors approved by Google for SSL-compliant ad serving or tracking.
  • Companion ad banners as well as any fourth-party calls to other technologies within the companion ad banner must also be made from SSL-compliant vendors that have been certified by Google.
  • Buyers must declare through RTB or the Authorized Buyers UI that the ad is SSL-compliant. If an ad is declared as SSL-compliant but makes any non-SSL-compliant responses, the ad will be disapproved.

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

Search
Clear search
Close search
Google apps
Main menu
17390887581733974960
true
Search Help Center
true
true
true
true
true
71030
false
false