Help Center Ad Gallery
HTML5 Video Ad
HTML5 introduces the new<video>
tag that allows easy integration and display of videos, including video ads. This tag is used to display a stand-alone video ad and you can link it to any standard zone to mix with other image banner ads. You can also set it up as an out-stream video ad for a more dynamic presentation. On the other hand, if you want to display a VAST-compliant video ad (pre-roll, mid-roll, post-roll, overlay and companion), please see our solution for VAST video advertising.
Demo
HTML5 Video Ad DemoCreate a HTML5 Video Ad
- Click the menu "Ads / Create a new ad"
- Choose the ad type to be Rich-Media/HTML ad
- Enter the HTML code with the
<video>
tag - Check the box "Automatically try to process rich-media/HTML code to track clicks" to enable click tracking. Impression tracking is always enabled.
Sample Video Ad Code
In this first example, the video ad will auto play without any sound.<a href="https://example.com/"> <video width="300" height="250" fullscreen="false" webkit-playsinline autoplay muted poster="http://example.com/thumbnail.gif"> <source src="https://www.adspeed.com/mp4/big_buck_bunny.mp4" type="video/mp4"> </video> </a>In this second example, the video ad only plays on mouse over and pause when the mouse is out of the ad area.
<a href="https://example.com/"> <div onmouseover="playVideo()" onmouseout="pauseVideo()"> <video id="sample-autoplay-video" width="640" height="360" fullscreen="false" webkit-playsinline> <source src="https://www.adspeed.com/mp4/big_buck_bunny.mp4" type="video/mp4"> </video> </div> </a> <script type="text/javascript"> var myVideo=document.getElementById("sample-autoplay-video"); function pauseVideo() { myVideo.pause(); } function playVideo() { if (myVideo.paused) { myVideo.play(); } } </script>Additionally, you can add tracking events that are recorded into ad server with tracking pixels. Here is a demo with code:
Demo: HTML5 Video with Tracking Events
Video Player Options
There are a number of customizable options you can use:autoplay
: starts playing the video as soon as it is readycontrols
: displays control buttons like Play, Pause. Displaying controls can interfere with ad clickingloop
: repeats the video after it is finishedmuted
: disables soundposter
: displays an image as thumbnail
Sample Video Ad URLs
Below are some sample MP4 video ads for testing and troubleshooting:Other Articles in Ad Gallery
This section provides demo, sample and instructions for the most common and popular ad creative templates. Click on a template link to view the description, demo and instructions to create in the ad server, customize it to suite your purpose and integrate the ad with your platform.
- Catfish Ad
- Composite Ad
- Expandable Ad or Rollover Flash ad
- Expandable Image Ad
- Floating Ad or Layer Ad
- Grid-of-Buttons Ad
- Grid-of-Images Ad
- HTML5 Ad from a ZIP file
- HTML5 Adobe Animate Ad
- HTML5 Animate Ad
- Image Banner with Multiple Clickable Buttons
- Image Slideshow
- Interstitial Ad
- jQuery Popup Ad
- Mobile In-App Interstitial Ad with MRAID
- Mobile Interstitial Ad
- Multi-Click Image Ad
- Outstream Video Ad
- Parallax Ad
- Peeling Ad
- Polite Ad or Two-Phase Ad
- QuickTime and Windows Media Video Ad
- Skin Background Ad
- Sticky Ad
Cannot find an answer for your question? Ask our Customer Care team
Related
- Campaign
"Documentation for API methods to manage your campaigns in our ad server. API Version1.4.6 (build 20240530). This page was updated ..."
- Outstream Video Ad
"Outstream video ads allow publishers to display stand-alone video ads outside a streaming video player. It is more advanced than ..."
in Ad Gallery - Website
"Documentation for API methods to manage one or multiple websites. API Version1.4.6 (build 20240530). This page was updated on Thu, ..."
- How do I setup a companion ad in video ad serving?
"A companion ad runs along with a VAST video ad (pre-roll, mid-roll or post-roll) to provide a more integrated experience ..."
- Video Ad Serving
"AdSpeed's Video Ad Server uses the IAB standard for video advertising known as VAST (Video Ad Serving Template) so video ..."