Highlighted

Help with JavaScript button / ADTECH

Explorer ,
Apr 04, 2019

Copy link to clipboard

Copied

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

Views

50

Likes

Translate

Translate

Report

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

Help with JavaScript button / ADTECH

Explorer ,
Apr 04, 2019

Copy link to clipboard

Copied

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

Views

51

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 04, 2019 0

Have something to add?

Join the conversation