This documentation page applies when using the Google IMA SDK with Radiant Media Player. For documentation on using rmp-vast go here.
Radiant Media Player provides a complete client-side video ads solution. To get started you just need to get your hands on an ad tag URL from your ad provider and add it to your player code. Here is an example:
Next sections include more options and documentation for advanced use cases including: ad scheduling, ad waterfalling, ad block detection or our ads API.
Radiant Media Player is a Google's video technology partner and has its HTML5 IMA SDK integration certified by Google. As such you are sure you can generate revenue according to best practices in the industry.
You can make video ad requests to any VAST-compliant ad server with Radiant Media Player. Supported 3rd-party ad servers include:
We provide the technology for you to render video ads in our web video player. Revenue generated with video ads remains 100% yours.
Ads may work in other environments with Radiant Media Player but they are not officially supported.
When version for a browser is not specified we support the latest version of this browser.
The following streaming protocols can be used for media content delivery when video ads are enabled within the player (this is for the media content behind the ad, not the ad itself, see next section for the ad):
You can also display audio-only ads within our audio-only player.
A VAST response should hold information about the nature of the creative (type, size, bitrate ...) being returned. A VAST response can hold several formats at various bitrates so that an ad can be displayed on a larger range of devices. Radiant Media Player is equipped with a bandwidth and viewport size detection mechanism for playback of video ads. As such and assuming the creative type, size and bitrate can be found in the VAST response the player will automatically select the best suitable candidate to playback the ad based on device capabilities:
Example of formats (MIME types) that can be used for the ad:
For an example of a VAST response with a combination of formats see this adTag.
It is possible to stream video ads with adaptive bitrate streaming in HLS. However this is only possible where HLS is natively supported in HTML5 video (macOS Safari, iOS Safari, Android Chrome, MS Edge) and assuming a proper HLS stream is present in the VAST response.
You can find more information on the subject here.
Radiant Media Player support autoplay of pre-roll linear ad assets on desktop and mobile devices. Read our autoplay support documentation page for more information.
Activate or not ads within the player. Default: false.
Specifies the ad tag url that is requested by the player from the ad server. Default: ''.
We recommend using fully qualified URLs for the
The targeted language for the ads UI provided by the IMA SDK. ISO 639-1 (two-letter) code. Default: 'en'.
Some languages like Portuguese may require more than a two-letter code. For Portuguese Portuguese use 'pt_pt' and for Brazilian Portuguese use 'pt_br'. Contact us if you are in doubt about which language code to use.
On iPhone iOS 10+ inline HTML5 video playback allows for the display of skippable video ads. However fullscreen mode on iOS is limited to the default Apple-provided player that cannot support custom UI elements. When set to true this setting enables support for skippable video ads on iPhone iOS 10+ However in such case and when in fullscreen mode new ad requests will not be able to be loaded. When set to false the player will not support skippable video ads but new ad requests will render in fullscreen mode. More information here. Default: false.
A countdwon to be displayed within the player control bar. It shows the remaining time for the video ads. Default: false.
If you are using video ads from AdSense or Ad Exchange set adCountDown: false. This is because most ads from AdSense or Ad Exchange already have a built-in ad countdown.
Specifies the maximum number of redirects before the subsequent redirects will be denied, and the ad load aborted. The number of redirects directly affects latency and thus user experience. This applies to all VAST wrapper ads. Default: 4.
When set to true, a remaining time bar UI will be displayed on top of the player control bar for linear creatives. Default: false.
When set to true this setting will cause the player to attempt to reload the initial adTag when a user requests content to be played after having ended. This setting is compatible with the
adTagWaterfall setting and outstream ads
but is disabled with related, playlist, loop setting and ad scheduler. This setting should not be used with VMAP adTags.
useRmpVastOnImaLoadError is set
to true the player will attempt to load
rmp-vast library as a fallback to the IMA SDK and resume the ad loading process. This can help to fight ad-blockers but is not a guarantee for success as ad-blockers could also
block VAST/creative HTTP requests after the library has loaded. Default: true.
When set to true this setting will cause to pause the playing linear ad (or content for a non-linear ad) when the ad is interacted with. Default: true. Note that for VPAID ads this setting is always set to false - it should be up to the VPAID creative to decide what to do upon interaction. On some devices the browser may still decide to pause a video asset when a new window opens.
Timeout (in milliseconds) when loading a VAST single wrapper. Default: 7000, which represents a 7 seconds timeout.
Timeout (in milliseconds) when loading a creative media file (after a successful VAST response). If loading takes longer than this timeout, the ad playback is cancelled and the next ad in the pod plays or content resumes. Default: 10000 which represents a 10 seconds timeout.
Set to false if you wish to have fine grained control over the positioning of all non-linear ads. If this value is true, the ad is positioned in the bottom center. If this value is false, the ad is positioned in the top left corner. Equivalent
AdsRenderingSettings.autoAlign IMA SDK setting. Default: true.
Setting added with player version 4.4.20.
Maximum recommended bitrate. The value is in kbit/s. The player will pick media with bitrate below the specified max from the VAST response, or the closest bitrate if there is no media with lower bitrate found. Default: -1, means the bitrate will automatically be selected by the player.
Forces non-linear AdSense ads only to render as linear fullslot. If set, the content video will be paused and the non-linear text or image ad will be rendered as fullslot. The content video will resume once the ad has been skipped or closed. Default: false.
Render non-linear ads with a close and recall button. Default: true.
When set to true this setting will cause the player to load and autoplay the provided pre-roll adTag when init is called. When the linear ad asset has completed content will not resume but will rather remain in a state as if it was never started (this behaviour is similar to having an outstream ad before content). A user interaction will thus be needed to start content after ad has completed. If a non-linear ad is returned by the ad server content will autoplay with the ad so it is up to the publisher to insure a compatible linear ad asset is returned by the ad server when using this setting (or otherwise to implement different case-scenario through the player API). This setting is not compatible with the Ad scheduler or VMAP adTag and is only available for the IMA SDK. Default: false.
Specifies the duration of the content in seconds to be shown. Used in AdX requests only. Default: 0.
Specifies the keywords used to describe the content to be shown. Used in AdX requests only. Default: ''.
Specifies the title of the content to be shown. Used in AdX requests only. Default: ''.
See the ad tag variables & macros documentation page.