Commit ac68f904 by andrewlewis Committed by Andrew Lewis

Skip ad group on unknown load error

PiperOrigin-RevId: 233576600
parent dbfaf17b
...@@ -1372,7 +1372,8 @@ public final class ImaAdsLoader ...@@ -1372,7 +1372,8 @@ public final class ImaAdsLoader
private static boolean isAdGroupLoadError(AdError adError) { private static boolean isAdGroupLoadError(AdError adError) {
// TODO: Find out what other errors need to be handled (if any), and whether each one relates to // TODO: Find out what other errors need to be handled (if any), and whether each one relates to
// a single ad, ad group or the whole timeline. // a single ad, ad group or the whole timeline.
return adError.getErrorCode() == AdErrorCode.VAST_LINEAR_ASSET_MISMATCH; return adError.getErrorCode() == AdErrorCode.VAST_LINEAR_ASSET_MISMATCH
|| adError.getErrorCode() == AdErrorCode.UNKNOWN_ERROR;
} }
private static boolean hasMidrollAdGroups(long[] adGroupTimesUs) { private static boolean hasMidrollAdGroups(long[] adGroupTimesUs) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment