AdError 402

1,054 views
Skip to first unread message

Lin

unread,
May 21, 2014, 4:27:02 AM5/21/14
to ima...@googlegroups.com
Hi, I have a url that DFP gave me, and I download the IMA HTML5 demo_player and I only changed the adTagUrl, on website I create, it works, but the problem is when I use the IOS and android mobile system, Its response like this:

Welcome to IMA HTML5 SDK DEMO!
Ads loaded.
Ad event:  loaded
Ad error: AdError 402: VAST media file loading reached a timeout if 15000 seconds.

In ads_controller.js:

// On iOS and Android devices, video playback must begin in a user action.
// AdDisplayContainer provides a initialize() API to be called at appropriate
// time.
// This should be called when the user clicks or taps.
AdsController.prototype.initialUserAction = function() {
  this.adDisplayContainer.initialize();
};

I only changed the adTagUrl, so is that a bug or something i made a mistake?

Shawn Busolits (IMA SDK Team)

unread,
May 21, 2014, 9:52:48 AM5/21/14
to ima...@googlegroups.com
Hi Lin,

Could you send me the ad tag with which you're testing?

Thanks,
Shawn Busolits
IMA SDK Team

Lin

unread,
May 21, 2014, 9:26:05 PM5/21/14
to ima...@googlegroups.com

Shawn Busolits (IMA SDK Team)

unread,
May 21, 2014, 10:27:05 PM5/21/14
to ima...@googlegroups.com
Hey Lin,

Which sample are you working with? The simple sample is set up in such a way that it doesn't work in all mobile environments (we're working on fixing this). The advanced and playlist samples should work though. If you still have the issue after trying one of those samples let me know.

Thanks,
Shawn Busolits
IMA SDK Team

Lin

unread,
May 21, 2014, 10:55:39 PM5/21/14
to ima...@googlegroups.com
Hi Shawn:

sample : http://dl.google.com/in-stream/google_sdk/html5/v3/demo_player.zip

I only chaged the adTagUrl and fix some js link (add http:)

if all of the mobile environments can work in the future, please let me know, thanks for your response and help.

Lin

Lin於 2014年5月21日星期三UTC+8下午4時27分02秒寫道:

Shawn Busolits (IMA SDK Team)

unread,
May 22, 2014, 10:21:11 AM5/22/14
to ima...@googlegroups.com
Hey Lin,

Which devices and OS versions are you using to test? I tried this out on an iPad retina running 7.1.1 and a Nexus 5 running 4.4.2 and both are working for me. Perhaps it's an issue that's only affecting certain devices?

Thanks,
Shawn Busolits
IMA SDK Team

Lin

unread,
May 22, 2014, 9:54:09 PM5/22/14
to ima...@googlegroups.com
Hi, Shawn:

1. iPad running 7.1
2. Nexus7 running 4.4.2

the test website: http://168.63.148.182/ima/
 


Lin於 2014年5月21日星期三UTC+8下午4時27分02秒寫道:

Shawn Busolits (IMA SDK Team)

unread,
May 23, 2014, 2:45:23 PM5/23/14
to ima...@googlegroups.com
Hey Lin,

I'm now seeing the error on an Android tablet, I think I see the issue. It looks like the length of your ad differs from what's specified in the VAST by more than 2 seconds, which is causing the SDK to throw an error. The fact that it takes 15 seconds for the error to dispatch looks like a bug to me, so I'll make sure we look into that further, but in the mean time you should be able to fix the issue by changing the length of your ad specified in the VAST. It looks like the SDK is loading a different file format on mobile than it is on desktop, which is why you're only seeing this problem on mobile.

Thanks,
Shawn Busolits
IMA SDK Team

Lin

unread,
May 25, 2014, 10:12:14 AM5/25/14
to ima...@googlegroups.com
Hi Shawn:

Ok I will try your suggestion, thanks for your help

Lin

Lin於 2014年5月21日星期三UTC+8下午4時27分02秒寫道:
Hi, I have a url that DFP gave me, and I download the IMA HTML5 demo_player and I only changed the adTagUrl, on website I create, it works, but the problem is when I use the IOS and android mobile system, Its response like this:
Reply all
Reply to author
Forward
0 new messages