1

I am struggling implementing and generating my adTagUrl into my demo example.

var options = {
  id: 'content_video',
  //adTagUrl: 'http://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=xml_vmap1&unviewed_position_start=1&' +
     // 'cust_params=sample_ar%3Dpremidpostpod%26deployment%3Dgmf-js&cmsid=496&' +
     // 'vid=short_onecue&correlator='
   adTagUrl: 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/265894175/Video&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]'      
};

As you can see the adTagUrls are somewhat different and the one I use does not show any ads while the example adTagUrl works flawlessly.

The error message I receive is:

AdsLoader error: AdError 1009: The VAST response document is empty. 

How do I generate one out of my Doubleclick dashboard or how do I configure it to work with videojs?

Thanks so much in advance!

4

1 回答 1

1

IMA 团队在 GitHub 上托管了一个 VideoJS 实现,您可以对其进行修改和使用。

至于错误 1009(empty VAST),可能有很多原因。如果您在浏览器中打开广告代码,请确保它确实返回了有意义的 VAST 响应。如果它不仅在您的实现中起作用,您可能需要按照此说明重置 IMA,也可能需要这样做

于 2017-04-03T17:24:34.500 回答