*** ** * ** ***

The programmatic access library allows publishers to collect signals that can be used to unlock AdX demand. Publishers should create a `NonceLoader` on page load in order to reduce latency. For each stream (for DAI) or individual ad request, call the relevant setters as needed followed by a call to `loadNonceManager`. Publishers can then call `NonceManager.getNonce()` in order to get the string that should be added to ad requests as the value to the `"&paln"` URL parameter. Publishers should then call `NonceManager.sendAdClick()` and `NonceManager.sendAdImpression()` as appropriate.

| Constructors ||
|---|---|
| `https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceLoader#goog.pal.NonceLoader.constructor` | Constructor. |

| Methods ||
|---|---|
| `https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceLoader#goog.pal.NonceLoader.loadNonceManager` |   |

## Constructors

*** ** * ** ***

### constructor

`new NonceLoader(consentSettings?: https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.ConsentSettings, googleAdManagerSettings?: https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.GoogleAdManagerSettings): https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceLoader` Constructor.

| Parameters ||
|---|---|
| `` `Optional` consentSettings: https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.ConsentSettings `` | Settings related to regulations and consent. |
| `` `Optional` googleAdManagerSettings: https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.GoogleAdManagerSettings `` | PAL settings that reflect the settings you configured in the Google Ad Manager UI. |

| Returns ||
|---|---|
| `https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceLoader` |   |

## Methods

*** ** * ** ***

### loadNonceManager

`loadNonceManager(request: https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceRequest): Promise<https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceManager>`

| Parameters ||
|---|---|
| `request: https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceRequest` | The request containing information about the nonce being requested. |

| Returns ||
|---|---|
| `Promise<https://developers.google.com/ad-manager/pal/html5/reference/class/goog.pal.NonceManager>` | The promise that resolves when the NonceManager with an encrypted nonce containing all pre-bid information is available. |