想分享對 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-TW/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 服務帳戶流程。
如要瞭解程式庫的功能和公用程式,請參閱下列指南:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-28 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]