Copy link to clipboard
Copied
Hi all--
I'm trying to add a click tag to an HTML5 creative that is complete (minus the click tag).
I know that the common code to add is as follows:
<meta name=”ad.size” content=”width=300,height=250”>
<script type="text/javascript">
var clickTag = "http://www.google.com";
</script>
HOWEVER, what if the existing HTML5 code includes src="js/main.js" after the <script type="text/javascript">? I'm not sure what the source call actually means nor whether or not it's a necessary part of the function of the HTML5 creative.
I've tried simply updating the index file by adding the click tag after the source call (see below) via notepad, but I'm still getting errors when I try to upload to the creative file into DCM.
<meta name=”ad.size” content=”width=300,height=250”>
<script type="text/javascript" src="js/main.js">
var clickTag = "http://www.google.com";
</script>
What am I missing? Any help would be much appreciated.
Thanks!
Megan
1 Correct answer
use:
<meta name=”ad.size” content=”width=300,height=250”>
<script type="text/javascript" src="js/main.js" />
<script type="text/javascript">
var clickTag = "http://www.google.com";
</script>
Copy link to clipboard
Copied
use:
<meta name=”ad.size” content=”width=300,height=250”>
<script type="text/javascript" src="js/main.js" />
<script type="text/javascript">
var clickTag = "http://www.google.com";
</script>

