HTML5 IMA SDK - If AdsRenderingSettings.bitrate is not set, which bitrate is selected?

25 views
Skip to first unread message

pineapplevine1

unread,
May 9, 2023, 3:56:00 AM5/9/23
to Interactive Media Ads SDK
Hello.
According to the reference, if AdsRenderingSettings.bitrate is not set, it is assumed that the maximum bitrate is selected.
However, the actual bitrate selected is not the maximum bitrate.
As far as we have been able to verify, we suspect that AdsRenderingSettings.bitrate is set to 1000 by default. Is this correct?
Also, the IMA SDK does not have the ability to select bitrate based on network conditions, does it?

Detail Info:
Our validation resulted in the following bitrate selections.

- case 1
If an AdTag containing the following MediaFiles is used, a MediaFile with a bitrate of 581 will be selected.
```
<MediaFiles>
<MediaFile id="GDFP" delivery="progressive" width="1920" height="1080" type="video/mp4" bitrate="1001" scalable="true" maintainAspectRatio="true">
<![CDATA[ https://.../ad1920x1080.mp4 ]]>
</MediaFile>
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="581" scalable="true" maintainAspectRatio="true">
<![CDATA[ https://.../ad640x360.mp4 ]]>
</MediaFile>
</MediaFiles>
```

- case 2
If an AdTag containing the following MediaFiles is used, a MediaFile with a bitrate of 1000 will be selected.
```
<MediaFiles>
<MediaFile id="GDFP" delivery="progressive" width="1920" height="1080" type="video/mp4" bitrate="1000" scalable="true" maintainAspectRatio="true">
<![CDATA[ https://.../ad1920x1080.mp4 ]]>
</MediaFile>
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="581" scalable="true" maintainAspectRatio="true">
<![CDATA[ https://.../ad640x360.mp4 ]]>
</MediaFile>
</MediaFiles>
```

- case 3
If an AdTag containing the following MediaFiles is used with limited network speed, a MediaFile with a bitrate of 1000 will be selected.
```
<MediaFiles>
<MediaFile id="GDFP" delivery="progressive" width="1920" height="1080" type="video/mp4" bitrate="1000" scalable="true" maintainAspectRatio="true">
<![CDATA[ https://.../ad1920x1080.mp4 ]]>
</MediaFile>
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="581" scalable="true" maintainAspectRatio="true">
<![CDATA[ https://.../ad640x360.mp4 ]]>
</MediaFile>
</MediaFiles>
```

Regards,

IMA SDK

unread,
May 9, 2023, 8:09:45 AM5/9/23
to pineapp...@gmail.com, ima...@googlegroups.com

Hi,

Thank you for raising your concern to the IMA SDK forum.

According to our documentation: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRenderingSettings#bitrate , the SDK will pick media with bitrate below the specified maxor the closest bitrate if there is no media with lower bitrate found.

In addition, as mentioned here: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/bitrates-formats, the SDK chooses the appropriate bitrate based on the current network conditions:

  • max 500 kbit/s for cellular connection
  • unlimited for WiFi

If you want to specify preferred video formats and bitrate, use an AdsRenderingSettings instance to pass this information at the time of Ads Manager initialization, example here: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/bitrates-formats.

Let me know if you have any questions.

Regards,

Google Logo IMA SDK Team


ref:_00D1U1174p._5004Q2lBp9h:ref
Reply all
Reply to author
Forward
0 new messages