Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Ad Pods and stand alone Ad


Hello.

I have a question about jwplayer vast.

Create vast xml with Ad Pod <Ad> and stand alone <Ad> as shown below.

When jwplayer calls http://dev.com/test.xml, jwplayer request ad1.xml, ad2.xml, ad3.xml, and ad1.xml, ad3.xml ad is played.

Ad Pod <Ad> and stand alone <Ad> in test.xml, and only stand-alone <Ad> and child <VASTAdTagURI> should not be called.

What should I do?

=========test.xml=========

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
<Ad sequence="1">
<Wrapper fallbackOnNoAd="true">
<AdSystem version="1.0">dev</AdSystem>
<VASTAdTagURI>
<![CDATA[
https://dev.com/ad1.xml
]]>
</VASTAdTagURI>
<Impression><Impression/>
</Wrapper>
</Ad>
<Ad>
<Wrapper>
<AdSystem version="1.0">dev</AdSystem>
<VASTAdTagURI>
<![CDATA[
https://dev.com/ad2.xml
]]>
</VASTAdTagURI>
<Impression><Impression/>
</Wrapper>
</Ad>
</VAST>

=========ad2.xml=========

<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
<Ad sequence="2">
<Wrapper>
<AdSystem version="1.0">dev</AdSystem>
<VASTAdTagURI>
<![CDATA[
https://dev.com/ad3.xml
]]>
</VASTAdTagURI>
<Impression><Impression/>
</Wrapper>
</Ad>
</VAST>


Thank You.

9 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

I’m a bit confused as to what you want the end result to look like.

Please tell me more about your use-case.

a...

User  
0 rated :

.

Alex

JW Player Support Agent  
0 rated :

Hi Alvin,

I agree with George – can you elaborate on what you are trying to accomplish?

Thank you.

a...

User  
0 rated :

Hi,

I will summarize the above questions and ask them again.

There is a question during testing with one Ad pod <Ad> and one Stand Alone <Ad>.

If Ad pod is no ad, I want to show stand alone ad.

However, when I call mixedAd.xml, both Ad pod <VASTAdTagURI> and stand alone <VASTAdTagURI> are called in jwplayer.

How can call only Ad pod <Ad> in jwplayer?


====== <script> ======

<script src="http://content.jwplatform.com/libraries/z3exF2NE.js"></script>
<div id="myElement"></div>
<script>
jwplayer("myElement").setup({
file: "https://content.jwplatform.com/videos/hWF9vG66-TNpruJId.mp4",
advertising: {
client: "vast",
tag: 'http://blahblah.com/mixedAd.xml',
},
});
</script>


====== mixedAd.xml ======

<?xml version="1.0" encoding="UTF-8"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
<Ad sequence="1">
<Wrapper fallbackOnNoAd="true">
<AdSystem version="1.0">XC</AdSystem>
<VASTAdTagURI>
<![CDATA[http:/blahblah.com/ad1.xml]]>
</VASTAdTagURI>
<Impression></Impression>
</Wrapper>
</Ad>
<Ad>
<Wrapper>
<AdSystem version="1.0">XC</AdSystem>
<VASTAdTagURI>
<![CDATA[http://blahblah.com/ad2.xml]]>
</VASTAdTagURI>
<Impression></Impression>
</Wrapper>
</Ad>
</VAST>

Alex

JW Player Support Agent  
0 rated :

Hi Alvin,

So ad1.xml is an ad pod and ad2.xml is the standalone ad, correct?

a...

User  
0 rated :

HI Alex,

Yes.

Ad1.xml is an ad pod, ad2.xml is standalone ad.

If you call mixedAd.xml and look at the Chrome Developer Tools network, it looks like you are calling both ad1.xml and ad2.xml.

I want to call only ad1.xml.

Alex

JW Player Support Agent  
0 rated :

Hi Alvin,

I would suggest using an Ad Tag Waterfall. In a waterfall, the first ad pod (ad1.xml, your ad pod) will be requested. If ad1.xml cannot be filled, the player will then request and play ad2.xml.

I have demo set up here: http://qa.jwplayer.com/~abussey/demos/2017/may/108710-adpod.html

jwplayer().setup({
  file: "video.mp4",
  advertising: {
    client: "vast",
    tag: ["ad1.xml", "ad2.xml"]
  }
});

Please let me know if you need any more help or have any other questions.

Thank you!

Alvin Lee

User  
0 rated :

Hi Alex,

Thank you for your reply.

I want to control it with one tag url like mixedad.xml above.

I changed the value of client to "vast" and "googima" and tested it.

If the value of client is "googima", it works according to my case.

If the client value is "vast", is this case not supported?

Is there an implementation error in my xml?

Is it normal to call all URLs if the client value is "vast"?

Please answer me.

Thank you.

Alex

JW Player Support Agent  
0 rated :

Hi Alvin,

If your ad tag is created using DFP, then you can set up a waterfall through DFP and have it work in our player using the “googima” ad client with one ad tag. However, if you are using the “vast” ad client, you would need to set up the ad tag waterfall in an array as I previously showed you.

If the functionality is working for you when using the “googima” ad client, is there any reason not to use it?

Thank you.

This question has received the maximum number of answers.