With so many conflicting resources around I thought we’d post the simplest way we’ve found to ad a Google / DFP clickTag to any HTML5 banner.

Basically this is all done by adding a couple of code snippets to the associated HTML file. I’ve based the following example on a 300×250 MRec banner.

  1. Google clickTag script
  2. div area to nominate click area

Simply add the following code in the area

<br /> <meta name="ad.size" content="width=300,height=250"><br /> <script type="text/javascript"> var clickTag = "http://www.google.com"; </script>
Then add the following code within the area.

You will also need to host the ‘createjs-2015.11.26.min.js’ file locally. So download it and host it with your assets.

Finally bookmark this HTML5 banner testing area which will test your advert prior to providing to publication or loading to Adwords.