# ProgrammaticAccessLibrary Framework Reference

# PALNonceLoaderDelegate

    @protocol PALNonceLoaderDelegate <NSObject>

Delegate object used to receive updates from `https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceLoader.html`.
- `


  ### [-nonceLoader:withRequest:didLoadNonceManager:](https://developers.google.com/ad-manager/pal/tvos/reference/Protocols/PALNonceLoaderDelegate#/c:objc(pl)PALNonceLoaderDelegate(im)nonceLoader:withRequest:didLoadNonceManager:)


  ` Called when a `https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceManager.html` is successfully loaded.

  #### Declaration

  Swift

      func nonceLoader(_ nonceLoader: NonceLoader, with request: https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceRequest.html, didLoad nonceManager: https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceManager.html)

  Objective-C

      - (void)nonceLoader:(nonnull https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceLoader.html *)nonceLoader
                  withRequest:(nonnull https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceRequest.html *)request
          didLoadNonceManager:(nonnull https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceManager.html *)nonceManager;

  #### Parameters

  |---|---|
  | ` nonceLoader ` | The PALNonceLoader from which loading was requested. |
  | ` request ` | The PALNonceRequest used to request the nonce manager. |
  | ` nonceManager ` | A new PALNonceManager that contains a nonce for a single content stream. |

- `


  ### [-nonceLoader:withRequest:didFailWithError:](https://developers.google.com/ad-manager/pal/tvos/reference/Protocols/PALNonceLoaderDelegate#/c:objc(pl)PALNonceLoaderDelegate(im)nonceLoader:withRequest:didFailWithError:)


  ` Called when there was an error loading the `https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceManager.html`, or if loading timed out.

  #### Declaration

  Swift

      func nonceLoader(_ nonceLoader: NonceLoader, with request: https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceRequest.html, didFailWith error: any Error)

  Objective-C

      - (void)nonceLoader:(nonnull https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceLoader.html *)nonceLoader
               withRequest:(nonnull https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceRequest.html *)request
          didFailWithError:(nonnull NSError *)error;

  #### Parameters

  |---|---|
  | ` nonceLoader ` | The `https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceLoader.html` from which loading was requested. |
  | ` request ` | The `https://developers.google.com/ad-manager/pal/tvos/reference/Classes/PALNonceRequest.html` used to request the nonce manager. |
  | ` error ` | An error describing the failure. |