Linear cue points (HTML5 SDK)

156 views
Skip to first unread message

Tibor Mikóczy

unread,
Feb 7, 2019, 8:58:52 AM2/7/19
to Interactive Media Ads SDK
Dear IMA team,

I'm using VMAP to schedule ads in our videos (linear and nonlinear), and I'd like to display in the players progress bar when the ads will play. I've managed to acquire the cue points from the AdsRequest (through getCuePoints()). My problem is, that I don't want to show cue points for nonlinear ads. The getCuePoints() method however returns cue points for all the ads. So my question is, is there a way to filter out only the linear ads? Or can I somehow get the vmap response (without making another request), so I can parse it? Or maybe the parsed VMAP response?

Thank you

ima-sdk-fo...@google.com

unread,
Feb 7, 2019, 4:00:13 PM2/7/19
to ima...@googlegroups.com
Hi there,

Thank you for reaching out to us. The IMA SDK for HTML5 provides an API method called isLinear() that you can use to know whether the current ad is Linear or Non-Linear. You can use it to show cuepoints if this API method returns true and not to show the cuepoints if it returns false.

Regards,
Arnaud Casame
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
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.

Tibor Mikóczy

unread,
Feb 8, 2019, 9:17:58 AM2/8/19
to Interactive Media Ads SDK
As far as I know, isLinear() returns the type only for the actually running ad. I'd like to show the linear cue points right after the video starts playing, for all linear ads. Is that possible? The only solution I came up with is to make a request to the VMAP xml, parse it in js and display the cue points for the linear ads from the vmap. The problem with this solution is, that there will be 2 requests to the vmap, once from the SDK, once from my script. Is there a way to get the vmap content from the SDK after it was loaded?

Thank you

ima-sdk-fo...@google.com

unread,
Feb 8, 2019, 3:59:25 PM2/8/19
to ima...@googlegroups.com
Hi there,

Unfortunately, there's no API method that would allow you to get the whole VMAP content. You can use the isLinear() API method to check if the current ad is linear and update the app UI accordingly. However, you would get all the cuepoints at once. I've attached a screenshot of the implementation that you can use to achieve such behavior.

Regards,
Arnaud Casame
IMA SDK Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 02/08/19 09:17:57 t.mi...@gmail.com wrote:
As far as I know, isLinear() returns the type only for the actually running ad. I'd like to show the linear cue points right after the video starts playing, for all linear ads. Is that possible? The only solution I came up with is to make a request to the VMAP xml, parse it in js and display the cue points for the linear ads from the vmap. The problem with this solution is, that there will be 2 requests to the vmap, once from the SDK, once from my script. Is there a way to get the vmap content from the SDK after it was loaded?

Thank you

--
Screen+Shot+2019-02-08+at+11.42.31+AM.png
Reply all
Reply to author
Forward
0 new messages