Class NonceLoader

PAL lets you collect signals to unlock Ad Exchange demand. To reduce latency, create a NonceLoader instance on page load. For each DAI stream or individual ad request, set the [NonceRequest](https://developers.google.com/ad-manager/pal/ctv/reference/class/goog.ctv.pal.NonceRequest) instance parameters relevant to your app, and call the loadNonceManager method. To get the nonce string, call the NonceManager.getNonce() method. Add the nonce to ad requests as the value for the "&paln" URL parameter.
Constructors
constructor
Constructor.
Methods
loadNonceManager

Constructors


constructor

new NonceLoader(consentSettings?: ConsentSettings): NonceLoader
Constructor.
Parameters
Optional consentSettings: ConsentSettings Settings related to regulations and consent.
Returns
NonceLoader

Methods


loadNonceManager

loadNonceManager(request: NonceRequest): Promise<NonceManager>
Parameters
request: NonceRequest The request containing information about the nonce you request.
Returns
Promise<NonceManager> The promise that resolves when the NonceManager instance with an encrypted nonce that contains all pre-bid information is available.