সতর্কতা: আপনি API এর REST ইন্টারফেসের জন্য ডকুমেন্টেশন দেখছেন। আমাদের বেশিরভাগ অফিসিয়াল ক্লায়েন্ট লাইব্রেরি জিআরপিসি ব্যবহার করে। বিস্তারিত জানার জন্য
REST ভূমিকা দেখুন।
অন্যান্য পদ্ধতি
যদিও Mutate
, Search
, এবং SearchStream
হল Google বিজ্ঞাপন API-এর সবচেয়ে সাধারণ পদ্ধতি, নির্দিষ্ট উদ্দেশ্যে আরও অনেকগুলি রয়েছে৷ সমস্ত পরিষেবা এবং তাদের APIগুলি REST রেফারেন্স ডকুমেন্টেশনে নথিভুক্ত করা হয়েছে৷
প্রোটোকল বাফার RPC থেকে REST ম্যাপিং
প্রোটো3 ইন্টারফেস ডেফিনিশন ল্যাঙ্গুয়েজ ব্যবহার করে পরিষেবা প্যাকেজের .proto ফাইলগুলিতে সমস্ত পরিষেবার শেষ পয়েন্ট (REST এবং gRPC ব্যবহার করা হোক না কেন) শেষ পর্যন্ত সংজ্ঞায়িত করা হয়।
উদাহরণ: ListAccessible Customers
উদাহরণস্বরূপ, customer_service.proto
ফাইলটি স্ট্যান্ডার্ড Mutate
পাশাপাশি একটি ListAccessibleCustomers
পদ্ধতি সংজ্ঞায়িত করে। এর google.api.http
টীকা বর্ণনা করে কিভাবে পদ্ধতিটি HTTP-তে ম্যাপ করে। এটি কাস্টম ক্রিয়া তালিকার সাথে একটি HTTP GET
ব্যবহার করে listAccessibleCustomers
:
rpc ListAccessibleCustomers(ListAccessibleCustomersRequest)
returns (ListAccessibleCustomersResponse) {
option (google.api.http) = {
get: "/v19/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: "/v19/customers/{customer_id=*}:createCustomerClient"
body: "*"
};
option (google.api.method_signature) = "customer_id,customer_client";
}
এটি customers.createCustomerClient REST পদ্ধতিতে ম্যাপ করে।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-03-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-03-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["While `Mutate`, `Search`, and `SearchStream` are commonly used, the Google Ads API offers a wide range of methods for specific tasks, all documented in the REST reference documentation."],["All Google Ads API service endpoints, including REST and gRPC, are defined in .proto files using the proto3 Interface Definition Language."],["The `google.api.http` annotation within these .proto files details how each method maps to HTTP for RESTful interactions, including examples like `ListAccessibleCustomers` and `CreateCustomerClient`."]]],["The Google Ads API includes various methods beyond `Mutate`, `Search`, and `SearchStream`, all detailed in REST documentation. Service endpoints are defined in `.proto` files using proto3. `ListAccessibleCustomers` is a GET method, mapped using the `google.api.http` annotation in the `customer_service.proto` file, and uses custom verb `listAccessibleCustomers`. Similarly, `CreateCustomerClient`, a POST method, uses custom verb `createCustomerClient`, also defined in the same file.\n"]]