Getting VAST media file loading reached a timeout of 15 seconds

2,412 views
Skip to first unread message

Mayur Yambal

unread,
Feb 12, 2016, 9:30:08 AM2/12/16
to Interactive Media Ads SDK
Hello,

I am getting "VAST media file loading reached a timeout of 15 seconds" this error while loading ads. Sometimes ad loads, plays for some seconds and get this error in middle.

Please let me know if anyone has faced similar issues and could resolve it.

Thanks
Mayur

Tyler Sidell (IMA SDK Team)

unread,
Feb 12, 2016, 4:52:06 PM2/12/16
to Interactive Media Ads SDK
Hi Mayur,

Just a few items we would need on our end to troubleshoot:
  • Would you be able to provide us with your ad tag?  
  • Also, which SDK version are you using (HTML5, Flash, Android, iOS)? 
  • Can you send us a live page as well?
Thanks,
Tyler Sidell
IMA SDK Team

Mayur Yambal

unread,
Feb 15, 2016, 1:22:00 AM2/15/16
to ima...@googlegroups.com

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/piOy0GhNZkc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@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.

Tyler Sidell (IMA SDK Team)

unread,
Feb 16, 2016, 9:47:50 AM2/16/16
to Interactive Media Ads SDK
Hi Mayur,

Is that your full VAST XML? I think there may be an issue with the XML itself as when I create a tag based on the code provided, I get the following error 
error on line 1 at column 36: Namespace prefix vmap on AdTagURI is not defined

The issue you are facing might be due to the wrapping of your tag. When I place the wrapped tag into our VSI, I get another error:
AdError 1012: Unable to request ads from server due to network error.

This looks like a serving issue and I would recommend that you speak to your TAM.


Thanks,
Tyler Sidell
IMA SDK Team

Mayur Yambal

unread,
Feb 16, 2016, 10:07:19 AM2/16/16
to ima...@googlegroups.com
Hi Tyler,

This is the full vast tag xml

<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll-1">
<vmap:AdSource id="preroll-1-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll-1">
<vmap:AdSource id="preroll-1-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:14:51.000" breakType="linear" breakId="midroll-1">
<vmap:AdSource id="midroll-1-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:14:51.000" breakType="linear" breakId="midroll-1">
<vmap:AdSource id="midroll-1-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:24:10.000" breakType="linear" breakId="midroll-2">
<vmap:AdSource id="midroll-2-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:24:10.000" breakType="linear" breakId="midroll-2">
<vmap:AdSource id="midroll-2-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:35:05.000" breakType="linear" breakId="midroll-3">
<vmap:AdSource id="midroll-3-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:35:05.000" breakType="linear" breakId="midroll-3">
<vmap:AdSource id="midroll-3-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:45:50.000" breakType="linear" breakId="midroll-4">
<vmap:AdSource id="midroll-4-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:45:50.000" breakType="linear" breakId="midroll-4">
<vmap:AdSource id="midroll-4-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:54:29.000" breakType="linear" breakId="midroll-5">
<vmap:AdSource id="midroll-5-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="00:54:29.000" breakType="linear" breakId="midroll-5">
<vmap:AdSource id="midroll-5-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="01:04:40.000" breakType="linear" breakId="midroll-6">
<vmap:AdSource id="midroll-6-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="01:04:40.000" breakType="linear" breakId="midroll-6">
<vmap:AdSource id="midroll-6-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="01:16:22.000" breakType="linear" breakId="midroll-7">
<vmap:AdSource id="midroll-7-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="01:16:22.000" breakType="linear" breakId="midroll-7">
<vmap:AdSource id="midroll-7-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="01:31:26.000" breakType="linear" breakId="midroll-8">
<vmap:AdSource id="midroll-8-ad-1" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<vmap:AdBreak timeOffset="01:31:26.000" breakType="linear" breakId="midroll-8">
<vmap:AdSource id="midroll-8-ad-2" followRedirects="true">
<vmap:AdTagURI templateType="vast3">
</vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
</vmap:VMAP>

