您可以使用 gRPC 或 REST 呼叫 Google Ads API。這兩種介面都會公開與其他 Google Cloud API 共用的資源導向設計。
我們建議盡量使用 Google 的官方用戶端程式庫。這項服務針對每種支援的語言提供慣用的程式設計語言、類型安全的程式碼,並處理許多與 API 的低階通訊詳細資料 (例如逾時設定、結果集分頁和驗證)。我們的用戶端程式庫也包含豐富的程式碼範例和公用程式,協助您建構常見工作,例如建立資源名稱和處理欄位遮罩。
本指南提供 REST 的專屬詳細資料,並說明不使用 Google 支援的用戶端程式庫時,請直接呼叫 REST 介面的須知。如果您直接編寫自訂程式碼來直接使用 REST,或是使用第三方 HTTP 用戶端程式庫,本指南就非常實用。
[[["容易理解","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"]],["上次更新時間:2024-06-25 (世界標準時間)。"],[[["Google Ads API can be accessed using either gRPC or REST, with gRPC being the recommended method for interacting with the API."],["Official Google client libraries, built on gRPC (except for Perl which uses REST), are strongly encouraged for ease of use and handling low-level communication details."],["This guide focuses on using the REST interface directly, primarily for users building custom solutions or using third-party HTTP client libraries."],["Client libraries provide benefits like idiomatic code, type safety, pagination handling, authentication, and access to code examples and utilities for common tasks."]]],[]]