Class: NonceLoader

  • 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.

Constructor

NonceLoader

new NonceLoader(consentSettings)

Constructor.

Parameter

consentSettings

Optional

Settings related to regulations and consent.

Value must not be null.

Method

loadNonceManager

public

loadNonceManager(request) returns Promise containing non-null NonceManager

Parameter

request

NonceRequest

The request containing information about the nonce being requested.

Value must not be null.

Returns

non-null Promise containing non-null NonceManager The promise that will be resolved once the NonceManager with an encrypted nonce containing all pre-bid information is available.