Class: NonceLoader

  • NonceLoader is a programmatic access library that enables publishers to gather signals for AdX demand.

  • Publishers need to create a NonceLoader upon page load and utilize its methods to generate and manage nonces for ad requests.

  • NonceManager provides methods for retrieving the nonce, which should be included in ad requests as the "&paln" URL parameter value, and for signaling ad clicks and impressions.

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.