Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adding clickTag codes to the Index file within exisiting HTML5 creative

New Here ,
Nov 17, 2016 Nov 17, 2016

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

849
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 17, 2016 Nov 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>


Translate
Community Expert ,
Nov 17, 2016 Nov 17, 2016
LATEST

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>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines