निकाले गए प्लेसमेंट की सूचियां
संग्रह की मदद से व्यवस्थित रहें अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी निकाले गए प्लेसमेंट सूची के सभी प्लेसमेंट पाएं
function getPlacementsFromExcludedPlacementList(name) { const excludedPlacementListIterator = AdsApp.excludedPlacementLists() .withCondition(`shared_set.name = '${name}'`) .get(); if (!excludedPlacementListIterator.hasNext()) { throw new Error(`No excluded placement list with name '${name}' found.`); } const excludedPlacementList = excludedPlacementListIterator.next(); return excludedPlacementList.excludedPlacements().get(); }
निकाले गए प्लेसमेंट की सूची में प्लेसमेंट जोड़ना
function addPlacementToList(url, name) { const excludedPlacementListIterator = AdsApp.excludedPlacementLists() .withCondition(`shared_set.name = '${name}'`) .get(); if (!excludedPlacementListIterator.hasNext()) { throw new Error(`No excluded placement list with name '${name}' found.`); } const excludedPlacementList = excludedPlacementListIterator.next(); excludedPlacementList.addExcludedPlacement(url); }
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe provided code snippets demonstrate how to retrieve all placements within a specified excluded placement list using \u003ccode\u003egetPlacementsFromExcludedPlacementList\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eaddPlacementToList\u003c/code\u003e function enables adding a new placement to an existing excluded placement list by utilizing its URL and list name.\u003c/p\u003e\n"],["\u003cp\u003eBoth functions utilize the \u003ccode\u003eAdsApp.excludedPlacementLists()\u003c/code\u003e method for accessing and manipulating excluded placement lists within Google Ads, throwing an error if the specified list name isn't found.\u003c/p\u003e\n"]]],[],null,["# Excluded Placement Lists\n\nGet all the placements in an excluded placement list\n----------------------------------------------------\n\n```gdscript\nfunction getPlacementsFromExcludedPlacementList(name) {\n const excludedPlacementListIterator =\n AdsApp.excludedPlacementLists()\n .withCondition(`shared_set.name = '${name}'`)\n .get();\n\n if (!excludedPlacementListIterator.hasNext()) {\n throw new Error(`No excluded placement list with name '${name}' found.`);\n }\n\n const excludedPlacementList = excludedPlacementListIterator.next();\n return excludedPlacementList.excludedPlacements().get();\n}\n```\n\nAdd a placement to an excluded placement list\n---------------------------------------------\n\n```gdscript\nfunction addPlacementToList(url, name) {\n const excludedPlacementListIterator =\n AdsApp.excludedPlacementLists()\n .withCondition(`shared_set.name = '${name}'`)\n .get();\n\n if (!excludedPlacementListIterator.hasNext()) {\n throw new Error(`No excluded placement list with name '${name}' found.`);\n }\n const excludedPlacementList = excludedPlacementListIterator.next();\n excludedPlacementList.addExcludedPlacement(url);\n}\n```"]]