SOAP ошибка v201607

180 views
Skip to first unread message

zastrozhn...@gmail.com

unread,
Aug 12, 2016, 9:14:42 AM8/12/16
to AdWords API Forum
загружаю компанию весом примерно 30кб - все хорошо, обрабатывает, все работает.
если делаю запрос на компанию весом 300-400кб  -выдают ошибку


Что я сделал для решения проблемы: 

1) зашел через браузер по ссылкам - ок
2) попробовал получить через php file_get_content - ок
3) посмотрел настройки php.ini 
    
OpenSSL supportenabled
OpenSSL Library VersionOpenSSL 1.0.1f 6 Jan 2014

Soap Clientenabled
Soap Serverenabled

DirectiveLocal ValueMaster Value
soap.wsdl_cache11
soap.wsdl_cache_dir/tmp/tmp
soap.wsdl_cache_enabled11
soap.wsdl_cache_limit55
soap.wsdl_cache_ttl8640086400
cURL supportenabled
cURL Information7.35.0


Что в настройках по поводу кеширования и размеров запроса :
php.ini
 это соап \ пробывал кеш  = 1 

extension=php_soap.dll
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=0

; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"


еще может это... default_socket_timeout = 60

Anthony Madrigal

unread,
Aug 12, 2016, 2:37:07 PM8/12/16
to AdWords API Forum
Hi,

Sorry but I can only respond in English. Please make sure that your server environment and PHP version is up to date. Could you also see if you are able to access the URL through either cURL or wget? 

If not, could you please send the response via reply privately to author?

Thanks,
Anthony
AdWords API Team

zastrozhn...@gmail.com

unread,
Aug 15, 2016, 5:38:16 AM8/15/16
to AdWords API Forum
Verion php : 5.4  ; this address is available with "curl". The problem is that it downloads and makes up the small companies well, but if we got more than 30 words it fails.  What do your mean wthis "reply privately to author "?

пятница, 12 августа 2016 г., 21:37:07 UTC+3 пользователь Anthony Madrigal написал:

zastrozhn...@gmail.com

unread,
Aug 15, 2016, 5:58:12 AM8/15/16
to AdWords API Forum

PHP Version 5.5.9-1ubuntu4.14

but problem still exist
пятница, 12 августа 2016 г., 21:37:07 UTC+3 пользователь Anthony Madrigal написал:
Hi,

Josh Radcliff (AdWords API Team)

unread,
Aug 15, 2016, 2:19:01 PM8/15/16
to AdWords API Forum
Hi,

Have you tried enabling WSDL caching to the reduce the number of WSDL requests from your app?

If you are using our client library, you can enable caching by setting WSDL_CACHE in your settings.ini file. Please see the comments in the sample settings.ini file on github.

Thanks,
Josh, AdWords API Team

zastrozhn...@gmail.com

unread,
Aug 16, 2016, 3:46:29 AM8/16/16
to AdWords API Forum
Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty string supplied as input in /var/www/html/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line251

Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty string supplied as input in /var/www/html/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line348

Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty string supplied as input in /var/www/html/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line366
An error has occurred: Could not connect to host


chace 1 ; compression : 9
If company consist of 500 words , we get this error

понедельник, 15 августа 2016 г., 21:19:01 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:

zastrozhn...@gmail.com

unread,
Aug 16, 2016, 6:45:54 AM8/16/16
to AdWords API Forum
Please respond ASAP...


понедельник, 15 августа 2016 г., 21:19:01 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:
Hi,

Josh Radcliff (AdWords API Team)

unread,
Aug 16, 2016, 8:15:55 AM8/16/16
to AdWords API Forum
Hi,

I didn't see in your response if you have configured WSDL caching using the settings I mentioned. Could you please let me know if you've done that step?

Thanks,
Josh, AdWords API Team

zastrozhn...@gmail.com

unread,
Aug 16, 2016, 9:06:12 AM8/16/16
to AdWords API Forum
; Enable/disable gzip compression on SOAP requests and responses.
COMPRESSION = 1

; The level of gzip compression to use, from 1 to 9. The higher the level the
; greater the compression and time needed to perform the compression. The
; recommended and default value is 1.
COMPRESSION_LEVEL = 9

