extremely slow response, 130 seconds

12 views
Skip to first unread message

Martijn Scheffer

unread,
Nov 21, 2018, 6:11:42 AM11/21/18
to AdWords API and Google Ads API Forum

is this forum moderated ?

i can't find my original question, i had some extra information.

im making a get request with the CampaignService
like this:
$campaignService = $adWordsServices->get($session, CampaignService::class);

// Create selector.
$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);

this is the soap request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
    <SOAP-ENV:Header>
        <ns1:RequestHeader>
            <ns1:clientCustomerId>123-123-1234</ns1:clientCustomerId>
            <ns1:developerToken>my token</ns1:developerToken>
            <ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/36.0.0, PHP/7.1.23)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <ns1:get>
            <ns1:serviceSelector>
                <ns1:fields>Id</ns1:fields>
                <ns1:fields>Name</ns1:fields>
                <ns1:paging>
                    <ns1:startIndex>0</ns1:startIndex>
                    <ns1:numberResults>500</ns1:numberResults>
                </ns1:paging>
            </ns1:serviceSelector>
        </ns1:get>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

----
every attempts takes 130 seconds, everything worked fine until last sunday, i didn't make changes to the code, or campaigns
Reply all
Reply to author
Forward
0 new messages