歡迎在美國東部標準時間 10 月 15 日上午 10:00,透過
Discord 的 Google 廣告與評估社群伺服器和
YouTube 觀看直播!我們將討論 Google Ads API 第 26 版新增的功能。
Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
提供意見
Ruby 用戶端程式庫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Ruby 用戶端程式庫託管於 GitHub ,而 Gem 則可在 RubyGems 上取得。
這個程式庫支援積極維護的 Ruby 版本 (Ruby 3.2、3.3 和 3.4,gemspec 需求為 Ruby 3.0 以上版本)。
進行第一次 API 呼叫
如要使用 Google Ads API,您需要完成幾個步驟,才能存取 API 並設定 Google Ads 帳戶。快速入門指南 會逐步說明所有重要步驟,包括設定 Google Ads 帳戶。
基本用法
如要進一步瞭解如何使用 Ruby 用戶端程式庫,請參閱基本使用指南 :
# Optional when using Bundler.require in v41.1.0 and later:
require 'google/ads/google_ads'
# Initialize the client using your ~/google_ads_config.rb configuration file.
client = Google :: Ads :: GoogleAds :: GoogleAdsClient . new
# Access a specific service.
customer_service = client . service . customer
授權與驗證
Ruby 用戶端程式庫支援多種驗證和授權方法。詳情請參閱授權和驗證 指南。
設定和記錄
Ruby 用戶端程式庫支援多種設定 和記錄 選項。您也可以覆寫每項服務的逾時和重試 時間。
公用程式
Ruby 用戶端程式庫包含多個實用類別,可提升 API 的可用性。查看下列指南持續學習:
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-10-07 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","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"]],["上次更新時間:2026-10-07 (世界標準時間)。"],[],[]]