What are Embed-Specific Ad Tags ? (Enterprise Partners Only)
Embed Ad Tags allow Enterprise Publishers to utilize your own ad tags on a per embed basis. For example, it is now possible to embed the same video in multiple locations while using different ad tags for each embed. The Bolt Video Player will call your ad server and will play the ad creative returned. Ad tags used in Embeds will override video specific ad tags, website specific ad tags and default ad tags. You can also use video specific ad tags in the Playwire backend, for more information view this support article. The embed example below shows the new data-ad-tag attributes available.
<script data-ad-tag="//path_to_default_ad_tag" data-desktop-ad-tag="//path_to_desktop_ad_tag" data-html5-ad-tag="//path_to_html5_ad_tag" data-mobile-ad-tag="//path_to_mobile_ad_tag" data-config="//support.playwire.com/demos/config_embed_ad_tag.json" data-height="100%" data-width="100%" src="//cdn.playwire.com/bolt/js/zeus/embed.js" type="text/javascript"> </script>
Embed-Specific Ad Tag Attributes
Attribute | Description |
---|---|
data-ad-tag | Default ad tag that can be used for all cases: desktop, HTML5 and mobile devices. |
data-desktop-ad-tag | If Flash is supported by the desktop device, this ad tag will be used. |
data-html5-ad-tag | If Flash is not supported by the desktop device, this ad tag will be used. |
data-mobile-ad-tag | If the the user is using a mobile device, this ad tag will be used. |
1
Copy Embed Code:
An embed code is a single line of text you will be able to copy and paste into the HTML of your website, which will then render your video wherever you place the embed code.
- After navigating to the video you would like to embed, locate the section titled Embed under the Video Details title. If you need help finding your vide and the embed code, view this article for in-depth help.
- Click the copy button to the right of the text
- A dialog box will appear confirming you copied the text correctly; click “OK”
- The embed code is now copied to your clipboard
2
Embed Your Video:
Open up your favorite text editor or IDE and open the file you would like to place your emded code.
- Paste the embed code you copied in the prior step where you would like the video to appear.
- Embed code must be placed between the opening and closing <body> tags NOT in the <head> section
- Add the data-ad-tag attribute to your embed, the lines are highlighted in the example below
- Use your own ad tag as the value for the data-ad-tag attribute
- Remember the ad tag used here will override video specific ad tags, website specific ad tags and default ad tags
Embed Code Example
<script data-ad-tag="//shadow01.yumenetworks.com/yvp/21/xml/211DaVuJgGj/vpaid_html5.xml" data-desktop-ad-tag="//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=is&c=23&pl=VAST&pli=5343350&PluID=0&pos=9734&ord=[timestamp]&cim=1?;frmt=0;frmt=1;frmt=22;plID=1811627603001;ttID=1814969451001;cue=pre;cgm=0;ord=738004600?" data-html5-ad-tag="//pubads.g.doubleclick.net/gampad/ads?sz=400x300&iu=%2F6062%2Fiab_vast_samples&ciu_szs=300x250%2C728x90&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&correlator=[timestamp]&cust_params=iab_vast_samples%3Dlinear" data-mobile-ad-tag="//ad4.liverail.com/?LR_PUBLISHER_ID=95043&LR_SCHEMA=vast2-vpaid&LR_AUTOPLAY=0&LR_VIDEO_ID=__MEDIA_ID__&LR_TITLE=__TITLE__&LR_PARTNERS=930081&LR_VIDEO_URL=__CONTENT_URL__" data-config="//support.playwire.com/demos/config_embed_ad_tag.json" data-height="100%" data-width="100%" src="//cdn.playwire.com/bolt/js/zeus/embed.js" type="text/javascript"> </script>