AdWords API timeout issue while fetching campaigns/Ads

370 views
Skip to first unread message

Deepak Rane

unread,
May 18, 2021, 2:16:20 AM5/18/21
to AdWords API and Google Ads API Forum
Hello,

We are facing frequent timeout issues while fetching campaigns, Campaign Criteria, AdGroups, Adgroup criteria or Ads using Adword APIs. We are using 'adwords-axis:4.8.0' lib

for example: for fetching campaigns we use, CampaignServiceInterface get() method and retrieve campaigns as CampaignPage. We have deployed our code on AWS and whenever campaigns are fetched, the API call gets timed out after 130 seconds. We have not specified such timeout anywhere. Even I know that AdWords default timeout is 20 mins. Not sure why this gets time out after 130 seconds. And this issue is occurring from almost 1 month now.

when I run this on my local machine then sometimes I get the response in few seconds but sometimes it times out after 20 minutes. Can you please help us to explain why these APIs take this much time? 

We have tried paging option as well but no luck. The first call itself gets time out.

Can you please suggest how can we resolve this issue? This is having big impact on our production environment. 

Deepak Rane

unread,
May 28, 2021, 9:46:38 AM5/28/21
to AdWords API and Google Ads API Forum
Hello,
Any updates on this?

AdWords API and Google Ads API Forum

unread,
Jun 3, 2021, 3:29:57 PM6/3/21
to AdWords API and Google Ads API Forum

Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/sTQVmfPpeJc/m/rYnt7PD6AgAJ) from the forum as it wasn't routed to our support queue.


Cheers,

Aryeh Baker

Google Ads API Team

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2021, 10:36:56 AM6/4/21
to adwor...@googlegroups.com

Hi,

Thank you for reaching out. There was a system issue on our end so we were unable to respond to you earlier. Usually the get request uses more resources and takes longer. Please try to run reports on the entities to query the data. 

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I03f2:ref

Deepak Rane

unread,
Jun 9, 2021, 2:25:19 AM6/9/21
to AdWords API and Google Ads API Forum
Hello,

Thank you for your reply. can you please elaborate more on your solution? What do you mean by running report on entities? I am not trying to run report. We are trying to fetch campaign/AdGroup data here

Google Ads API Forum Advisor

unread,
Jun 9, 2021, 9:16:53 PM6/9/21
to deepa...@measured.com, adwor...@googlegroups.com
Hi Deepak,

I work with Xiaoming and let me provide support to you concern.

Allow me to elaborate the suggestion provided by my colleague. The timeout error appears to be occurring when the API is processing or downloading large volume of data. With this, I would suggest filtering the API to download a subset of data only and to make the processing of the API faster. To give you an example, if you are using CampaignService.get() to download campaign's information, then I would suggest filtering some of the fields like id, name and other fields.

Also, you may try to implement some of the best practices discussed on this document to optimize the API processing.

If the issue persists after applying the provided suggestions, please let me know and provide the complete SOAP request and response logs to further investigate. You can provide it via Reply privately to author option.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I03f2:ref

Deepak Rane

unread,
Jun 17, 2021, 6:02:26 AM6/17/21
to AdWords API and Google Ads API Forum
we are facing an issue with Google apis, the odd thing seems that it happens only when we are on our AWS VPN and reaching out to google using our NAT outgoing IP. We tested this by creating a public AWS machine (worked), creating a private machine in AWS VPC/subnet and different IP (worked), but a private machine with our regular outgoing IP is not working. 
What happens is api calls to google mostly time out; and are super slow when they work.
So, potentially our outgoing IP has been flagged by Google for some reason. Can you please help.

Google Ads API Forum Advisor

unread,
Jun 20, 2021, 11:09:23 PM6/20/21
to deepa...@measured.com, adwor...@googlegroups.com
Hi Deepak,

You mentioned deploying your code in AWS "We have deployed our code on AWS", could you confirm if you are experiencing the same timeout issue when using the AdWords API directly? I asked because the issue may not be of API origin if there are middle ware or third party products involved. 

Could you confirm this by sending to our team your customer ID and the complete SOAP request and response logs with the requestId generated when you used the API directly? If you haven't yet, logging can be enabled by checking out the steps in the Github documentation of your chosen client library.

Please also share any logs generated when you run your code or the API through AWS as all these details will help our team to more accurately troubleshoot the issue.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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