Fixed by adding the type in operand.

<v20:operand xsi:type="v20:BasicUserList" >

For others reference.


On Thursday, January 2, 2020 at 1:05:34 PM UTC+5:30, Debashis Pradhan wrote:
>
>
> I am facing an issue while creating a customer audience list using Adwords 
> API. I get the response error as CONCRETE_TYPE_REQUIRED.
> According to the documentation, Concrete type of user list (logical v.s. 
> remarketing) is required for ADD and SET operations, but its not clear 
> where I have missed this.
>
> Any resolution or pointers on this error is appreciated.
>
> Below is Request and Response :
>
> SOAP Request:
>
> https://adwords.google.com/api/adwords/rm/v201809/AdwordsUserListService
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:v20="https://adwords.google.com/api/adwords/rm/v201809"; xmlns:v201="
> https://adwords.google.com/api/adwords/cm/v201809";>
>    <soapenv:Header>
>       <v20:RequestHeader>
>          <!--Optional:-->
>          <v201:clientCustomerId>xxx</v201:clientCustomerId>
>          <!--Optional:-->
>          <v201:developerToken>xxx</v201:developerToken>
>          <!--Optional:-->
>          <v201:userAgent>test:xxx:xxx</v201:userAgent>
>          <!--Optional:-->
>          <v201:validateOnly>false</v201:validateOnly>
>          <!--Optional:-->
>          <v201:partialFailure>false</v201:partialFailure>
>       </v20:RequestHeader>
>    </soapenv:Header>
>    <soapenv:Body>
>       <v20:mutate>
>          <!--Zero or more repetitions:-->
>          <v20:operations>
>             <!--Optional:-->
>             <v201:operator>ADD</v201:operator>
>             <!--Optional:-->
>             <v20:operand>
>                <!--Optional:-->
>                <v20:isReadOnly>false</v20:isReadOnly>
>                <!--Optional:-->
>                <v20:name>soap customers</v20:name>
>                <!--Optional:-->
>                <v20:description>uploaded using SOAP API</v20:description>
>                <!--Optional:-->
>                <v20:status>OPEN</v20:status>
>                <!--Optional:-->
>                <v20:integrationCode>1</v20:integrationCode>
>                <!--Optional:-->
>                <v20:accessReason>OWNED</v20:accessReason>
>                <!--Optional:-->
>               
>  <v20:accountUserListStatus>ACTIVE</v20:accountUserListStatus>
>                <!--Optional:-->
>                <v20:membershipLifeSpan>10000</v20:membershipLifeSpan>
>                <!--Optional:-->
>                <v20:listType>CRM_BASED</v20:listType>
>                <!--Optional:-->
>                <v20:isEligibleForSearch>true</v20:isEligibleForSearch>
>             </v20:operand>
>          </v20:operations>
>       </v20:mutate>
>    </soapenv:Body>
> </soapenv:Envelope>
>
> Response:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>    <soap:Header>
>       <ns2:ResponseHeader xmlns:ns2="
> https://adwords.google.com/api/adwords/rm/v201809"; xmlns="
> https://adwords.google.com/api/adwords/cm/v201809";>
>          <requestId>00059b233907e5740a7f1698b600713d</requestId>
>          <serviceName>AdwordsUserListService</serviceName>
>          <methodName>mutate</methodName>
>          <operations>1</operations>
>          <responseTime>184</responseTime>
>       </ns2:ResponseHeader>
>    </soap:Header>
>    <soap:Body>
>       <soap:Fault>
>          <faultcode>soap:Client</faultcode>
>          <faultstring>[UserListError.CONCRETE_TYPE_REQUIRED @ 
> operations[0].operand]</faultstring>
>          <detail>
>             <ns2:ApiExceptionFault xmlns="
> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:ns2="
> https://adwords.google.com/api/adwords/rm/v201809";>
>                <message>[UserListError.CONCRETE_TYPE_REQUIRED @ 
> operations[0].operand]</message>
>               
>  <ApplicationException.Type>ApiException</ApplicationException.Type>
>                <errors xsi:type="ns2:UserListError" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
>                   <fieldPath>operations[0].operand</fieldPath>
>                   <fieldPathElements>
>                      <field>operations</field>
>                      <index>0</index>
>                   </fieldPathElements>
>                   <fieldPathElements>
>                      <field>operand</field>
>                   </fieldPathElements>
>                   <trigger/>
>                   
> <errorString>UserListError.CONCRETE_TYPE_REQUIRED</errorString>
>                   <ApiError.Type>UserListError</ApiError.Type>
>                   <ns2:reason>CONCRETE_TYPE_REQUIRED</ns2:reason>
>                </errors>
>             </ns2:ApiExceptionFault>
>          </detail>
>       </soap:Fault>
>    </soap:Body>
> </soap:Envelope>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9b975b4c-27e1-4d2a-b151-d4baeb4cb6ec%40googlegroups.com.

Reply via email to