NonceManager
The NonceManager manages the nonce for a single nonce request. This allows publishers to update PAL when an impression or click event occurs.
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.