Dynamic Profiles breaking when toggling between Design and Code view

103 views
Skip to first unread message

ki...@plusk.com

unread,
Dec 8, 2016, 1:55:47 PM12/8/16
to Google Web Designer beta
Is anyone else running into a problem with Dynamic Profiles randomly breaking when toggling between Design and Code view?

It seems like GWD is trying to reformat the Dynamic Profile JS and will add in line breaks in odd places (ie. in the middle of a string variable).

Can't find a consistent cause for this, nor a solution, as fixing the code in Code view will only work until Design view tries to reformat the code again.

San Khong

unread,
Dec 8, 2016, 3:19:46 PM12/8/16
to Google Web Designer beta
Please send us your unpublished files so we can try to reproduce this.  If you cannot attach the zip file to this forum, please send it to gwd-s...@google.com.  We have heard this issue from a few people but have not been able to reproduce so far so your help would be greatly appreciated.

Thanks,
San
Google Web Designer Team

fento...@gmail.com

unread,
Dec 12, 2016, 11:54:46 PM12/12/16
to Google Web Designer beta
I'm having this same issue, every time I go to design view, the code in the devDynamicContent gets broken up so that there are line breaks in the middle strings which throws an

Uncaught SyntaxError: Invalid or unexpected token because of the unterminated string literal

As a result devDynamicContent never gets populated and then you'll get an

Uncaught ReferenceError: dynamicContent is not defined

I've gone ahead and emailed some screenshots of the before / after as well as a zip of the project folder so you can try to recreate.

ki...@plusk.com

unread,
Aug 28, 2017, 10:55:48 AM8/28/17
to Google Web Designer beta
Has there been any update on this? I'm still having this occur very frequently.

Kent Myers

unread,
Aug 28, 2017, 11:17:33 AM8/28/17
to Google Web Designer beta
I have not seen this issue in Dynamic remarketing ads, what type of ad is this happening in?  Can you post a copy of the problematic layout?

Kent
Google Web Designer team

Dale Fenton

unread,
Aug 28, 2017, 11:21:14 AM8/28/17
to Google Web Designer beta
This was happening to me with Doubleclick Studio dynamic ads. I haven't experienced this issue in a while personally though.

I do still have an issue where every time I go from code view to design view any changes I've made to the feed for preview purposes will be overwritten. I would be great if we could include a feed file or set a row from the dynamic feed to preview within GWD instead of having to upload to DCS and then doing previews there or by going back and forth and changing things in the code view.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages