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 adTagUrl
s 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!
The IMA team hosts a VideoJS implementation on GitHub that you can modify and use.
As for the error 1009 (empty VAST), there can be many reasons. Make sure your ad tag actually returns a meaningful VAST response if you open it in a browser. If it doesn't serve only in your implementation, you might need to reset IMA by following this instruction and possibly this as well.