Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
Timeouts
Each service comes with a default timeout and retry policy specified in that
service's client.rb
file. For an example, take a look at the campaign
service's
client.rb
and find the self.configure
method.
These defaults can be overridden on a service after you instantiate it. To do
so, follow the example in
set_custom_client_timeouts.rb
.
You can set a timeout as large as you like, but responses that take over two
hours might result in a
DEADLINE_EXCEEDED
error.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
[null,null,["Last updated 2025-01-28 UTC."],[[["Each Google Ads API service has a default timeout and retry policy defined in its `client.rb` file."],["These defaults can be overridden after service instantiation using the approach demonstrated in the `set_custom_client_timeouts.rb` example."],["While custom timeouts can be set to any duration, responses exceeding two hours might lead to a `DEADLINE_EXCEEDED` error."]]],[]]