프로그래매틱 액세스 라이브러리를 사용하면 게시자가 AdX 수요를 잠금 해제하는 데 사용할 수 있는 신호를 수집할 수 있습니다.
게시자는 지연 시간을 줄이기 위해 페이지 로드 시 NonceLoader를 만들어야 합니다. 각 스트림 (DAI의 경우) 또는 개별 광고 요청에 대해 필요에 따라 관련 설정자를 호출한 다음 loadNonceManager를 호출합니다. 그러면 게시자는 NonceManager.getNonce()를 호출하여 광고 요청에 '&paln' URL 매개변수의 값으로 추가해야 하는 문자열을 가져올 수 있습니다. 그런 다음 게시자는 필요에 따라 NonceManager.sendAdClick() 및 NonceManager.sendAdImpression()을 호출해야 합니다.
생성자
NonceLoader
new
NonceLoader(consentSettings)
생성자입니다.
매개변수
consentSettings
선택사항
규정 및 동의와 관련된 설정입니다.
값은 null이 아니어야 합니다.
메서드
loadNonceManager
public
loadNonceManager(request)는 null이 아닌 NonceManager를 포함하는 Promise를 반환합니다.
[null,null,["최종 업데이트: 2025-08-21(UTC)"],[[["\u003cp\u003eNonceLoader is a programmatic access library that enables publishers to gather signals for AdX demand.\u003c/p\u003e\n"],["\u003cp\u003ePublishers need to create a NonceLoader upon page load and utilize its methods to generate and manage nonces for ad requests.\u003c/p\u003e\n"],["\u003cp\u003eNonceManager 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.\u003c/p\u003e\n"]]],["Publishers use the `NonceLoader` class to gather signals for unlocking AdX demand. On page load, a `NonceLoader` is created. For each stream or ad request, setters are invoked, followed by `loadNonceManager`. This method returns a `NonceManager` that yields a string, `getNonce()`, for the \"\\&paln\" URL parameter in ad requests. Subsequently, `NonceManager.sendAdClick()` and `NonceManager.sendAdImpression()` are called as needed. `loadNonceManager` requires a non-null `NonceRequest`. The `NonceLoader` constructor requires non-null `consentSettings`.\n"],null,["# Class: NonceLoader\n\nNonceLoader\n===========\n\nclass public\n\nThe programmatic access library allows publishers to collect signals that can\nbe used to unlock AdX demand.\nPublishers should create a NonceLoader on page load in order to reduce\nlatency. For each stream (for DAI) or individual ad request, call the\nrelevant setters as needed followed by a call to loadNonceManager. Publishers\ncan then call NonceManager.getNonce() in order to get the string that should\nbe added to ad requests as the value to the \"\\&paln\" URL parameter. Publishers\nshould then call NonceManager.sendAdClick() and\nNonceManager.sendAdImpression() as appropriate.\n\nConstructor\n-----------\n\n### NonceLoader\n\nnew\nNonceLoader(consentSettings)\n\nConstructor.\n\n| #### Parameter ||\n|-----------------|-------------------------------------------------------------------------------|\n| consentSettings | Optional Settings related to regulations and consent. Value must not be null. |\n\nMethod\n------\n\n### loadNonceManager\n\npublic\n\nloadNonceManager(request) returns Promise containing non-null [NonceManager](/ad-manager/pal/cast/reference/js/NonceManager)\n\n| #### Parameter ||\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| request | [NonceRequest](/ad-manager/pal/cast/reference/js/NonceRequest) The request containing information about the nonce being requested. Value must not be null. |\n\nReturns\n\n: `non-null Promise containing non-null `[NonceManager](/ad-manager/pal/cast/reference/js/NonceManager) The promise that will be resolved once the NonceManager with an encrypted nonce containing all pre-bid information is available."]]