; The type of WSDL caching to use. The possible values are 0 (none), 1 (disk),
; 2 (memory), or 3 (disk and memory). The default value is 0.
WSDL_CACHE = 1

вторник, 16 августа 2016 г., 15:15:55 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:

Josh Radcliff (AdWords API Team)

unread,
Aug 16, 2016, 1:46:38 PM8/16/16
to AdWords API Forum
Hi,

When you mentioned the 30KB versus 300KB-400KB, were you referring to the size of an individual request, or are you submitting a high volume of AdGroupCriterionService.mutate requests in succession?

If this is happening for a large individual request, could you let me know if the request always fails, or does it succeed if you wait and retry?

If you are submitting a high volume of AdGroupCriterionService.mutate requests in succession, then you might try combining multiple operations in each request (but make sure you stay at or below the maximum of 5,000 operations per request).

Thanks,
Josh, AdWords API Team

zastrozhn...@gmail.com

unread,
Aug 17, 2016, 4:18:55 AM8/17/16
to AdWords API Forum
Now service is success in processing high volume of request in amount more then 1000, but in situation with 4500 words respond false 
the weight of company is 8,7 mb

Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty string supplied as input in /var/www/html/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line251

Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty string supplied as input in /var/www/html/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line348

Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty string supplied as input in /var/www/html/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line366
An error has occurred: Could not connect to host
вторник, 16 августа 2016 г., 20:46:38 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:

Thanet Knack Praneenararat (AdWords API Team)

unread,
Aug 17, 2016, 5:14:48 AM8/17/16
to AdWords API Forum
Hello,
 
Thanks for more information but I'm not quite sure I understand you correctly.
What does you mean by "the weight of company is 8,7 mb"?

Could you please answer Josh's questions as well?
When you mentioned the 30KB versus 300KB-400KB, were you referring to the size of an individual request, or are you submitting a high volume of AdGroupCriterionService.mutate requests in succession?
If this is happening for a large individual request, could you let me know if the request always fails, or does it succeed if you wait and retry?
 
And have you tried configure your network connection timeout, if possible?

Best,
Thanet, AdWords API Team
Message has been deleted

zastrozhn...@gmail.com

