Skip to main content
Participant
November 17, 2016
Answered

Adding clickTag codes to the Index file within exisiting HTML5 creative

  • November 17, 2016
  • 1 reply
  • 936 views

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

This topic has been closed for replies.
Correct answer kglad

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>


1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 17, 2016

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>