Error with AdsSoapClient

36 views
Skip to first unread message

Назар Гойда

unread,
Aug 9, 2018, 5:14:44 AM8/9/18
to AdWords API and Google Ads API Forum
Hi,, i update lib for 201710 to 201806 and get error like this:
file:"C:\OpenServer\domains\stat.local.ua\CoreSystem\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php"
line
:153
message
:"Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element ns1:searchParameters. "
type
:"SoapFault"

I call TargetingIdeaService. Pls help me to resolve this problem;
Version PHP 5.6

on TargetingIdeaSelector i have this


object(Google\AdsApi\AdWords\v201806\o\TargetingIdeaSelector)#2306 (7) {
 
["searchParameters":protected]=>
  array
(450) {
   
[0]=>
   
string(60) "seo продвижение интернет магазина"
   
[1]=>
   
string(26) "web продвижение"
   
[2]=>
   
string(37) "web продвижение сайта"
   
[3]=>
   
string(58) "web продвижение сайтов раскрутка"
   
[4]=>
   
string(22) "web раскрутка"
   
[5]=>
   
string(40) "yandex продвижение сайта"
   
[6]=>
   
string(36) "yandex раскрутка сайта"
   
[7]=>
   
string(44) "бизнес раскрутка сайтов"
 
}

 
["ideaType":protected]=>
 
string(7) "KEYWORD"
 
["requestType":protected]=>
 
string(5) "STATS"
 
["requestedAttributeTypes":protected]=>
  array
(2) {
   
[0]=>
   
string(12) "KEYWORD_TEXT"
   
[1]=>
   
string(13) "SEARCH_VOLUME"
 
}
 
["paging":protected]=>
 
object(Google\AdsApi\AdWords\v201806\cm\Paging)#2305 (2) {
   
["startIndex":protected]=>
   
int(0)
   
["numberResults":protected]=>
   
int(500)
 
}
 
["localeCode":protected]=>
  NULL
 
["currencyCode":protected]=>
  NULL
}


soap.log
Message has been deleted

Bharani Cherukuri (AdWords API Team)

unread,
Aug 9, 2018, 1:59:38 PM8/9/18
to AdWords API and Google Ads API Forum
Hello, 

Based on the SOAP logs shared, there are quite a few empty search parameters in your request. The error usually occurs when the searchParameter value is getting null in your code. Please check this related issue on Github. If you're still having an issue with this, we recommend that you post your concern on the Github issue tracker so the library owners will be able to take a look. 

Thanks,
Bharani, AdWords API Team

Назар Гойда

unread,
Aug 10, 2018, 3:20:53 AM8/10/18
to AdWords API and Google Ads API Forum
ok,thanks.  I'm gonna write there

четверг, 9 августа 2018 г., 20:59:38 UTC+3 пользователь Bharani Cherukuri (AdWords API Team) написал:
Reply all
Reply to author
Forward
0 new messages