注意:您正在查看 API 的 REST 介面說明文件。我們的官方用戶端程式庫支援 gRPC。詳情請參閱
REST 簡介。
其他方法
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
雖然 Mutate
、Search
和 SearchStream
是最常見的方法
Google Ads API 中還有許多其他特定用途所有服務與
相關資訊都已記錄在
REST 參考說明文件。
通訊協定緩衝區 RPC 到 REST 對應
最終會定義所有服務端點 (無論是使用 REST 和 gRPC)
的
服務套件的.proto 檔案
方法是使用
proto3 介面定義語言。
範例:ListAccessibleCustomers
例如 customer_service.proto
檔案
除了標準 Mutate
之外,還會定義 ListAccessibleCustomers
方法
,直接在 Google Cloud 控制台實際操作。其 google.api.http
註解說明
以及該方法對應至 HTTP這會使用 HTTP GET
搭配自訂動詞
listAccessibleCustomers
:
rpc ListAccessibleCustomers(ListAccessibleCustomersRequest)
returns (ListAccessibleCustomersResponse) {
option (google.api.http) = {
get: "/v17/customers:listAccessibleCustomers"
};
}
這會對應至
customers.listAccessibleCustomers
REST 方法。
例如:CreateCustomerClient
customer_service.proto
的另一個例子是
CreateCustomerClient
方法。其 google.api.http
註解描述了
使用自訂動詞 createCustomerClient
執行 HTTP POST
:
rpc CreateCustomerClient(CreateCustomerClientRequest)
returns (CreateCustomerClientResponse) {
option (google.api.http) = {
post: "/v17/customers/{customer_id=*}:createCustomerClient"
body: "*"
};
option (google.api.method_signature) = "customer_id,customer_client";
}
這會對應至 customers.createCustomerClient
REST 方法。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-10 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u4e0a\u6b21\u66f4\u65b0\u6642\u9593\uff1a2024-09-10 (\u4e16\u754c\u6a19\u6e96\u6642\u9593)\u3002"}
[[["容易理解","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-09-10 (世界標準時間)。"]]