सीमित तौर पर दिखाए जाने वाले विज्ञापन और पहले पक्ष के आइडेंटिफ़ायर की सेटिंग
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अगर आपने Ad Manager की सेटिंग प्रोग्राम के हिसाब से सीमित तौर पर विज्ञापन दिखाने या वेब पर विज्ञापनों के लिए पहले पक्ष की कुकी को अपडेट किया है, तो Ad Manager की सेटिंग से मैच करने के लिए इन नए एपीआई का इस्तेमाल करें. अगर एपीआई का इस्तेमाल नहीं किया जाता है, तो हो सकता है कि PAL, सर्वर को विज्ञापन अनुरोध में इस्तेमाल किए जाने वाले नॉन्स में आइडेंटिफ़ायर शामिल करे. हालांकि, Ad Manager में मौजूद सेटिंग के आधार पर, Ad Manager सिग्नल को छोड़ सकता है.
ये एपीआई इस तरह के हैं:
disableLimitedAdsStorage
- सीमित तौर पर दिखाए जाने वाले विज्ञापनों के लिए, अमान्य ट्रैफ़िक का पता लगाने वाली सिर्फ़ कुकी और लोकल स्टोरेज का इस्तेमाल बंद करता है. अगर आपने एडमिन > ग्लोबल सेटिंग में जाकर, Ad Manager में सीमित तौर पर दिखाए जाने वाले प्रोग्राम के हिसाब से विज्ञापन की सेटिंग अपडेट की है, तो PAL में सीमित तौर पर दिखाए जाने वाले विज्ञापनों के लिए, लोकल स्टोरेज के इस्तेमाल को बंद करने के लिए इस एपीआई का इस्तेमाल करें. ध्यान दें कि यह सेटिंग, सीमित तौर पर नहीं दिखाए जाने वाले विज्ञापनों पर लागू नहीं होती.
disableFirstPartyIdentifiers
-
विज्ञापन चुनने के लिए इस्तेमाल किए जाने वाले पहले पक्ष के आइडेंटिफ़ायर बंद कर देता है. अगर आपने एडमिन > ग्लोबल सेटिंग में, Ad Manager में वेब पर विज्ञापनों के लिए पहले पक्ष की कुकी सेटिंग को अपडेट किया है, तो PAL में ऐसे आइडेंटिफ़ायर को बंद करने के लिए, इस एपीआई का इस्तेमाल करें. ध्यान दें कि यह सेटिंग, अमान्य ट्रैफ़िक का पता लगाने के लिए, कुकी और लोकल स्टोरेज के इस्तेमाल पर लागू नहीं होती.
नीचे दिए गए उदाहरण में ये पैरामीटर सेट किए गए हैं:
const consentSettings = new goog.pal.ConsentSettings();
consentSettings.allowStorage = getConsentToStorage();
const adManagerSettings = new goog.pal.GoogleAdManagerSettings();
// Add this line if the "Programmatic limited ads" toggle is turned off in
// Ad Manager.
adManagerSettings.disableLimitedAdsStorage = true;
// Add this line if the "First party cookies for ads on web" toggle
// is turned off in Ad Manager.
adManagerSettings.disableFirstPartyIdentifiers = true;
const nonceLoader = new goog.pal.NonceLoader(consentSettings, adManagerSettings);
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[],[],null,["# Limited ads and first party identifier settings\n\nIf you update the Ad Manager settings **Programmatic limited ads** or\n**First party\ncookies\nfor ads on\nweb**,\nuse these new APIs to match the settings in Ad Manager. If you don't use the\nAPIs PAL might include the identifiers in the nonce that is used in the ad\nrequest to the server. However, Ad Manager might drop the signals based on the\nsettings in Ad Manager.\n\nThe APIs are as follows:\n\n- [`disableLimitedAdsStorage`](/ad-manager/pal/html5/reference/js/GoogleAdManagerSettings#disableLimitedAdsStorage) - disables invalid traffic detection-only cookies and use of local storage for limited ads. If you updated the **Programmatic limited ads** setting in Ad Manager within **Admin \\\u003e Global settings**, use this API to disable usage of local storage for limited ads in PAL. Note that this setting does not apply to non-limited ads.\n- [`disableFirstPartyIdentifiers`](/ad-manager/pal/html5/reference/js/GoogleAdManagerSettings#disableFirstPartyIdentifiers) - disables first-party identifiers used for ad selection. If you updated the **First party\n cookies\n for ads on\n web** setting in Ad Manager within **Admin \\\u003e Global** settings, use this API to disable such identifiers in PAL. Note that this setting does not apply to the use of cookies and local storage for invalid traffic detection.\n\nThe following example sets these parameters: \n\n const consentSettings = new goog.pal.ConsentSettings();\n consentSettings.allowStorage = getConsentToStorage();\n\n const adManagerSettings = new goog.pal.GoogleAdManagerSettings();\n // Add this line if the \"Programmatic limited ads\" toggle is turned off in\n // Ad Manager.\n adManagerSettings.disableLimitedAdsStorage = true;\n // Add this line if the \"First party cookies for ads on web\" toggle\n // is turned off in Ad Manager.\n adManagerSettings.disableFirstPartyIdentifiers = true;\n\n const nonceLoader = new goog.pal.NonceLoader(consentSettings, adManagerSettings);"]]