Ad Integration

ParOne can pass in dynamic variables to a VAST tag. You may provide a VAST tag in the Integrations tab of your organization’s settings in app.parone.com.

Default VAST Parameters

FieldValueDescription
description_url{mediainfo.description_url}URL for page description
content-creator{mediainfo.content_creator}ID of the content creator
content-key{mediainfo.id}ID of the content
tags{mediainfo.tags}The tags configured on the content in app.parone.com
is_livestream{mediainfo.is_livestream}Whether the content is a livestream or not
player-id{player.playerId}Value of the player-id attribute
position{player.position}Value of the position attribute

Custom VAST Parameters

To pass in custom VAST parameters, create a global variable on the page and reference the name of the variable in your templates.

For example, with the tag https://example.com/?custom_param={golfAds.example}, provide

window.golfAds = {
  example: "value",
}

This variable must be present on the page before our player initializes. It should not be added dynamically at runtime.

AMP Support for Custom VAST Parameters

Custom variables must be passed via data-param-* attributes on the AMP tag. Pass in the variable names directly. The previous example would become:

<!-- AMP -->
<amp-video-iframe
  data-param-example="value"
  data-param-element-type="block-playlist"
  layout="responsive"
  data-param-hide-all="true"
  width="16"
  height="9"
  src="https://sdk-amp.parone.io/index.html"
  data-param-env="prod"
  data-param-defaultlang="en-US"
  data-param-feed="1-all-system-videos"
></amp-video-iframe>