VAST_EMPTY_RESPONSE not defined on HTML5 IMA SDK

380 views
Skip to first unread message

Philip Bulley

unread,
Oct 27, 2015, 1:34:51 PM10/27/15
to Interactive Media Ads SDK
Hi,

The following property doesn't appear to be present on the HTML5 IMA SDK at http://imasdk.googleapis.com/js/sdkloader/ima3.js:

google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE

The SDK will correctly provide an error code value of 1009 when it finds an empty vast response, it just seems that the constant hasn't been defined.

I only have the following:
  1. ADSLOT_NOT_VISIBLE-1
  2. COMPANION_AD_LOADING_FAILED-1
  3. FAILED_TO_REQUEST_ADS1005
  4. INVALID_ARGUMENTS1101
  5. OVERLAY_AD_LOADING_FAILED-1
  6. OVERLAY_AD_PLAYING_FAILED500
  7. REQUIRED_LISTENERS_NOT_ADDED900
  8. UNKNOWN_AD_RESPONSE1010
  9. UNKNOWN_ERROR900
  10. VAST_ASSET_MISMATCH403
  11. VAST_ASSET_NOT_FOUND1007
  12. VAST_LINEAR_ASSET_MISMATCH403
  13. VAST_LOAD_TIMEOUT301
  14. VAST_MALFORMED_RESPONSE-1
  15. VAST_MEDIA_ERROR-1
  16. VAST_MEDIA_LOAD_TIMEOUT402
  17. VAST_NONLINEAR_ASSET_MISMATCH503
  18. VAST_NO_ADS_AFTER_WRAPPER303
  19. VAST_SCHEMA_VALIDATION_ERROR101
  20. VAST_TOO_MANY_REDIRECTS302
  21. VAST_TRAFFICKING_ERROR200
  22. VAST_UNEXPECTED_LINEARITY201
  23. VAST_UNSUPPORTED_VERSION102
  24. VIDEO_ELEMENT_REQUIRED-1
  25. VIDEO_ELEMENT_USED-1
  26. VIDEO_PLAY_ERROR400

Thanks,

Philip

Vu Chau (IMA SDK Team)

unread,
Oct 27, 2015, 4:31:46 PM10/27/15
to Interactive Media Ads SDK
Hi Philip,

To clarify, the ima3.js isn't the entire SDK.  The SDK also loads https://imasdk.googleapis.com/js/core/bridge3.110.0_en.html.  You can find the error code 1009 in there.

Let us know if you have additional questions,

Vu Chau
IMA SDK Team

Philip Bulley

unread,
Oct 28, 2015, 6:40:20 AM10/28/15
to Interactive Media Ads SDK

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

Vu Chau (IMA SDK Team)

unread,
Oct 28, 2015, 11:36:56 AM10/28/15
to Interactive Media Ads SDK
Hi Philip,

We're working on a fix right now.  I'll let you know once we have an update.

Thanks!

Vu Chau
IMA SDK Team

Reply all
Reply to author
Forward
0 new messages