Reply
Occasional Contributor
Posts: 2
Registered: ‎12-01-2016
Accepted Solution

Playing Dynamic Vast Tag

Hi there, I'd like to play a vast tag in my player that I define on the page. I've followed the steps on this page but instead of playing the new vast tag it plays the one from the ad set I created in Backlot.

 

Any help would be appreciated. I've copy pasted my code below for your reference.

 

 

<script src='//player.ooyala.com/v3/45b8294c6ad14265b2b47586c911cb07'></script>
<div id='ooyalaplayer' style='width:320px;height:250px'></div>
<script>
	var playerSettings = {
		height: '100%',
		width: '100%',
		vast:{
// this tag will be dynamically generated on the page tagUrl: "http://demo.tremorvideo.com/proddev/vast/vast_inline_nonlinear.xml" } }; OO.ready(function() { OO.Player.create('ooyalaplayer', 'ltcG54NzE6Bxk08Mqs1_KMcQZDN7lH8N', playerSettings); console.log(OO.Player.isolate(0)); }); </script>

 


Accepted Solutions
Highlighted
Ooyalan
Posts: 26
Registered: ‎11-08-2016

Re: Playing Dynamic Vast Tag

Hi slberry,

 

In order to play the vast tag you are trying to use we recommend you use the "Google IMA" for player V3 parameter to load the vast, as seen below:

 

var playerParam = {
"google-ima-ads-manager" : {"adTagUrl" : "http://demo.tremorvideo.com/proddev/vast/vast_inline_nonlinear.xml" }
};

 

For more information on Google IMA with player V3 check the following link:

http://help.ooyala.com/video-platform/concepts/ads_dev_google_ima.html

 

Note: The overlay Ad will only show if you are using this vast tag with google IMA for companion Ads additional code has to be added, I'll leave you a comunity post below so you can review how to implement a companion ad with Google IMA player v3:

 

http://community.ooyala.com/t5/Developers-Knowledge-Base/Displaying-Companion-Ads-for-Google-IMA-V3/...

 

I hope you find this information useful.

Best regards.

 

Paulo Padilla

Technical Support Engineer

View solution in original post


All Replies
Highlighted
Ooyalan
Posts: 26
Registered: ‎11-08-2016

Re: Playing Dynamic Vast Tag

Hi slberry,

 

In order to play the vast tag you are trying to use we recommend you use the "Google IMA" for player V3 parameter to load the vast, as seen below:

 

var playerParam = {
"google-ima-ads-manager" : {"adTagUrl" : "http://demo.tremorvideo.com/proddev/vast/vast_inline_nonlinear.xml" }
};

 

For more information on Google IMA with player V3 check the following link:

http://help.ooyala.com/video-platform/concepts/ads_dev_google_ima.html

 

Note: The overlay Ad will only show if you are using this vast tag with google IMA for companion Ads additional code has to be added, I'll leave you a comunity post below so you can review how to implement a companion ad with Google IMA player v3:

 

http://community.ooyala.com/t5/Developers-Knowledge-Base/Displaying-Companion-Ads-for-Google-IMA-V3/...

 

I hope you find this information useful.

Best regards.

 

Paulo Padilla

Technical Support Engineer