VAST media file loading reached a timeout of 8 seconds. [React Native]

345 views
Skip to first unread message

rasmus....@asweetstudio.com

unread,
Sep 18, 2017, 9:49:33 AM9/18/17
to Interactive Media Ads SDK
SDK used: Android SDK

I can not reproduce this issue in the sample app or Video Suite Inspector.

My case:

I'm using React Native and trying to build a module which can use Google IMA to show ads. I'm getting a "VAST media file loading reached a timeout of 8 seconds." error some time after calling AdsLoader.requestAds. I'm attaching the React Native source code for my application which produces the error at the following URL: http://www.mediafire.com/file/po4ug3lwv5k9151/ReactIMA.zip

This is the code that does all the work regarding Google IMA https://pastebin.com/nsFWJdqr

Help would be much appreciated.

Setup instructions:

Setup React Native by heading over to https://facebook.github.io/react-native/docs/getting-started.html and go to the tab labeled "Building Projects with Native Code"
Afterwards cd to the project directory and run "npm install" in a terminal
Wire in your android device of choice or open up an emulator and run "react-native run-android" to build and open the app on your device.


The magic happens in RNAdsGoogleIMAModule class under android\app\src\main\java\com\reactima\ads.
My idea is that a React component called GoogleIMAContainer registers itself as a view where ads are then rendered on demand by calling GoogleIMA.requestAd.
This is very much a work in progress, I'm still trying to figure out how everything works between React Native and native modules.

//Rasmus

Chris Feldman (IMA SDK Team)

unread,
Sep 18, 2017, 10:38:15 AM9/18/17
to Interactive Media Ads SDK
Hi Rasmus,

Thank you for reaching out to support. The SDK does not currently support integration with React Native. To use our SDK on the Android platform, I recommend using native Android.

Regards,
Chris Feldman
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages