Skip to main content
Known Participant
April 4, 2019
Question

Help with JavaScript button / ADTECH

  • April 4, 2019
  • 0 replies
  • 162 views

Hi

I made an HTML5 banner ad in Animate which has a simple button with similar code to the following:

this.btn.addEventListener("click", fl_ClickToGoToWebPage);  function fl_ClickToGoToWebPage() {     window.open("http://www.adobe.com", "_blank"); }

This functions correctly but now the ad needs to be prepared for an Ad Server (ADTECH) and I have been sent the following example which demonstrates how the adserver tracks clicks:

var twitterButton = document.getElementById('twitter-button');

twitterButton.onclick = function() {

  ADTECH.click('Twitter', 'http://twitter.com/twittername');

}

Does anyone know how I can incorporate this into my current button, can I simply modify my existing code or will it need to be written differently?

Thanks for your help

    This topic has been closed for replies.