AI-generated Key Takeaways
- 
          NonceLoader is a programmatic access library for publishers to collect signals to unlock AdX demand. 
- 
          Create a NonceLoader on page load to reduce latency. 
- 
          Use the relevant setters and call loadNonceManager for each stream or ad request. 
- 
          Call NonceManager.getNonce() to get the string for the "&paln" URL parameter in ad requests. 
- 
          Call NonceManager.sendAdClick() and NonceManager.sendAdImpression() as appropriate. 
NonceLoader
The programmatic access library allows publishers to collect signals that can be used to unlock AdX demand. Publishers should create a NonceLoader on page load in order to reduce latency. For each stream (for DAI) or individual ad request, call the relevant setters as needed followed by a call to loadNonceManager. Publishers can then call NonceManager.getNonce() in order to get the string that should be added to ad requests as the value to the "&paln" URL parameter. Publishers should then call NonceManager.sendAdClick() and NonceManager.sendAdImpression() as appropriate.
Constructor
NonceLoader
new NonceLoader(consentSettings)
Constructor.
| Parameter | |
|---|---|
| consentSettings | Optional Settings related to regulations and consent. Value must not be null. | 
Method
loadNonceManager
loadNonceManager(request) returns Promise containing non-null NonceManager
| Parameter | |
|---|---|
| request | The request containing information about the nonce being requested. Value must not be null. | 
- Returns
- 
                  non-null Promise containing non-null NonceManagerThe promise that will be resolved once the NonceManager with an encrypted nonce containing all pre-bid information is available.