Attach Click Trackers
This function adds a click event listener to an HTML element that fires click trackers for native ad units.
attachClickTrackers(adObj,'htmlId');
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. |
Example
apntag.onEvent('adLoaded', function(tag) {
apntag.attachClickTrackers(tag, 'nativeDivId');
});