unread,
Aug 17, 2016, 6:27:34 AM8/17/16
to AdWords API Forum
1) i mean that company weights 8.7 mb in exel file when your dowload it with google adwords editor.
2) i don`t actually understand what are your speaking   in here
 "were you referring to the size of an individual request, or are you submitting a high volume of AdGroupCriterionService.mutate requests in succession?
If this is happening for a large individual request, could you let me know if the request always fails, or does it succeed if you wait and retry?"

Here is the log error :


[Aug 17 2016 06:11:16.000000 - ERROR]

<?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/v201607">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>***********</ns1:clientCustomerId>
<ns1:developerToken>**********</ns1:developerToken>
<ns1:userAgent>AwApi-PHP/EXPERIMENTAL, Common-PHP/EXPERIMENTAL, PHP/5.4.37-1+deb.sury.org~precise+1 (AwApi-PHP/10.1.0, Common-PHP/10.1.0, PHP/5.5.9-1ubuntu4.14)</ns1:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get>
<ns1:serviceSelector>
<ns1:fields>Id</ns1:fields>
<ns1:fields>CriteriaType</ns1:fields>
<ns1:fields>KeywordMatchType</ns1:fields>
<ns1:fields>KeywordText</ns1:fields>
<ns1:predicates>
<ns1:field>AdGroupId</ns1:field>
<ns1:operator>IN</ns1:operator>
<ns1:values>31229912069</ns1:values>
</ns1:predicates>
<ns1:predicates>
<ns1:field>CriterionUse</ns1:field>
<ns1:operator>IN</ns1:operator>
<ns1:values>BIDDABLE</ns1:values>
</ns1:predicates>
<ns1:predicates>
<ns1:field>CriteriaType</ns1:field>
<ns1:operator>IN</ns1:operator>
<ns1:values>KEYWORD</ns1:values>
</ns1:predicates>
<ns1:ordering>
<ns1:field>KeywordText</ns1:field>
<ns1:sortOrder>ASCENDING</ns1:sortOrder>
</ns1:ordering>
<ns1:paging>
<ns1:startIndex>0</ns1:startIndex>
<ns1:numberResults>500</ns1:numberResults>
</ns1:paging>
</ns1:serviceSelector>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

среда, 17 августа 2016 г., 12:14:48 UTC+3 пользователь Thanet Knack Praneenararat (AdWords API Team) написал:

zastrozhn...@gmail.com

unread,
Aug 17, 2016, 6:28:41 AM8/17/16
to AdWords API Forum
and request log
last
[Aug 17 2016 06:11:06.000000 - INFO] effectiveUser=526-234-5634 service=AdGroupCriterionService method=get operators={IN: 3} responseTime=151 requestId=00053a41ab1abdd90a379c4370019d6b operations=1 units= server=adwords.google.com isFault=false faultMessage=null
[Aug 17 2016 06:11:16.000000 - ERROR] effectiveUser=526-234-5634 service=AdGroupCriterionService method=get operators={IN: 3} responseTime=null requestId=null operations=null units=null server= isFault=true faultMessage=Could not connect to host

среда, 17 августа 2016 г., 12:14:48 UTC+3 пользователь Thanet Knack Praneenararat (AdWords API Team) написал:
Hello,

Thanet Knack Praneenararat (AdWords API Team)

unread,
Aug 17, 2016, 11:26:05 PM8/17/16
to AdWords API Forum
Hi,

1) i mean that company weights 8.7 mb in exel file when your dowload it with google adwords editor.
When you refer to "it", what is that?
I'm not quite sure what your "company weights" means.
What did you do in Google AdWords Editor? Our team doesn't support that product, but I'll try to understand what you're trying to do as much as possible.

 "were you referring to the size of an individual request, or are you submitting a high volume of AdGroupCriterionService.mutate requests in succession?
If this is happening for a large individual request, could you let me know if the request always fails, or does it succeed if you wait and retry?"
Josh meant to ask the following questions:
  1. When you mentioned the 30KB versus 300KB-400KB, did you mean one request or the total size of many requests?
  2. Do you submit request with large operations when you face with this error? 
  3. Or do you submit many small requests one by one?
  4. Do large requests always fail?
  5. If (3) is true, have you tried waiting and retry later? Does it help?
And my question was "have you tried configure your network connection timeout, if possible?"

Could you answer the above questions one by one please?
Thanks so much for your logs, but that is not enough if we don't understand other circumstances too.

Best,
Thanet, AdWords API Team

zastrozhn...@gmail.com

unread,
Aug 18, 2016, 3:46:49 AM8/18/16
to AdWords API Forum
Hello!
1) I meant company under "it". When we export this company from Google Editor its volume is  300kb.
Under company weights  i meant it's volume. 
We use Google Editor , in this case to see the company volume.

Answering the Josh questions:
1)  I meant the total size of many requests.
2) In my oppinion, there are  many small requests one by one. But I wonder, what is large and small operations in your oppinion, to understand and communicate correct? Write, please
4) Yes.
5) Yes, i had. I noticed , when company is above 1400 words it helps ( to restart the proccess ) ,but one of the ten cases.

Yes i tried to configure my network connection timeout. The max option is 60 sec now.
 
I  submit request with large operations when I'm facing with this error (when company consists of more then 900 words).
четверг, 18 августа 2016 г., 6:26:05 UTC+3 пользователь Thanet Knack Praneenararat (AdWords API Team) написал:

Thanet Knack Praneenararat (AdWords API Team)

unread,
Aug 22, 2016, 7:36:34 AM8/22/16
to AdWords API Forum
Hello,

2) In my oppinion, there are  many small requests one by one. But I wonder, what is large and small operations in your oppinion, to understand and communicate correct? Write, please
Right, actually, there are no fixed definitions of what are large and small.
I believe we asked those questions just to get an idea if the larger size of the requests has an effect on this issue or not.
If you submit a request to just add a few campaigns, or get, says, a hundred keyword, then I think we can say they're small requests.

I've looked up the latest request you posted above, and it seems the result was returned from API server already.
It's highly likely that there are some connection issues occurring between your client application and our servers, which seems not easy to debug and resolve.

I'm sorry for your inconvenience, but for now, if retrying does help, the best way would be doing wait-and-retry, as Josh has mentioned before.

If I get more information I will keep you posted.

Best,
Thanet, AdWords API Team 

Reply all
Reply to author
Forward
0 new messages