The API is too slow on AWS Lambda

127 views
Skip to first unread message

Piotr Popławski

unread,
Jan 4, 2023, 4:35:19 AM1/4/23
to Google Ads API and AdWords API Forum
Hi,

I've been integrating the application with the googleAds API and the problem is that the first googleAds request takes quite long (~15 s). I'm using the npm package 'google-ads-api' to communicate with the API.

Request: SELECT conversion_action.name FROM conversion_action WHERE conversion_action.status IN ('ENABLED').

The request is called by AWS Lambda and the interesting thing is that as long as lambda is still running, the second request that looks exactly the same takes ~2s. I've tried to increase the RAM and update the node version on Lambda but it didn't help.

However, when I run the script locally, it takes ~2s as well.

I also checked in the logs that the issue is not related to cold lambda starts. Do you have any other ideas of why it takes so long or what might be the issue?

Thanks in advance!

Google Ads API Forum Advisor

unread,
Jan 4, 2023, 10:24:23 AM1/4/23
to adwor...@googlegroups.com

Hi,


Thanks for reaching out to the Google Ads API team. I hope you are doing well today.
 

With regards to your concern, could you please confirm if you encountered an issue with the API? If yes, then could you provide the complete request and response logs with request ID and request header generated on your end? If not, could you please provide more details or a full screenshot where you are referring to?


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

Regards,

Google Logo
Darwin
Google Ads API Team
 


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