OK that seemed to work for the single time I ran it locally, but I can't 
insert those lines into the Composer distribution for deployment on Heroku. 
Heroku pulls the library from Composer during build/deploy automatically. 
The problem is also intermittent so I can't tell if it is fixed for good. I 
replied privately to your previous message.


On Tuesday, August 30, 2016 at 3:59:17 AM UTC-4, Thanet Knack Praneenararat 
(AdWords API Team) wrote:
>
> Hi Chloe,
>
> In SoapClientFactory, could you try adding the following lines anywhere in 
> the GenerateServiceClient 
> <https://github.com/googleads/googleads-php-lib/blob/master/src/Google/Api/Ads/Common/Lib/SoapClientFactory.php#L99>
>  
> method?
> $contextOptions['http']['protocol_version'] = '1.0';
> $contextOptions['http']['header'] = 'Connection: Close';
>
> Could you try adding that and see if the situation is getting better 
> please?
>
> Thanks,
> Thanet, AdWords API Team
>
> On Tuesday, August 30, 2016 at 2:50:27 PM UTC+7, Thanet Knack 
> Praneenararat (AdWords API Team) wrote:
>>
>> Hi Chloe,
>>
>> Sorry if my words weren't clear. 
>> Of course, we're trying to help you but as we're not expert in Heroku and 
>> we can't try many things on your account directly, it's difficult for me to 
>> help you resolve the issue very quickly.
>>
>> Could you please give me your *requestId* (if you can get it from the 
>> log) or your clientCustomerId via *Reply privately to author* please?
>> I need to use that to double check if your request's response has been 
>> sent out from our server.
>>
>> Thank you so much in advance.
>>
>> Best,
>> Thanet, AdWords API Team
>>
>> On Tuesday, August 30, 2016 at 6:30:03 AM UTC+7, Chloe wrote:
>>>
>>> Please contact GitHub to get them to fix their site. I still can't 
>>> comment. See the screenshot above.
>>>
>>> Just because I mention Heroku, you are using that as a red herring. 
>>> That's like me saying "the software is running on a Dell computer" and you 
>>> responding "oh Dell is out of our scope". 
>>>
>>> The errors are becoming more & more frequent now. I ran a request from 
>>> development against the production database and production AdWords to 
>>> collect a log file. It ran very, very slow. Here is the request info log:
>>>
>>> [Aug 28 2016 03:25:58.000000 - ERROR] effectiveUser=9999999999 
>>>> service=AdGroupCriterionService method=query operators={} 
>>>> responseTime=null 
>>>> requestId=null operations=null units=null server=adwords.google.com 
>>>> isFault=true faultMessage=Error Fetching http body, No Content-Length, 
>>>> connection closed or chunked data
>>>
>>>
>>> Here is the soap XML log:
>>>
>>> [Aug 28 2016 03:25:58.000000 - ERROR] POST 
>>>> /api/adwords/cm/v201605/AdGroupCriterionService HTTP/1.1
>>>> Host: adwords.google.com
>>>> Connection: Keep-Alive
>>>> User-Agent: PHP-SOAP/5.6.24, gzip
>>>> Accept-Encoding: gzip, deflate
>>>> Content-Encoding: gzip
>>>> Content-Type: text/xml; charset=utf-8
>>>> SOAPAction: ""
>>>> Content-Length: 434
>>>> Authorization: Bearer 
>>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <SOAP-ENV:Envelope xmlns:SOAP-ENV="
>>>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="
>>>> https://adwords.google.com/api/adwords/cm/v201605";>
>>>>   <SOAP-ENV:Header>
>>>>     <ns1:RequestHeader>
>>>>       <ns1:clientCustomerId>9999999</ns1:clientCustomerId>
>>>>       <ns1:developerToken>xxxxxxxxxxxxxxxxx</ns1:developerToken>
>>>>       <ns1:userAgent>ShopWiz (AwApi-PHP/10.0.0, Common-PHP/10.0.0, 
>>>> PHP/5.6.24)</ns1:userAgent>
>>>>     </ns1:RequestHeader>
>>>>   </SOAP-ENV:Header>
>>>>   <SOAP-ENV:Body>
>>>>     <ns1:query>
>>>>       <ns1:query>SELECT Id, KeywordText, KeywordMatchType, AdGroupId, 
>>>> Status, CpcBid where CriteriaType = KEYWORD and CampaignId = 423787137 
>>>> LIMIT 11000,1000</ns1:query>
>>>>     </ns1:query>
>>>>   </SOAP-ENV:Body>
>>>> </SOAP-ENV:Envelope>
>>>> HTTP/1.1 200 OK
>>>> Content-Type: text/xml; charset=UTF-8
>>>> Content-Encoding: gzip
>>>> Date: Sat, 27 Aug 2016 16:57:57 GMT
>>>> Expires: Sat, 27 Aug 2016 16:57:57 GMT
>>>> Cache-Control: private, max-age=0
>>>> X-Content-Type-Options: nosniff
>>>> X-Frame-Options: SAMEORIGIN
>>>> X-XSS-Protection: 1; mode=block
>>>> Server: GSE
>>>> Alt-Svc: clear
>>>> Transfer-Encoding: chunked
>>>
>>>
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2e1fadba-28bb-44ec-9c18-89f55a91c823%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Comp... Chloe
    • ... 'Michael Cloonan (AdWords API Team)' via AdWords API Forum
    • ... Chloe
      • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
        • ... Chloe
          • ... Chloe
          • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
            • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
              • ... Chloe

Reply via email to