Inspecting MediaFile Bitrate

285 views
Skip to first unread message

David Tinnes

unread,
Jan 19, 2018, 3:23:42 PM1/19/18
to Interactive Media Ads SDK
Is there any reliable way to inspect the bitrate of the chosen media file returned by IMA from a linear creative? Why is that not returned in the getAd() method or a getter for bitrate?

We've been running into problems with limited media file options and extremely high bitrates on those.  I am assuming we are SOL when it comes to VPAID in that regard as well, yes?


    1. adId:"697203496"
    2. adQueryId:"976316151"
    3. adSystem:"GDFP"
    4. advertiserName:""
    5. apiFramework:null
    6. bumper:false
    7. clickThroughUrl:"https://pubads.g.doubleclick.net/pcs/click?xai=AKAOjsuObujzOHIPMyD2uP5Qfnl17rz7HKccDkuGCbWSmI-hkz3Tkq2gsS7jt_Z_pV2GGmoxE29QLBExgjGNPPQdQAjBQmB1ZSIyAO5feIqhpAJYXReKz3BoeGBwRdHZ5bE2kNDs2kJ990c2GJz97f_3ySAHq76WRFZ--2dEZswZtlwPb41Y8lK6W8vChBkH3Va0DbIcnj5xfwnHQKj2L0qOIjNW2uYi-maahp5V3tG4qTvScvEGyQWCETotbrxaQEOjyuwi_rqD9Xfh79cU-QoVERYS&sig=Cg0ArKJSzLnb3d4UpUi6&adurl=https://developers.google.com/interactive-media-ads/docs/vastinspector_dual"
    8. contentType:"video/mp4"
    9. creativeAdId:""
    10. creativeId:"57859154776"
    11. dealId:""
    12. description:"External NCA1C1L1 Linear Inline ad"
    13. disableUi:false
    14. duration:10
    15. height:0
    16. linear:true
    17. mediaUrl:"https://redirector.gvt1.com/videoplayback/id/a33fc5b2685eb16e/itag/15/source/gfp_video_ads/requiressl/yes/acao/yes/mime/video%2Fmp4/ip/0.0.0.0/ipbits/0/expire/1516414904/sparams/ip,ipbits,expire,id,itag,source,requiressl,acao,mime/signature/6BD0794F7058F77B2D03E5685266A62181168903.877235873A05287BC6AC7BDF587F4024AF0D98D7/key/ck2/file/file.mp4"
    18. minSuggestedDuration:10
    19. skipTimeOffset:-1
    20. skippable:false
    21. surveyUrl:null
    22. title:"External NCA1C1L1 Linear Inline"
    23. traffickingParameters:""
    24. trustedFirstPartyAd:false
    25. universalAdIdRegistry:"unknown"
    26. universalAdIdValue:"unknown"
    27. vastMediaHeight:0
    28. vastMediaWidth:0
    29. vpaid:false
    30. width:0

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

unread,
Jan 22, 2018, 11:26:29 AM1/22/18
to ima...@googlegroups.com
Hi David,

Although the chosen bitrate is not accessible during playback, the IMA SDK does allow you to set a maximum bitrate in advance via the AdsRenderingSettings object. For VMAP tags, you can also use the AdsManager's updateAdsRenderingSettings method to modify your maximum bitrate between ad breaks.

I'm not sure that I understand your VPAID question. The bitrate for VPAID ads is handled in the same way as for non-VPAID ads. If that's not what you're asking, please clarify and I'll be happy to provide further information.

Regards,
Chris Feldman
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.

David

unread,
Jan 24, 2018, 11:20:59 AM1/24/18
to Interactive Media Ads SDK
Thanks for your response.  It's just that in some cases, our programmatic ads are returning only one bitrate option that is too large for slower connections.  So even if I set 500 for the bitrate and there is only one option at 5000, it will still select the 5000.  I would like to be able to detect this and not wait for the media timeout to kick in as this creates a bad user experience. 

On the VPAID side, We have had some VPAID creatives that use their own video player and are not respecting the adsRenderingSettings or even some of the VPAID specs.  I am assuming that is just something we need to work out with the ad creators.

Thanks again

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

unread,
Jan 24, 2018, 3:09:57 PM1/24/18
to ima...@googlegroups.com
Hi David,

I understand the issue that you're facing. Although at this time, it is not possible to view an ad's bitrate, I will speak to the rest of my team about whether it would be possible for a future version of the SDK to have that functionality. In the meantime, I'd suggest working with your ad provider. It might be possible adjust your serving settings to limit the bitrate on the media files returned in your VAST responses.

Regards,
Chris Feldman
IMA SDK Team

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

unread,
Aug 8, 2018, 3:10:51 PM8/8/18
to ima...@googlegroups.com
Hi David,

As of the most recent version of the SDK for HTML5, there is now a method called getVastMediaBitrate.

getVastMediaBitrate()

When both the creative and the media file have been selected by the SDK, this will return the bitrate for the media file as listed in the vast response.

Returns number: The bitrate for the selected media file or 0. 

Regards,
Chris Feldman
IMA SDK Team 

Reply all
Reply to author
Forward
0 new messages