Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash VPAID AdParameters error: “Error parsing the creative data JSON -> [object Object]”

Explorer ,
Sep 30, 2015 Sep 30, 2015

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.

TOPICS
ActionScript
722
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 02, 2015 Oct 02, 2015
LATEST

well then....

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines