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?
![]() |
IMA SDK Team |
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.
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
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.
![]() |
IMA SDK Team |
[2025-02-20 18:51:43Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)
![]() |
|
[2025-02-24 14:31:16Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)
![]() |
|
[2025-02-27 19:32:58Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH05o:ref" (ADR-00287032)