সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ননসলোডার
ক্লাসপাবলিক
প্রোগ্রাম্যাটিক অ্যাক্সেস লাইব্রেরি প্রকাশকদের সংকেত সংগ্রহ করতে দেয় যা AdX চাহিদা আনলক করতে ব্যবহার করা যেতে পারে। লেটেন্সি কমানোর জন্য প্রকাশকদের পৃষ্ঠা লোডের উপর একটি ননসলোডার তৈরি করা উচিত। প্রতিটি স্ট্রীমের জন্য (DAI-এর জন্য) বা স্বতন্ত্র বিজ্ঞাপনের অনুরোধের জন্য, loadNonceManager-এ একটি কলের পরে প্রয়োজন অনুযায়ী প্রাসঙ্গিক সেটারদের কল করুন। তারপরে প্রকাশকরা NonceManager.getNonce() কল করতে পারেন যাতে বিজ্ঞাপনের অনুরোধে "&paln" URL প্যারামিটারের মান হিসাবে যোগ করা উচিত এমন স্ট্রিং পেতে। প্রকাশকদের তারপর উপযুক্ত হিসাবে NonceManager.sendAdClick() এবং NonceManager.sendAdImpression() কল করা উচিত।
কনস্ট্রাক্টর
ননসলোডার
নতুন NonceLoader(সম্মতি সেটিংস, googleAdManagerSettings)
কনস্ট্রাক্টর
প্যারামিটার
সম্মতি সেটিংস
ঐচ্ছিক
প্রবিধান এবং সম্মতি সম্পর্কিত সেটিংস।
googleAdManager সেটিংস
ঐচ্ছিক
PAL সেটিংস যা Google Ad Manager UI-তে আপনার কনফিগার করা সেটিংস প্রতিফলিত করে।
মান শূন্য হতে হবে না.
পদ্ধতি
loadNonceManager
সর্বজনীন
loadNonceManager(অনুরোধ) নন-নাল NonceManager ধারণকারী প্রতিশ্রুতি প্রদান করে
ননস সম্পর্কে তথ্য ধারণকারী অনুরোধ অনুরোধ করা হচ্ছে.
মান শূন্য হতে হবে না.
রিটার্নস
non-null Promise containing non-null NonceManager প্রতিশ্রুতি যা সমাধান করা হবে একবার ননসম্যানেজার একটি এনক্রিপ্টেড নন্স সহ সমস্ত প্রাক-বিড তথ্য উপলব্ধ।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eNonceLoader is a programmatic access library that helps publishers gather signals to access AdX demand.\u003c/p\u003e\n"],["\u003cp\u003ePublishers need to create a NonceLoader instance upon page load and utilize its methods to generate and manage nonces for ad requests.\u003c/p\u003e\n"],["\u003cp\u003eNonces, obtained via NonceManager, enhance ad requests by carrying pre-bid information through the "&paln" URL parameter.\u003c/p\u003e\n"],["\u003cp\u003ePublishers are expected to use NonceManager methods to signal ad clicks and impressions for tracking purposes.\u003c/p\u003e\n"]]],["Publishers use the `NonceLoader` class to collect signals for unlocking AdX demand. Upon page load, a `NonceLoader` is created. For each stream or ad request, setters are configured, followed by `loadNonceManager` with a `NonceRequest`. This returns a `NonceManager` which provides a nonce string via `getNonce()`. This string is added to ad requests as the \"\\&paln\" URL parameter. Finally, `sendAdClick()` and `sendAdImpression()` are called on the `NonceManager`. The `NonceLoader` is initialized with optional `consentSettings` and `googleAdManagerSettings`.\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, googleAdManagerSettings)\n\nConstructor.\n\n| #### Parameter ||\n|-------------------------|---------------------------------------------------------------------------------------------------------------------|\n| consentSettings | Optional Settings related to regulations and consent. |\n| googleAdManagerSettings | Optional PAL settings that reflect the settings you configured in the Google Ad Manager UI. 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/html5/reference/js/NonceManager)\n\n| #### Parameter ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| request | [NonceRequest](/ad-manager/pal/html5/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/html5/reference/js/NonceManager) The promise that will be resolved once the NonceManager with an\n encrypted nonce containing all pre-bid information is available."]]