If creating for DoubleClick, Metrics ID for a Tap Area is available as described here:
https://support.google.com/webdesigner/answer/3263494?hl=en
However, there doesn't seem to be a simple way to do this with Generic Banners without editing the code.
Any suggestions?
If not, what is the best way to manipulate the code to make this work?
For anyone else that is running into the same issues, here is my step-by-step process in solving the problem below.
Setup: I'm developing HTML5 DoubleClick ads in Google Web Designer. The ads need an exit to a URL address when clicking/tapping my call-to-action button. The media tracking company my client hired is using DoubleClick Campaign Manager to track the ads and switch call-to-action URLs based on their marketing data. I do not have a DCM account, so I was unable to test or see errors myself, but I do have a Studio account to upload ads.
Problem: The media group requested the touch/tap component, exit event action URL to be removed in the code so they can insert their URLs with tracking codes dynamically. I have the URL hardcoded in the action event currently for testing. GWD will not save the exit action event without a URL specified. The media group was reporting errors with the URL left in.
Solution: Setup a Tap Area Component with a Touch/Click event for an exit out of your ad as outlined in the GWD help pages. Go ahead and add the "clickTag" metrics ID and URL needed to save the event.
Publish the ad locally, or wherever you can edit the index.html file.
Open the index.html in your favorite code editor. You can do this in GWD Code View before you publish. I used an editor after publishing to make sure my edit wasn't overwritten.
Scroll down to the HTML portion of the index file, below the CSS. My component layer was at the bottom.
Find the gwd-exit tag code, and delete the URL in between the quotes. It will look like this when finished:
"<gwd-exit metric="clickTag" url=""></gwd-exit>"
Save the file. When you test in a browser, you may still get an active call-to-action link. I did. Zip the file and assets, and distribute.
All seemed to work on the DCM end.