This article describes how to deliver ads with HTML5 video players.
Video Cloud supports pre-roll advertising from DoubleClick for Publishers for players in HTML5 mode. This capability provides a way for you to show ads before your videos play on iPhones, iPads, and other devices that do not support Flash video players.
This feature is currently released as Limited Availability for testing with a small number of customers. Participation in Limited Availability releases is by invitation only, so we can have an appropriately controlled test to make sure the feature is ready for release at scale. Please contact your Account Manager if you would like to learn more.
Advertising for HTML5 videos requires the following:
HTML5 advertising with Video Cloud currently has the following limitations:
Set policies for HTML5 videos as you do for your ads played via Flash. For support on how to integrate ads with Video Cloud, see the extensive documentation in the Advertising Delivery section of the Video Cloud documentation, beginning with Managing Video Advertising. For details on policy setting and trafficking campaigns specific to DoubleClick for Publishers, see DoubleClick's DFP Specific Information.
Before you begin HTML5 ad integration, be sure that your video plays in a smart player and you have enabled HTML5 mode for that player's account. For a list of smart players, specific customization support for smart players, and instructions on how to enable smart players for HTML5 mode, see Delivering Video with HTML5 and Smart Players and Setting Your HTML5 Video Delivery Options.
To set ad server integration for HTML5 ads, enable ads for the smart players where you'll play ads, and edit the ad policies for each in the Video Cloud Studio Advertising module. For instructions on these processes, see Enabling ad requests for players and Editing ad policies for players.
In the Advertising module, for the selected smart players, you can set properties which will then be used for both your Flash player and HTML5 player:
The advertising API has been started in the smart player API with the ad start and ad complete events. Here's an example of using these events:
var adModule = experience.getModule(brightcove.api.modules.APIModules.ADVERTISING); adModule.addEventListener(brightcove.api.events.AdEvent.START, onAdStart); adModule.addEventListener(brightcove.api.events.AdEvent.COMPLETE, onAdComplete);
The advertising API does not yet support dynamic configuration of ad settings, but you can change the ad server URL and ad targeting parameters dynamically for each player through the usage of player configuration parameters. Both adServerURL and additionalAdTargetingParams are supported in the same way they are supported for the Flash player and as explained in the player configuration documentation.
Video Cloud supports HTML5 ad integration with DoubleClick for Publishers and offers partners the opportunity to test currently unsupported ad servers for successful HTML5 ad integration, for ad network and ad serving partners seeking to deliver HTML5 ads to a Video Cloud HTML5 video players. The process of testing an ad server for support involves checking to see if the ad server meets a few requirements, enabling the player for ads in the Video Cloud Advertising module, testing ad server compatibility in a browser, and evaluating player performance on supported mobile devices. See Testing Unsupported Ad Servers for HTML5 Delivery for details.