有兴趣分享您对 Google Ads API 的反馈吗?
注册即可获邀参与用户调研!
.NET 客户端库
.NET 客户端库托管在 GitHub 上,并以 NuGet 软件包的形式分发。它提供了多项功能来帮助您使用该 API,包括更轻松地管理凭据和创建 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/zh-cn/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 服务账号进行 API 调用,请参阅 OAuth 服务账号流程。
如需了解该库的功能和实用程序,请参阅以下指南:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-28。
[null,null,["最后更新时间 (UTC):2024-11-28。"],[[["The 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."],["The library supports .NET Framework 4.7.2+, .NET Standard 2.1, .NET 6.0, and .NET 8.0."],["It is available as a NuGet package and hosted on GitHub, providing features for easier credential management and service client creation."],["While .NET Standard 2.1 offers compatibility with various .NET versions and implementations, only the explicitly listed frameworks are officially supported."],["Users can find comprehensive documentation and guides, covering setup, OAuth flows, logging, and advanced features on the official Google Ads API website."]]],[]]