CampaignService->get extremely slow (131 seconds)

27 views
Skip to first unread message

Martijn Scheffer

unread,
Nov 21, 2018, 6:11:41 AM11/21/18
to AdWords API and Google Ads API Forum
sunday evening, without changing a line of code, my calls sot CampaignService->get suddenly became incredibly slow
i have just 6 campaigns, that werent changed either.
every request takes between 130 and 132 seconds, no exceptions.

this is the code (copied from googles sample code):
   $campaignService = $adWordsServices->get($session, CampaignService::class);
   $selector = new Selector();
   $selector->setFields(['Id', 'Name']);
   $selector->setOrdering([new OrderBy('Name', SortOrder::DESCENDING)]);
   $selector->setPaging(new Paging(0, self::PAGE_LIMIT));
   $page = $campaignService->get($selector);

there is nothing wrong with my server, requests to other web services return in less than 100 ms

i tried other accounts, some without any campaigns, same 130 second wait

the response is valid, on my main account i get 6 names and id's, probably around 1K of XML
i isolated the code, im doing nothing else, just the code above (with the standard loop for paging
(but, it stalls for 130 seconds in the call to "get" so the paging code is irrelevant.

was adwords updated, this week-end ? that would be unusual.
im using version 36.0.0 (i think, thats the highest number in the chanelog.md file)
or is it v201802 ?

Bharani Cherukuri (AdWords API Team)

unread,
Nov 21, 2018, 11:52:38 AM11/21/18
to AdWords API and Google Ads API Forum
Hello Martijn, 

There are no issues currently that we are aware of. The PHP client library is on v38.0.0 with AdWords API v201809. It could be an intermittent issue. Could you try making the API call again and see if you're seeing the issue? Please share us the complete SOAP request and response logs along with the exact timestamp so I can take a look? You can refer to this guide on how to enable logging for the PHP client library. Please share the details privately via Reply privately to author option. 

Thanks,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages