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

Multiple Companion Ads from different Scheduled Ads


Hi,
it seems like the JWPlayer is unable to load any companion ads beyond the first scheduled ad. For example, I have the following setup:

playerInstance.setup({
file: '//content.jwplatform.com/videos/bkaovAYt-640.mp4',
image: '//support-static.jwplayer.com/images/VPAID2.png',
advertising: {
client: 'googima',
schedule: {
preroll: {
offset: "pre",
tag: 'http://localhost/vpaid2pre.xml'
},
postroll: {
offset: "post",
tag: 'http://localhost/vpaid2post.xml'
}
},
companiondiv: {
id: "adcompanion",
width: 100,
height: 10
}
}
});

The vpaid2pre defines this ad companion:

<CompanionAds>
<Companion id="wrapper-pre" width="100" height="10">
<HTMLResource>
<![CDATA[
<!-- HTML inline banner -->
]]>
</HTMLResource>
</Companion>
</CompanionAds>

And the vpaid2post defines this ad companion:

<CompanionAds>
<Companion id="wrapper-post" width="100" height="10">
<HTMLResource>
<![CDATA[
<!-- HTML inline banner -->
]]>
</HTMLResource>
</Companion>
</CompanionAds>

Now I would expect to at least receive 2 adCompanios Events on the playerInstance, but so far it looks like JWPlayer ever only loads the first companion and completely ignores any subsequent companions. Even when I define different widths / heights for both of them, I will only see the first one, but not the second. Is there a way to fix this?

Thanks,
Steven

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

My first suggestion would be to try our Multiple Companion Ads code example at https://support.jwplayer.com/customer/en/portal/articles/1434336-example-multiple-companion-ads

I would expect on(‘adCompanions’) to fire when your second ad tag loads, so hopefully it will load the ad companions correctly.

This question has received the maximum number of answers.