.NET क्लाइंट लाइब्रेरी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
.NET क्लाइंट लाइब्रेरी को GitHub पर होस्ट किया जाता है और इसे NuGet पैकेज के तौर पर डिस्ट्रिब्यूट किया जाता है. यह एपीआई का इस्तेमाल करने में आपकी मदद करने के लिए कई सुविधाएं उपलब्ध कराता है. इनमें क्रेडेंशियल को आसानी से मैनेज करना और Google Ads API सेवा क्लाइंट बनाना शामिल है.
लाइब्रेरी, इन .NET फ़्रेमवर्क के साथ काम करती है:
- .NET Framework 4.7.2 और उसके बाद के वर्शन (
net472
)
- .NET Standard 2.1 (
netstandard2.1
)
- .NET 6.0 (
net6.0
)
- .NET 8.0 (
net8.0
)
.NET Standard 2.1, .NET के कई अन्य वर्शन और लागू करने के तरीकों के साथ काम करता है. इसलिए, लाइब्रेरी कई अन्य प्लैटफ़ॉर्म पर भी ठीक से काम कर सकती है.
हालांकि, हमने आधिकारिक तौर पर इन प्लैटफ़ॉर्म के साथ काम करने की जांच नहीं की है. इसलिए, हम इन प्लैटफ़ॉर्म के साथ काम करने की आधिकारिक तौर पर पुष्टि नहीं करते.
.NET स्टैंडर्ड के साथ काम करने के बारे में ज़्यादा जानने के लिए, https://learn.microsoft .com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-1 पर जाएं.
Google Ads API .NET लाइब्रेरी, डिफ़ॉल्ट रूप से Grpc.Net.Client
का इस्तेमाल करती है. साथ ही, काम न करने वाले प्लैटफ़ॉर्म पर Grpc.Core
का इस्तेमाल करती है. UseGrpcCore
को true
पर सेट करके, Grpc.Core
का इस्तेमाल ज़बरदस्ती किया जा सकता है. लेगसी Grpc लाइब्रेरी का इस्तेमाल करना देखें.
इस लाइब्रेरी का इस्तेमाल शुरू करने के लिए, ज़रूरी शर्तें देखें और शुरू करने की गाइड पढ़ें.
OAuth2 रीफ़्रेश टोकन के बारे में जानकारी पाने के लिए, OAuth डेस्कटॉप और वेब ऐप्लिकेशन के फ़्लो देखें. OAuth2 सेवा खातों का इस्तेमाल करके एपीआई कॉल करने के लिए, OAuth सेवा खाते के फ़्लो देखें.
लाइब्रेरी की सुविधाओं और उपयोगिताओं के बारे में जानने के लिए, यहां दी गई गाइड देखें:
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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 no longer support .NET 5.0 starting with version 19.0.0, and users should upgrade to a supported version before the end of 2024.\u003c/p\u003e\n"],["\u003cp\u003eThe library supports .NET Framework 4.7.2+, .NET Standard 2.1, .NET 6.0, and .NET 8.0.\u003c/p\u003e\n"],["\u003cp\u003eIt is available as a NuGet package and hosted on GitHub, providing features for easier credential management and service client creation.\u003c/p\u003e\n"],["\u003cp\u003eWhile .NET Standard 2.1 offers compatibility with various .NET versions and implementations, only the explicitly listed frameworks are officially supported.\u003c/p\u003e\n"],["\u003cp\u003eUsers can find comprehensive documentation and guides, covering setup, OAuth flows, logging, and advanced features on the official Google Ads API website.\u003c/p\u003e\n"]]],[],null,["# The .NET Client Library\n\nThe .NET client library is [hosted on GitHub](https://github.com/googleads/google-ads-dotnet) and is distributed\nas a [NuGet package](//www.nuget.org/packages/Google.Ads.GoogleAds/). It\noffers several features to help you use the API, including easier management\nof credentials and creation of Google Ads API service clients.\n\nThe library supports the following .NET Frameworks:\n\n- .NET Framework 4.7.2+ (`net472`)\n- .NET Standard 2.1 (`netstandard2.1`)\n- .NET 6.0 (`net6.0`)\n- .NET 8.0 (`net8.0`)\n\n.NET Standard 2.1 is compatible with several other .NET versions and\nimplementations, so the library might work fine on many other platforms.\nHowever, we haven't officially tested the compatibility and thus don't\nofficially support these platforms.\nSee https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-1\nto learn more about .NET standard compatibility.\n\nThe Google Ads API .NET library uses `Grpc.Net.Client` as the default, with a\nfallback to `Grpc.Core` on unsupported platforms. You can force the use of\n`Grpc.Core` by setting `UseGrpcCore` to `true`. See\n[Use the legacy Grpc library](/google-ads/api/docs/client-libs/dotnet/getting-started).\n\nTo start using this library, check the\n[prerequisites](/google-ads/api/docs/get-started/introduction) and consult the\n[getting started guide](/google-ads/api/docs/client-libs/dotnet/getting-started).\n\nFor information on OAuth2 refresh tokens, check out [OAuth desktop and web\napplication flows](/google-ads/api/docs/client-libs/dotnet/oauth-web). And to make API calls\nusing OAuth2 service accounts, see [OAuth service account\nflow](/google-ads/api/docs/client-libs/dotnet/oauth-service).\n\nConsult the following guides for the library's features and utilities:\n\n- [Logging](/google-ads/api/docs/client-libs/dotnet/logging)\n- [FieldMasks](/google-ads/api/docs/client-libs/dotnet/field-masks)\n- [ResourceNames](/google-ads/api/docs/client-libs/dotnet/resource-names)\n- [Custom gRPC interceptors](/google-ads/api/docs/client-libs/dotnet/custom-interceptors)\n- [Protocol buffer types](/google-ads/api/docs/client-libs/dotnet/working-with-protobuf)"]]