想分享對 Google Ads API 的意見嗎?
立即註冊,等待受邀參與使用者研究調查!
下載工具和用戶端程式庫
請下載下列工具,完成本教學課程的其餘步驟。
Google Cloud CLI
Google Ads API 使用 OAuth 2.0 做為授權機制。本教學課程會使用 Google Cloud CLI 執行各種 OAuth 2.0 授權步驟。按照操作說明安裝 gcloud CLI。
本指南其餘部分的指示經過驗證,可搭配下列版本的 gcloud 工具使用,但可能無法搭配先前版本使用,因為應用程式行為或指令列選項有所不同。
:~$ gcloud version
Google Cloud SDK 492.0.0
alpha 2024.09.06
beta 2024.09.06
bq 2.1.8
bundled-python3-unix 3.11.9
core 2024.09.06
enterprise-certificate-proxy 0.3.2
gcloud-crc32c 1.0.0
gsutil 5.30
用戶端程式庫或 HTTP 用戶端
您可以根據想要發出 API 呼叫的方式,選擇下載用戶端程式庫或 HTTP 用戶端。
下載並安裝 curl,這是用於透過網址傳輸資料的指令列工具。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-04 (世界標準時間)。
[null,null,["上次更新時間:2025-03-04 (世界標準時間)。"],[[["This guide requires downloading and installing `oauth2l` or `gcloud CLI` for authorization using OAuth 2.0 to obtain access and refresh tokens."],["Ensure your `oauth2l` version is v1.3.0 and `gcloud CLI` version is 492.0.0 for compatibility with the instructions."],["You will need to utilize either a Google Ads API client library or an HTTP client like `curl` to interact with the API."]]],[]]