Cannot construct an instance of com.google.ads.api.services.datax.userlists.LogicalUserListOperand

15 views
Skip to first unread message

18824...@163.com

unread,
Dec 26, 2017, 6:42:09 AM12/26/17
to AdWords API Forum
Hi all,
       I have a problem when I try to create LogicalUserList. Please help me correct the code. 
<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v1="https://adwords.google.com/api/adwords/rm/v201702"
xmlns:v2="https://adwords.google.com/api/adwords/cm/v201702"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<x:Header>
<v1:RequestHeader>
<v2:clientCustomerId>xxx-xxx-xxx</v2:clientCustomerId>
<v2:developerToken>xxxxxxx</v2:developerToken>
<v2:userAgent>unknown</v2:userAgent>
<v2:validateOnly>false</v2:validateOnly>
<v2:partialFailure>false</v2:partialFailure>
</v1:RequestHeader>
</x:Header>
<x:Body>
<mutate xmlns="https://adwords.google.com/api/adwords/rm/v201702">
<v1:operations>
<v2:operator>ADD</v2:operator>
<operand xmlns:ns8="https://adwords.google.com/api/adwords/rm/v201702"
xsi:type="ns8:LogicalUserList">
<v1:name>
test name</v1:name>
<
v1:rules>
<
v1:operator>AND</v1:operator>
<
v1:ruleOperands>
<
v1:id >510671287</v1:id>
</
v1:ruleOperands>
<
v1:ruleOperands>
<
v1:id>513226703</v1:id>
</
v1:ruleOperands>
</
v1:rules>
</
operand>
</
v1:operations>
</
mutate>
</
x:Body>

Bharani Cherukuri (AdWords API Team)

unread,
Dec 27, 2017, 1:31:26 PM12/27/17
to AdWords API Forum
Hello, 

The issue might be with the ruleOperandsThis attribute should be a list of LogicalUserListOperands, each of which in turn has a child UserList element. Could you make these changes and try the request again? If you continue to have an issue with this, could you share the complete SOAP request and response logs, so I can take a look at the error you're receiving? Please sue Reply privately to author option to share the details. 

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