টাইমআউট
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রতিটি পরিষেবা একটি ডিফল্ট টাইমআউটের সাথে আসে এবং সেই পরিষেবার client.rb
ফাইলে নির্দিষ্ট করা নীতি পুনরায় চেষ্টা করে৷ একটি উদাহরণের জন্য, প্রচারাভিযান পরিষেবার client.rb
দেখুন এবং self.configure
পদ্ধতিটি খুঁজুন।
এই ডিফল্টগুলি আপনি ইনস্ট্যান্টিয়েট করার পরে কোনও পরিষেবাতে ওভাররাইড করা যেতে পারে। এটি করতে, set_custom_client_timeouts.rb
এ উদাহরণটি অনুসরণ করুন।
আপনি আপনার পছন্দ অনুযায়ী একটি টাইমআউট সেট করতে পারেন, তবে যে প্রতিক্রিয়াগুলি দুই ঘণ্টার বেশি সময় নেয় তার ফলে একটি DEADLINE_EXCEEDED
ত্রুটি হতে পারে৷
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eEach Google Ads API service has a default timeout and retry policy defined in its \u003ccode\u003eclient.rb\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eThese defaults can be overridden after service instantiation using the approach demonstrated in the \u003ccode\u003eset_custom_client_timeouts.rb\u003c/code\u003e example.\u003c/p\u003e\n"],["\u003cp\u003eWhile custom timeouts can be set to any duration, responses exceeding two hours might lead to a \u003ccode\u003eDEADLINE_EXCEEDED\u003c/code\u003e error.\u003c/p\u003e\n"]]],[],null,["# Timeouts\n\nEach service comes with a default timeout and retry policy specified in that\nservice's `client.rb` file. For an example, take a look at the campaign\nservice's\n[`client.rb`](https://github.com/googleads/google-ads-ruby/blob/main/lib/google/ads/google_ads/v21/services/campaign_service/client.rb)\nand find the `self.configure` method.\n\nThese defaults can be overridden on a service after you instantiate it. To do\nso, follow the example in\n[`set_custom_client_timeouts.rb`](https://github.com/googleads/google-ads-ruby/blob/main/examples/misc/set_custom_client_timeouts.rb).\n\nYou can set a timeout as large as you like, but responses that take over two\nhours might result in a\n[`DEADLINE_EXCEEDED`](/google-ads/api/reference/rpc/v21/InternalErrorEnum.InternalError) error."]]