In July 2020, Google Play announced the new safety section, a developer-provided disclosure of apps' data collection, sharing, and security practices. We are preparing documentation about our product behavior for publication and will update this site with more information in the coming weeks.

Specifying bitrate and video format

VAST responses can contain multiple media files with different bitrates and in different 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.

@Override
    public void onAdsManagerLoaded(AdsManagerLoadedEvent adsManagerLoadedEvent) {
      ...
      AdsRenderingSettings adsRenderingSettings =
          ImaSdkFactory.getInstance().createAdsRenderingSettings();
      List mimeTypes = new ArrayList();
      mimeTypes.add("video/mp4");
      mimeTypes.add("video/webm");
      adsRenderingSettings.setBitrateKbps(1024);
      adsRenderingSettings.setMimeTypes(mimeTypes);
      mAdsManager.init(adsRenderingSettings);
    }