Thanks
Mayur



Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

Tyler Sidell (IMA SDK Team)

unread,
Feb 16, 2016, 11:24:12 AM2/16/16
to Interactive Media Ads SDK
Hi Mayur,

Thanks for providing the full VAST XML.  When testing, I get the following error:
02-16 11:13:52.831 5674-5674/com.google.ads.interactivemedia.v3.samples.videoplayerapp I/chromium: [INFO:CONSOLE(0)] "XMLHttpRequest cannot load https://pubads.g.doubleclick.net/gampad/ads?sz=1921x1081&amp%3Biu=%2F27194193%2FFireTV_Popcornflix&amp%3Bimpl=s&amp%3Bgdfp_req=1&amp%3Benv=vp&amp%3Boutput=xml_vast3&amp%3Bunviewed_position_start=1&amp%3Burl=http%3A%2F%2Fwww.ovguide.com&amp%3Bdescription_url=http%3A%2F%2Fwww.ovguide.com&amp%3Bcorrelator=1454990361&sdkv=h.3.7.1%2Fn.android.3.1.3%2Fcom.google.ads.interactivemedia.v3.samples.videoplayerapp&sdki=5&correlator=1984881468899328&scor=3009909286240256&js=ima-android.3.1.3&msid=com.google.ads.interactivemedia.v3.samples.videoplayerapp&osd=2&frm=0&sdr=1&url=com.google.ads.interactivemedia.v3.samples.videoplayerappNo 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://imasdk.googleapis.com' is therefore not allowed access. The response had HTTP status code 400.", source: http://imasdk.googleapis.com/native/sdkloader/native_sdk_v3.html?sdk_version=a.3.1.3&hl=en&wvr=2&app=com.google.ads.interactivemedia.v3.samples.videoplayerapp (0)

The response has a status code of 400 which means it is not found.  This would be defined as a serving issue and could be the culprit behind your timeout.  I suggest to look specifically at the tag that is referenced in the error above.

The 'No Access-Control-Allow-Origin' header issue is due to the server setting "*" for the allow origins and setting the credentials flag to true. To fix this issue, you would need to make one of the following changes:
  • Leave the credentials flag set to true, and specify a specific domain in allow-origin
  • Set the credentials flag to false
Regards,
Tyler Sidell
IMA SDK Team

Mayur Yambal

unread,
Feb 25, 2016, 6:57:27 AM2/25/16
to ima...@googlegroups.com
Hi Tyler,

Do I need to make any changes in android code for this or this can be resolved from some server settings? 
Would you please let me know your inputs on this?

Thanks
Mayur



Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

Tyler Sidell (IMA SDK Team)

unread,
Feb 25, 2016, 9:43:14 AM2/25/16
to Interactive Media Ads SDK
Hi Mayur,

This would need to be changed on the server settings.  I would suggest reaching out to your TAM, if you have one and the server side team to get this setup.

Thanks,
Tyler Sidell
IMA SDK Team

...

Mayur Yambal

unread,
Mar 28, 2016, 4:10:26 AM3/28/16
to ima...@googlegroups.com
Hi Tyler,

I could solve the ad timeout issue on server side changes. 

But I am facing another issue now. The content is not resuming if we skip the ad in between. Content_Resume_Requested event is called, but video does not start.

Would you please let me know what would be the issue.

Thanks
Mayur



Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Tyler Sidell (IMA SDK Team)

unread,
Mar 28, 2016, 10:05:39 AM3/28/16
to Interactive Media Ads SDK
Hi Mayur,

If your XML has changed can you please provide me with that as I tried what you supplied and it no longer has valid ads.  It would be best if you could supply the full tag itself (you can reply privately to the author).  

What have you tried to troubleshoot?  Have you used our sample examples?  If so, are you experiencing the same behavior?  If you have code samples from your implementation, can you please supply that as well?

Thanks,
Tyler Sidell
IMA SDK Team

