API hang Python client

156 views
Skip to first unread message

Lộc Đoàn

unread,
Mar 23, 2023, 3:43:55 AM3/23/23
to Google Ads API and AdWords API Forum
Hi google ads team,

My team has just upgraded Google Ads API to v13. I made a lot of calls to the API, but sometimes, some call got hang and make my program just hang there.

The latest log for the hang run look like this:
2023-03-22 04:14:47,240: MainThread google.ads.googleads.client: Request made: ClientCustomerId: 3404248900, Host: googleads.googleapis.com, Method: /google.ads.googleads.v13.services.GoogleAdsService/SearchStream, RequestId: yPQd-OCq90OYFqB9fVLkdA, IsFault: False, FaultMessage: None

My program use Asyncio to make API call, so some other RequestIds that are close to this call are: U7_6c6rnERmRWZ75dRkWCA , FB23-OtXK_PwmWPemH3B2A , H354Z0YtfA0X7z8kBMw7Bw , 6CHzu5lNiTDEFc5EUXpJ0A , wSu8Rg6Gnd0bQUj6rFnk-w , aDHi2GZxNK7sJXwu_OHV6g , sJWE0JIip72iGOceTXhhTA , R1tCMEw2QjwWs9UN_R9zMg

There was no response from the hang call. Just hope these logs and RequestIds can give you some clue of what's going on.

Any help is welcome.

Google Ads API Forum Advisor

unread,
Mar 23, 2023, 10:39:20 AM3/23/23
to locdoan...@gmail.com, adwor...@googlegroups.com

Hello,

I'm from the Google Ads API team.

In order for us to further investigate, can you please provide the complete request and response logs with request ID? You may send these to us via Reply privately to author option. Here's our guide on how to configure logging for our Python client library. Also, as per our Best practices guide, it is highly recommended to limit concurrent tasks.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2k2BgN:ref

Lộc Đoàn

unread,
Mar 29, 2023, 4:10:45 AM3/29/23
to Google Ads API and AdWords API Forum
I have privately sent you the info. Any following up information?

Google Ads API Forum Advisor

unread,
Mar 29, 2023, 6:24:36 AM3/29/23
to locdoan...@gmail.com, adwor...@googlegroups.com
Hi Lộc,

Thank you for the reply.

I can see that we already have a response to your private email. For this, I would suggest continuing the discussion with that one email thread you sent, for better tracking of updates. However, allow me to reiterate the response from the other thread, and you can see it below:

"Regarding the RESOURCE_EXHAUSTED error, kindly note that this means that a system frequency limit has been exceeded. Its common cause is when sending too many requests in a short period of time. That said, I would recommend setting up short delays between requests or combining more operations in fewer requests to avoid the said error.

In addition, you may see our API Limits and Quotas documentation for more information about limits and quotas in the Google Ads API. Please see the Best practices guide to optimize the efficiency and performance and If you also want to know more about another limit in Google Ads API, then, you may refer to this Rate limit and System Limits documentation.

Let me know if this clarifies your concern."


Best regards,
Reply all
Reply to author
Forward
0 new messages