I’ve been developing up a custom HTML5 video player that incorporates a pre-roll video. I’m now in the process of implementing the Google IMA SDK and running into a few issues.
The integration docs are here:
https://developers.google.com/interactive-media-ads/docs/sdks/googlehtml5_ads
What I don’t understand is what is actually invoking the requestAds & onAdsLoaded functions. It seems like it should be straight forward but I must be missing something.
You can see the source here: http://jsfiddle.net/cncpts/SZ895/1/
I was able to figure it out, pretty simple in fact. I just removed the event listeners and adrequest out of the requestAd function. Here is the final script.