Frequent DEADLINE_EXCEEDED Errors

14 views
Skip to first unread message

charles...@gmail.com

unread,
Mar 8, 2023, 9:15:28 AM3/8/23
to Google Ads API and AdWords API Forum
Hi, I'm using the Perl version of your standard libraries and in recent days I've been getting very frequent DEADLINE_EXCEEDED errors when running KeywordPlanIdeaService with just 20 keywords at a time (happens every 15-30 min). I'm limiting the request by language/geo constraints and I've never hit a rate limit issue. I've tried raising the timeout values to 2-5 minutes as per the advice given here: https://developers.google.com/google-ads/api/samples/set-custom-client-timeouts#perl

Unfortunately it keeps failing and halting and its very frustrating as I can't easily test my code if its been fixed until the next time it happens. According to the logs, it shows that the request too long to respond, but I can't really fix this on my end as it's on the API side. Any suggestions? 

Thank you

Google Ads API Forum Advisor

unread,
Mar 8, 2023, 1:07:27 PM3/8/23
to charles...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

Any suggestions? 
>> The DEADLINE_EXCEEDED error indicates that your request took longer than the deadline. Having said that, you may check this timeout documentation for the perl client library for more information on timeouts. Kindly note that as per the guide, you may set the timeout to 2 hours or more, but the API may still time out extremely long-running requests and return a DEADLINE_EXCEEDED error. 

Let me know how it goes on your end if this resolves your issue. If the error persists after trying the suggested solution, you may share to us the complete request and response logs with the request-id so we can check further. For the Perl client library, logging can be enabled by following this guide.

You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2jXIiS:ref
Reply all
Reply to author
Forward
0 new messages