...

Mayur Yambal

unread,
Mar 29, 2016, 4:15:37 AM3/29/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Tyler,

VMAP URL Used 

Link for source code of advanced sample from IMA where one extra metadata named OVGUIDE is added with in the VideoMetaData.java class.

Issue:
Issue is if we skip the ad, it gets stuck and video content do not play. CONTENT_RESUME_REQUESTED callback is called but content do not get played.

Thanks
Mayur 





Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Yury Pavlotsky (IMA SDK Team)

unread,
Mar 29, 2016, 6:20:58 PM3/29/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com
Hi Mayur,

Thanks for providing the VMAP to test this. I was able to reproduce your result with the Advanced Example some of the time, depending on which ads served. This looks to be an issue with the way the example handles the events returned to it by the SDK for ad pods with skippable ads. We'll investigate further.

Thanks,
Yury Pavlotsky
IMA SDK Team
...

Mayur Yambal

unread,
Apr 5, 2016, 1:50:33 AM4/5/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Yury,

Would you please let me know your inputs on this.

Thanks
Mayur



Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Yury Pavlotsky (IMA SDK Team)

unread,
Apr 5, 2016, 9:57:09 AM4/5/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com
Hi Mayur,

We're still investigating the issue, as a workaround in the meanwhile, you can try having your IMA implementation make sure to check if the ad is actually displayed before pausing it. In our AdvanceExample, for instance, you can do this:

@Override
public void pauseAd() {
    if (mIsAdDisplayed) {
        mVideoPlayer.pause();
    }
}

The second ad won't play, but your content will resume (or won't pause).

Thanks,
Yury Pavlotsky
IMA SDK Team
...

Mayur Yambal

unread,
Apr 5, 2016, 10:11:37 AM4/5/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Yury,

Thanks for the inputs. Will do that change. I will wait for the change required for skip able ads.

Thanks
Mayur



Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Mayur Yambal

unread,
Apr 12, 2016, 1:56:52 AM4/12/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Yury,

Would you please let me know if you got any inputs on this.

Thanks
Mayur



Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

Yury Pavlotsky (IMA SDK Team)

unread,
Apr 12, 2016, 10:30:06 AM4/12/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com
Hi Mayur,

I don't have any updates for you at the moment. Did you try the workaround and if so, did that work for you?

Thanks,
Yury Pavlotsky
IMA SDK Team
...

Mayur Yambal

unread,
Apr 15, 2016, 11:47:40 AM4/15/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Tyler/Yury,

I have investigated the issues I am facing and the event callbacks from the IMA SDK. 

ISSUE
When there are two pre-roll/mid-roll ads, one ad is displayed completely but second ad cuts in between and video starts playing. But this looks uncertain as sometimes I got both the ads completely. 

INVESTIGATION 
I have written completely new code for call back handling and video and ad playing. I could see that AdEvent.CONTENT_RESUME_REQUESTED is called when second ad is not yet finished completely. But as we get this event we go to the video playing. If we do not resume the video (by ignoring this unexpected AdEvent.CONTENT_RESUME_REQUESTED event), we do not get another AdEvent.CONTENT_RESUME_REQUESTED event after second ad playing. 

Could you please provide your inputs and resolution for this?

Thanks
Mayur


Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Tyler Sidell (IMA SDK Team)

unread,
Apr 15, 2016, 4:50:07 PM4/15/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com
Hi Mayur,

Can you confirm that this is a separate issue than the one that was originally reported?  If so, if there is a different ad tag can you please supply that as well?  Last but not least, have you experienced this same behavior using our sample examples?

Thanks,
Tyler Sidell
IMA SDK Team

...

Mayur Yambal

unread,
Apr 18, 2016, 3:13:53 AM4/18/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Tyler,

Originally reported issues was of skipable ads. When we tap on skip button then it does not skip to next ad but skips to content. That is not yet completely resolved.

