Is it possible to play 2 different ads using ima sdk and vjs player? + IRIS.tv

951 views
Skip to first unread message

Ken Guie

unread,
Mar 14, 2018, 6:33:02 PM3/14/18
to Interactive Media Ads SDK
Greetings, 

I am coding up a service called Iris.tv that is doing a great job at playing the next video once a video the user is watching is over.
The only problem is that I'm not getting things like a new preroll and cc, etc. 

Is it possible using VJS player and the ima sdk that is successfully playing the first preroll, to play another preroll with a different vast tag before the next video? 

From what I can see in our code, the vast tags are always the same, it's the content classification that changes depending on the video so I have to set the adTag to something new before each Iris play event. 

So far using what I can find in the ima docs, I can't use player.ima(options) because I've already used it once. I get an error. Is that correct? 
Is there another way to reset the options variable and provide a new tag? 

Is this possible? Thanks!

var options = {
id: player_id,
adTagUrl: 'Need to update this' // this.currentClip.ads.adCall
};

ima-sdk-adv...@google.com

unread,
Mar 15, 2018, 3:20:05 AM3/15/18
to ima...@googlegroups.com
Hi Ken,

Technically, you should be able to use your player after the video ads from your ad tag has been played by the IMA SDK. You should be able to accomplish this by sending a new Ads Request before the next video plays. However, my apologies as our team does not provide support for third-party integrations, and so I would recommend that you get in touch with their support team instead for further assistance.

Best regards,
Peter Laurence N. Oliquino
IMA SDK Team

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Ken Guie

unread,
Mar 15, 2018, 7:45:22 AM3/15/18
to Interactive Media Ads SDK
Hi, I appreciate that Peter,

As they only pull the mp4 file using their plugin, they don't really have anything to do with ads. 

As far as the ima sdk goes, I would like to know how to request another ad. I use the options above and set the adTagUrl to a new ad but when I try to request that ad using:

player.ima(options)
or
player.ima.requestAds()
even in conjunction with 
canvas.ima.initializeAdDisplayContainer()

it does not seem to work. 

So from the ima sdk point of view, 
After a preroll is played, is there an example or can you provide one where I can request a second ad in the same player? 

I know where i need to run the code, I just don't know what code to run that will work. 
Thanks!

(I should mention, i inherited this video project and the ima sdk and am new to video so I'm still ramping up, any descriptive answers are very much appreciated)

ima-sdk-adv...@google.com

unread,
Mar 16, 2018, 12:11:03 AM3/16/18
to ima...@googlegroups.com
Hi Ken,

You can use our Simple example code and you can refer to this guide on how you can implement multiple ads requests.

Additionally, since our team does not provide support for third-party integrations such as the VJS player that you are using right now, you may reach out to their support team via this link instead.

Thanks and regards,
Peter Laurence N. Oliquino
IMA SDK Team

Ken Guie

unread,
Mar 16, 2018, 8:33:37 AM3/16/18
to Interactive Media Ads SDK
Ah you google folks are sometimes no help at all. Apologies but it's true.

You keep talking about not supporting 3rd parties but I clearly asked an ima sdk question: how to load up a new ad.

I found out from a vjs colleague that all I have to do is:

canvas.ima.changeAdTag(options.adTagUrl);
canvas.ima.requestAds();

And that worked out perfectly. 

Where in your documentation is changeAdTag though and how do i get there? 

Thanks!

Oren Melamed

unread,
Mar 31, 2018, 1:25:57 PM3/31/18
to Interactive Media Ads SDK
Ken, simple google will show you this method is not IMA related but a wrapper function in the video-js IMA plugin: https://github.com/googleads/videojs-ima/search?utf8=✓&q=changeAdTag&type=
Reply all
Reply to author
Forward
0 new messages