googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

examples of mid and post roll #913

Closed spormeon closed 4 years ago

spormeon commented 4 years ago

Hi

Is there any examples / pointers on how to do mid and post roll ads with videojs-ima and contrib ads. I'm drawing an absolute blank on how to do them so far, I have pre-rolls working, just not a clue on mid and post roll ( ideally a 2 mid roll setup)

Kiro705 commented 4 years ago

Hello @spormeon ,

I have tested in the videoJS-ima Advanced Example with this VMAP ad containing pre, mid, and post-roll. Ads played back successfully. Does that ad fail to play mid and post-rolls in your setup?

You can find other ad tags to test with in the IMA's sample tag page.

spormeon commented 4 years ago

my setup is prebid, which only returns vast

Kiro705 commented 4 years ago

Hello @spormeon ,

I have confirmed that the sample post-roll ad also works for the advanced example. Do you have an example mid or post-roll ad that is failing?

spormeon commented 4 years ago

basically i'm using prebid, i can get a "tag" back from prebid with contrib ads, that looks like this: https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=vast&unviewed_position_start=1&correlator=1595512070145&sz=640x480&url=https%3A%2F%2Fwww.twentyfournews.com%2Freaders-blog&iu=/1001824/Video-Corner-Units/twentyfournews.com&description_url=https%3A%2F%2Ftwentyfournews.com&cust_params=hb_uuid%3Dundefined%26hb_cache_id%3Dundefined

this tag is when there are no prebid bids, it adds the uuid, cache_id and bidder on the string when there are bids

i take that url which gets returned

prebid-config_obv_js_—_Prebid_Publishers__Workspace__png is generated and insert it into ima, like this:

and push to ima

prebid-config_obv_js_—_Prebid_Publishers__Workspace_-2

google adx video ads bid, show when available

but as you can prob tell, i aint very good at this stuff, noobie. I cant work out how to do mid and post rolls though? first hurdle is getting it working i guess, then next hurdle would be so as prebid bids o each pre, mid and post roll?

Kiro705 commented 4 years ago

Hi @spormeon ,

I am able to help you with implementing the videojs-ima plugin so that it can handle mid and post-roll, however I am unable to help debug issues with what types of ads are being returned by Google Ads Manager. This Ad Manager guide on Target video line items to positions may be able to assist with that.

In terms of support I can provide, can you verify if your IMA implementation can correctly play this VMAP ad tag containing pre, mid, and post-roll ads?

spormeon commented 4 years ago

ye, i can play that vmap file. I've actually revolved on since asking this question, I can get my own vmap file to play now as well, so got pre, mid and post working in effect

Kiro705 commented 4 years ago

Based on that, it sounds like I can close this issue. Please feel free to reopen if the problem continues.