Ads are skipping in the following scenarios ( Playback error: AdError 400, Error play dispatched: AdError 402)

113 views
Skip to first unread message

Gourav Saxena

unread,
May 16, 2018, 2:59:25 AM5/16/18
to Interactive Media Ads SDK
Hi there,

  1. Which SDK are you using (Android, iOS, HTML5, Flash)  -  Android
  2. What ad tag are you using in your request - https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpostlongpod&cmsid=496&vid=short_tencue&correlator=
  3. Are you able to reproduce this issue using your ad tag in the sample app (AndroidiOS) or the Video Suite Inspector (HTML5Flash)? Yes
    1. If not, please provide an app or website with which we can reproduce this issue.
Steps to reproduce the issue in Advanced Example for IMA

1. Use advanced sample of IMA android sdk and put the sample tag in app.
2. During ad playback like 1st ad's 0:00 means last second, put the app in background.
3. Wait for 2-3 secnds, now app in foreground, you could see that the 2nd ad or together 2/3 ads have been skipped.


In my app Scenario -1 (Frequency 2/5)

1. Use advanced sample of IMA android sdk and put the sample tag in app.
2. During content playback, seek to the end.
3. Observe that the Mid-roll and Post roll fails to play.

In my app Scenario -2 (Frequency 4/5)

1. During ad playback like 1st ad's 0:00 means last second, put the app in background.
2. Wait for 2-3 secnds, now app in foreground, you could see that the 2nd ad or together 2/3 ads have been skipped.

My app Logs:

I/chromium: [INFO:CONSOLE(757)] " [ 26.390s] [ima.vast.VideoAdEventTracker] dispatching event error", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
I/chromium: [INFO:CONSOLE(757)] " [ 26.393s] [ima.managers.VastVideoAdsManager] Ad error: null", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
I/chromium: [INFO:CONSOLE(757)] " [ 26.401s] [ima.managers.VastVideoAdsManager] Playback error: [object Object] AdError 400: There was an error playing the video ad.", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)

 I/SDK_LOG:ima.managers.VastVideoAdsManager: Playback error: [object Object] AdError 400: There was an error playing the video ad.
W/SDK_LOG:ima.common.ErrorUtils: Error play dispatched: AdError 400: There was an error playing the video ad.
I/SDK_LOG:ima.adslist.AdBreak: Ad play error for playTime:100, error: AdError 400: There was an error playing the video ad.

My app logs- 

I/chromium: [INFO:CONSOLE(757)] " [ 21.839s] [ima.vast.VideoAdEventTracker] dispatching event mediaLoadTimeout", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)

I/chromium: [INFO:CONSOLE(757)] " [ 21.843s] [ima.managers.VastVideoAdsManager] Playback error: [object Object] AdError 402: VAST media file loading reached a timeout of 8 seconds.", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
 I/chromium: [INFO:CONSOLE(757)] " [ 21.847s] [ima.common.ErrorUtils] Error play dispatched: AdError 402: VAST media file loading reached a timeout of 8 seconds.", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
 I/chromium: [INFO:CONSOLE(757)] " [ 21.848s] [ima.adslist.AdBreak] Ad play error for playTime:15, error: AdError 402: VAST media file loading reached a timeout of 8 seconds.", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
 I/chromium: [INFO:CONSOLE(757)] " [ 21.849s] [ima.adslist.AdBreak] Playing next item and waiting for time:15.", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
 I/chromium: [INFO:CONSOLE(757)] " [ 21.849s] [ima.adslist.AdBreak] Done playing all ads for time: 15", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
 I/chromium: [INFO:CONSOLE(757)] " [ 21.851s] [ima.adslist.AdBreak] Destroying the ad break, 15", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
 I/chromium: [INFO:CONSOLE(757)] " [ 21.855s] [ima.managers.AdsListAdsManager] No next event in the event queue.", source: https://imasdk.googleapis.com/native/core/3.54.1/native_bridge_debug__en.js (757)
I/SDK_LOG:ima.vast.VideoAdEventTracker: dispatching event mediaLoadTimeout
 I/SDK_LOG:ima.managers.VastVideoAdsManager: Playback error: [object Object] AdError 402: VAST media file loading reached a timeout of 8 seconds.
W/SDK_LOG:ima.common.ErrorUtils: Error play dispatched: AdError 402: VAST media file loading reached a timeout of 8 seconds.
 I/SDK_LOG:ima.adslist.AdBreak: Ad play error for playTime:15, error: AdError 402: VAST media file loading reached a timeout of 8 seconds.
 I/SDK_LOG:ima.adslist.AdBreak: Playing next item and waiting for time:15.
 I/SDK_LOG:ima.adslist.AdBreak: Done playing all ads for time: 15




ima-sdk-adv...@google.com

unread,
May 16, 2018, 3:02:49 PM5/16/18
to ima...@googlegroups.com
Hi,

Thank you for reaching out to support. I was not able to reproduce your first scenario where fast forwarding past the pre-rolls does not trigger them. Can you please make sure you're testing on the latest version of the SDK. If you already are, and you continue to have issues, please let me know what kind of device you're testing with.

With regard to the second issue, this has been previously reported and it is something that our team is already working on.  I will follow-up on this thread as soon as I have more information to share.

Regards,
Chris Feldman
IMA SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

ima-sdk-adv...@google.com

unread,
May 17, 2018, 3:09:46 PM5/17/18
to ima...@googlegroups.com
Hi Gourav,

Thank you for privately sending me the new tag and logs messages. The logs contain CORS and mixed-content error messages, which suggests to me that the problems are being caused by how your tag is serving it's links. You need to ensure that your serving provider has properly setup the CORS header on their ad server:

"Failed to load ~~YOUR LINK~~: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'https://imasdk.googleapis.com' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute."

I would also suggest modifying your tags to use HTTPS as HTTP can also sometimes cause issues.

Regards,
Chris Feldman
IMA SDK Team 

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Reply all
Reply to author
Forward
0 new messages