Class: NonceLoader

  • The NonceLoader is a programmatic access library that allows publishers to collect signals for unlocking AdX demand.

  • Publishers should create a NonceLoader on page load to reduce latency and call setters and loadNonceManager for each stream or ad request.

  • The NonceLoader is constructed with optional consent settings and has a method loadNonceManager which returns a Promise containing a NonceManager.

Constructor

NonceLoader

new NonceLoader(consentSettings)

Constructor.

Parameter

consentSettings

Optional

Settings related to regulations and consent.

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.