संसाधन के नाम
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Ads API में किसी इकाई के यूनीक आइडेंटिफ़ायर को रिसॉर्स का नाम कहा जाता है. इसे अनुमानित फ़ॉर्मैट वाली स्ट्रिंग के तौर पर दिखाया जाता है. अगर आपको संसाधन के नाम के कॉम्पोनेंट के बारे में पता है, तो इस सुविधा का इस्तेमाल करके संसाधन का फ़ाइनल नाम जनरेट किया जा सकता है.
ResourceNames क्लास
ResourceNames
क्लास, किसी इकाई के रिसॉर्स का नाम बनाने का एक तरीका है. ऐसा तब किया जा सकता है, जब आपके पास उस इकाई से जुड़े सभी ज़रूरी आईडी हों. उदाहरण के लिए, किसी कैंपेन के संसाधन का नाम customers/{customer_id}/campaigns/{campaign_id}
फ़ॉर्मैट में होता है. इसलिए, अगर आपको ग्राहक आईडी और कैंपेन आईडी पता है, तो ResourceNames
क्लास का इस्तेमाल करके संसाधन का पूरा नाम इस तरह बनाया जा सकता है:
string campaignResourceName = ResourceNames.Campaign(customerId, campaignId),
इकाई के अन्य नामों का भी इस्तेमाल किया जा सकता है. ये नाम, रिसॉर्स के नाम के आखिरी फ़ॉर्म के आधार पर अलग-अलग आईडी लेते हैं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Google Ads API client library for .NET will drop support for .NET 5.0 starting with version 19.0.0, urging users to upgrade to a newer version.\u003c/p\u003e\n"],["\u003cp\u003eResource names are unique identifiers for entities in the Google Ads API, following a predictable format based on the entity's components.\u003c/p\u003e\n"],["\u003cp\u003eYou can easily construct resource names using the \u003ccode\u003eResourceNames\u003c/code\u003e class if you know the necessary IDs, such as customer and campaign IDs.\u003c/p\u003e\n"]]],[],null,["# Resource Names\n\nThe unique identifier for an entity in the Google Ads API is called a resource\nname, and is represented as a string with a predictable format. If you know\nthe constituent components of a resource name, you can use this utility to\ngenerate the final resource name.\n\nResourceNames class\n-------------------\n\nThe `ResourceNames` class is a way to construct the resource name of an entity\nif you know all of the relevant IDs related to that entity. For example, a\ncampaign resource name is in the format\n`customers/{customer_id}/campaigns/{campaign_id}`, so if you know the customer\nID and the campaign ID, you can use the `ResourceNames` class construct the full\nresource name as follows: \n\n string campaignResourceName = ResourceNames.Campaign(customerId, campaignId),\n\nYou can use other entity names as well, which take different IDs depending on\nthe final form of the resource name."]]