Hi Vu,
Would you consider adding the missing constant? If you punch the following into the JS Console:
> google.ima.AdError.ErrorCode.VAST_LOAD_TIMEOUT
301
> google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE
undefined
I think most devs would expect to see 1009 returned instead of undefined. The lack of this constant means you can’t check for equality as the docs would imply.
google.ima.AdError.getErrorCode() === google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE; // This won’t return true when empty vast is encountered
Thanks,
Philip