Attach Click Trackers

This function adds a click event listener to an HTML element that fires click trackers for native ad units.


The parameters listed below can be sent as arguments in the function.

Parameter Type Description
adObj object The native ad object. (See Ad Object API.)
adObj number The HTML element to which the click event listener will be attached.


apntag.onEvent('adLoaded', function(tag) {
    apntag.attachClickTrackers(tag, 'nativeDivId');