Join us live on
Discord on the Google Advertising and Measurement Community server and on
YouTube on March 26th at 11:00 AM EST! We will discuss the new features added in v23.2 of the Google Ads API.
Timeouts
Stay organized with collections
Save and categorize content based on your preferences.
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 2026-02-26 UTC.
[null,null,["Last updated 2026-02-26 UTC."],[],[]]