Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

IMA SDK picks lower resolution mp4 variants when several higher quality variants are available in the VAST response

88 views
Skip to first unread message

Geethu Rajasekharan

unread,
Feb 4, 2025, 11:11:21 AMFeb 4
to Interactive Media Ads SDK
Hi,

I'm integrating VAST ads into our application and I see that for some of the ads, the SDK picks up the lowest variant (the first in the list of mediafiles) instead of picking a better quality mp4 variant. Most ads work fine playing good variants. The only difference in the VAST responses that I could notice was that the poor variants are picked when the VAST response has an additional GoogleHostedMedia extension with MuxedMediaUrls inside it(See a screen snippet attached).
For the txt file that is attached, we see a relatively good quality playback of ad. 
Please note that this issue exists on HTML and Exo player versions of the SDK.

Could you please let me know how I could ensure that a good quality variant is picked always? 

Thanks and Regards,
Geethu
image (2).png
VAST response (We got time today).txt

IMA SDK

unread,
Feb 5, 2025, 2:13:24 AMFeb 5
to geeth...@gmail.com, ima...@googlegroups.com

Hi Geethu,

Thank you for contacting the IMA SDK support team.

The SDK selects the optimal bitrate based on the device's network conditions. However, for the Android and HTML5 SDK, you can use [setBitrateKbps || Specifying bitrate and video format inHtml5] to define a maximum bitrate. The SDK will choose media with a bitrate below the specified limit, and the platform will play media files compatible with the specific player. If the maximum bitrate is set to the default value of -1, the SDK automatically selects the bitrate. Note that the built-in bandwidth detection feature currently works only with Google ad servers.

To investigate the issue, could you please share the VAST URL and response containing the mentioned tags via the "Reply to Author" option?

This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 

 

IMA SDK

unread,
Feb 10, 2025, 12:21:45 PMFeb 10
to geeth...@gmail.com, ima...@googlegroups.com

Hi Geethu,

The VAST URL that you have sent is not from Google or GAM. All Google ad traffic URLs starting with https://pubads.g.doubleclick.net/. Kindly share the sample VAST tag URL that reproduces the issue. Refer to the sample tags

Geethu Rajasekharan

unread,
Feb 14, 2025, 3:21:27 AMFeb 14
to Interactive Media Ads SDK

IMA SDK

unread,
Feb 14, 2025, 9:04:06 AMFeb 14
to geeth...@gmail.com, ima...@googlegroups.com

Hi Geethu,

Thank you for providing the VAST URL but an empty response is being returned.

I have checked your screenshot and shared logs. I observed with GoogleHostedMedia extension you are using videoCodec, audioCodec and bitrate configurations which means the player will decide the URL to play by first matching videoCodec then audioCodec and then near bitrate value. Without GoogleHostedMedia extension you are not using videoCodec  and audioCodec configurations in media files which means the player will match only the near bitrate. 

I would suggest using GoogleHostedMedia extension to use multiple bitrate configurations in every videoCodec and audioCodec configuration. 

For example:

<MediaUrl delivery="progressive" itag="0" mimeType="video/mp4" videoCodec="avc1.4d001f" audioCode="mp4a.40.2" width="640" height="360" contentLength="1022464" bitrate="544">https://redirector.gvt1.com/video………</MediaUrl>
<MediaUrl delivery="progressive" itag="0" mimeType="video/mp4" videoCodec="avc1.4d001f" audioCode="mp4a.40.2" width="640" height="360" contentLength="1022464" bitrate="1656">https://redirector.gvt1.com/video………</MediaUrl>
<MediaUrl delivery="progressive" itag="0" mimeType="video/mp4" videoCodec="avc1.4d001f" audioCode="mp4a.40.2" width="640" height="360" contentLength="1022464" bitrate="3336">https://redirector.gvt1.com/video………</MediaUrl>
‹MediaUrl delivery="progressive" itag="0" mimeType="video/mp4" videoCodec="avc1.640029" audioCodec="mp4a.40.2" width="1280" height="720" contentLength="3109640" bitrate="544">https://redirector.gvt1.com/vide…….</MediaUrl>
‹MediaUrl delivery="progressive" itag="0" mimeType="video/mp4" videoCodec="avc1.640029" audioCodec="mp4a.40.2" width="1280" height="720" contentLength="3109640" bitrate="1656">https://redirector.gvt1.com/vide…….</MediaUrl>
‹MediaUrl delivery="progressive" itag="0" mimeType="video/mp4" videoCodec="avc1.640029" audioCodec="mp4a.40.2" width="1280" height="720" contentLength="3109640" bitrate="3336">https://redirector.gvt1.com/vide…….</MediaUrl>

In case you are still facing the issue then share the VAST URL with and without GoogleHostedMedia extension for further investigation.

You can provide the following details via reply privately to the author option

IMA SDK

unread,
Feb 20, 2025, 1:51:53 PMFeb 20
to geeth...@gmail.com, ima...@googlegroups.com

Hi Geethu,

I will check with our team regarding your query and one of my team members will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.

Thanks,
 
Google Logo IMA SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-02-20 18:51:43Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)



IMA SDK

unread,
Feb 24, 2025, 9:31:28 AMFeb 24
to ima...@googlegroups.com, geeth...@gmail.com
Hello Geethu,

This is Jackson from the IMA SDK team to help with your issue. I was able to reproduce the issue, where IMA is choosing the lowest bitrate media file, even in cases where a higher bitrate should be feasible. We are looking into a fix for the issue and I will let you know on this thread about any progress with the issue.

Thanks,
 
Google Logo
Jackson Sui
IMA SDK Team


Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-02-24 14:31:16Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)



IMA SDK

unread,
Feb 27, 2025, 2:33:06 PMFeb 27
to ima...@googlegroups.com, geeth...@gmail.com
Hello Geethu,

I wanted to confirm with you, if you were testing with production ad tags. When investigating, we think the issue may be being caused by the VAST not being correctly formatted.

If so, would it be possible to share another VAST url the reproduces the error? The previously shared GAM url is no longer returning ads.

Thanks,
 
Google Logo
Jackson Sui
IMA SDK Team


Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-02-27 19:32:58Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)



Geethu Rajasekharan

unread,
Mar 25, 2025, 1:55:25 AMMar 25
to Interactive Media Ads SDK
Reply all
Reply to author
Forward
0 new messages