Copy link to clipboard
Copied
I am using this tag to a VAST xml for a test video advertisement:https://search.spotxchange.com/vast/2.00/79391?VPAID=1&content_page_url=TEST
When I put this in a VAST validator (for example this one: https://developers.google.com/interactive-media-ads/docs/sdks/flash/vastinspector) it works fine.
But now I am using actionscript 3 to load the swf and start it playing according to the VPAID api.
I am parsing out the AdParameters value and saving it:
var paramsXml:XML = childXml.valueOf() var creativeData:Object = { 'AdParameters': paramsXml }; _main.creativeData = String(creativeData);
I've also tried making paramsXml a String and other types but nothing works for me. I then go to put this in the initAd() function of the VPAID ad.
_vpaidWrapper.initAd(_main.adWidth, _main.adHeight, _main._viewMode, _main._desiredBitrate, _main._creativeData, _main._environmentVars);
But every time I get this error: "Error parsing the creative data JSON -> [object Object]"
Can anyone see what I'm doing wrong and how I can correctly pass the AdParameters to the VPAID ad?
Thanks.
Copy link to clipboard
Copied
well then....
Find more inspiration, events, and resources on the new Adobe Community
Explore Now