Class: NonceManager

Constructor

NonceManager

new NonceManager(nonce, sodarCorrelator)

Parameter

nonce

The nonce for this NonceManager.

sodarCorrelator

The correlator to use for the asynchronous spam pings.

Methods

getNonce

getNonce() returns string

Returns

string The nonce that the publisher should add to their ad requests as the value for the &paln URL parameter.

sendAdClick

sendAdClick()

Should be called when the user clicks on the ad that was requested with the nonce generated by this manager.

sendAdImpression

sendAdImpression()

Should be called when the first frame of the ad that was requested with the nonce generated by this manager is displayed.