But this issue is different this is when there are two ads second ad gets cut in between and it goes to video content. I debugged this and found that SDK sends AdEvent.CONTENT_RESUME_REQUESTED event when second ad is yet to be finished. 

This happens with Advanced Sample code as well. 

AdTag URL
http://www.ovguide.com/vmap/1/googima/ea2dd72046ad11e19d7f0019b9eddb47/919b1626ab2d11e4b49022000b2c0078?device=firetv&correlator=1460629895919&referrer_url=[referrer_url]&api_user=ovg_firetv_v2

Thanks
Mayur

Sent with MailTrack
--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Tyler Sidell (IMA SDK Team)

unread,
Apr 18, 2016, 6:02:06 PM4/18/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com
Hi Mayur,

I'm experiencing a different issue with the tag that you provided.  Once I request the ads, the first ad in the pod plays.  However, when it requests the 2nd ad, I get the following error message.  The error is being treated as non-fatal and will log the error. I am not able to open that file and the 2nd ad does not play.
com.google.ads.interactivemedia.v3.samples.videoplayerapp D/MediaPlayer: Couldn't open file on client side, trying server side

Sometimes the VMAP requests a second ad and can play but we do not see the issue that you are experiencing.  The second ad completes the full ad and resumes content thereafter.  This seems to be a sporadic issue.  Do you have a consistent way to test and reproduce the issue that you are experiencing?

Thanks,
Tyler Sidell
IMA SDK Team

...

Mayur Yambal

unread,
Apr 19, 2016, 4:14:36 AM4/19/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi
Hi Tyler,

I could reproduce the issue 4 times out of 6. I could see second ad playing properly 2 times. 

Attached the video, screenshot and the scource code I used for your reference.

Video

Source Code

Thanks
Mayur


Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--
Screenshot from 2016-04-19 12:20:18.png

Tyler Sidell (IMA SDK Team)

unread,
Apr 19, 2016, 3:14:38 PM4/19/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com
Hi Mayur,

We cannot reproduce the issue which would not make it feasible for us to effectively troubleshoot.  This may be a particular edge case based on a certain race condition.  We'll continue to investigate on our end.  

Thanks,
Tyler Sidell
IMA SDK Team

...

Mayur Yambal

unread,
May 17, 2016, 2:43:34 AM5/17/16
to ima...@googlegroups.com, Thomas Dodson, Nilesh Ratnaparkhi, Adam Kwon
Hi Tyler,

Is there any progress on your end to resolve the ad cut short issue.

We could resolve it for phone by some changes in VMAP. Copied the VMAP url for your reference. 
But we are not able to run the same on Amazon FireTV.






Sent with MailTrack

--
Mayur Yambal
Team Lead, iauro Systems Pvt. Ltd.
020-64008585 | mayur....@iauro.com | www.iauro.com
   

--

Tyler Sidell (IMA SDK Team)

unread,
May 17, 2016, 4:31:31 PM5/17/16
to Interactive Media Ads SDK, to...@ovguideinc.com, nilesh.ra...@iauro.com, ad...@ovguideinc.com
Hi Mayur,

Glad to hear that you resolved the issue with the VMAP.  Feel free to share what was modified on your end.

Currently, there is no progress on this issue from our end.  As stated in our previous response, without a way to reproduce the issue on our end it would not be feasible to troubleshoot correctly.

Also, we do not support Amazon FireTV at this time.  Please follow our blog as we would announce it there if we support this platform.

Thanks,
Tyler Sidell
IMA SDK Team

Enis Eftekin

unread,
Jun 1, 2017, 10:39:52 AM6/1/17
to Interactive Media Ads SDK
in where must i host vmap file? i can get error : No 'Access-Control-Allow-Origin' header is present on the requested resource?

16 Şubat 2016 Salı 17:07:19 UTC+2 tarihinde Mayur Yambal yazdı:

Chris Feldman (IMA SDK Team)

unread,
Jun 1, 2017, 12:30:37 PM6/1/17
to Interactive Media Ads SDK
Reply all
Reply to author
Forward
0 new messages