AdManager - Couldn't placed a normal clicktag var into GWD HTML

0 votes
951 views
added Oct 10, 2019 in Google tools by LC Marshal Captain (25,770 points)

The issue shown as below:

GWD-published bundle should use exit events instead of defining var clickTag(s): clickTag="URL_GOES_HERE"

The issue need to be fixed by adding the clicktag from GWD, and recompile. Issue can be found here:

https://webprogramo.com/clicktag-in-banners-in-html5-format/1114/

 

--THE FIX --

The recompilation will produce the following codes in the HTML file. In can be found in 4 different areas.

<!--right before </head>-->
<script type="text/javascript" gwd-events="handlers">gwd.auto_Gwd_taparea_1Action=function(event){gwd.actions.timeline.gotoAndPlay("page1","label-1")};gwd.auto_Gwd_taparea_2Action=function(event){gwd.actions.gwdGoogleAd.exit("gwd-ad","clickTag","URL_GOES_HERE",true,true,"page1")}</script>

<!--right before </gwd-google-ad>-->
  <gwd-exit metric="clickTag" url="URL_GOES_HERE"></gwd-exit>
</gwd-google-ad>

<!--2 areas at right before </body>-->
<script data-exports-type="gwd-studio-registration">function StudioExports() {
Enabler.exit("clickTag", "URL_GOES_HERE");
}</script><script type="text/gwd-admetadata">{"version":1,"type":"GoogleAd","format":"","template":"Banner 3.0.0","politeload":true,"fullscreen":false,"counters":[],"timers":[],"exits":[{"exitId":"clickTag","url":"URL_GOES_HERE"}],"creativeProperties":{"minWidth":0,"minHeight":0,"maxWidth":0,"maxHeight":0},"components":["gwd-google-ad","gwd-image","gwd-page","gwd-pagedeck","gwd-taparea"],"responsive":true}</script>
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...