Google Ads API Slow Load in Prod

303 views
Skip to first unread message

Rasmus Arvidsson

unread,
Nov 17, 2022, 2:27:23 AM11/17/22
to Google Ads API and AdWords API Forum
I experience 10x slower load times on production, compared to on localhost. I can't find the fault, but I suspect it's because of GoogleAdsClient creation taking a while. 

Using Google ads api on a Node.js environment via Next.js and Vercel. Google Ads API v12. Npm package "google-ads-api" is used for creating the client (v12).

How can I fix this? It takes up to 60 seconds to load ads in production for me right now. While it takes only a few seconds in local.

Thanks in advance!




Google Ads API Forum Advisor

unread,
Nov 17, 2022, 4:45:01 AM11/17/22
to rasmus.a...@gmail.com, adwor...@googlegroups.com

Hi Rasmus,
 

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

I understand that you are using Node js to call Google Ads API. However, Google Ads API supported client libraries don't include Node.js, you can check this link for the supported client library in Google Ads API. However, have you tried to use the direct REST API for the Google Ads API to send an api call? If not, then you may use REST API and see if it works on your end without being slow request processing.

 

Regards,

Google Logo
Darwin
Google Ads API Team
 


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