Class: NonceLoader

  • NonceLoader is a programmatic access library for publishers to collect signals to unlock AdX demand.

  • To reduce latency, publishers should create a NonceLoader on page load.

  • The loadNonceManager method returns a Promise that resolves with a NonceManager containing an encrypted nonce.

Constructor

NonceLoader

new NonceLoader(consentSettings, googleAdManagerSettings)

Constructor.

Parameter

consentSettings

Optional

Settings related to regulations and consent.

googleAdManagerSettings

Optional

PAL settings that reflect the settings you configured in the Google Ad Manager UI.

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.