Good afternoon! I am trying to make a soap request to ManagerCustomerService.get () I made this request body <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v20="https://adwords.google.com/api/adwords/mcm/v201809" xmlns:v201= "https://adwords.google.com/api/adwords/cm/v201809"> <soapenv:Header> <v20:RequestHeader> <!--Optional:--> <v201:clientCustomerId>787-656-2723</v201:clientCustomerId> <!--Optional:--> <v201:developerToken>heq7wgGLuIxY2FdBvAV7WA</v201:developerToken> <!--Optional:--> <v201:userAgent>Advance</v201:userAgent> <!--Optional:--> <v201:validateOnly>?</v201:validateOnly> <!--Optional:--> <v201:partialFailure>?</v201:partialFailure> </v20:RequestHeader> </soapenv:Header> <soapenv:Body> <v20:get> <!--Optional:--> <v20:serviceSelector> <!--Zero or more repetitions:--> <v201:fields>Name</v201:fields> <!--Zero or more repetitions:--> <v201:predicates> <!--Optional:--> <v201:field></v201:field> <!--Optional:--> <v201:operator></v201:operator> <!--Zero or more repetitions:--> <v201:values>name</v201:values> </v201:predicates> <!--Optional:--> <v201:dateRange> <!--Optional:--> <v201:min>20190101</v201:min> <!--Optional:--> <v201:max>20200204</v201:max> </v201:dateRange> <!--Zero or more repetitions:--> <v201:ordering> <!--Optional:--> <v201:field>?</v201:field> <!--Optional:--> <v201:sortOrder>?</v201:sortOrder> </v201:ordering> <!--Optional:--> <v201:paging> <!--Optional:--> <v201:startIndex>0</v201:startIndex> <!--Optional:--> <v201:numberResults>0</v201:numberResults> </v201:paging> </v20:serviceSelector> </v20:get> </soapenv:Body> </soapenv:Envelope>
I get the following exceptions <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xmlns="https://adwords.google.com/api/adwords/mcm/v201809"> <ns2:requestId>00059dbfa7056e540a859fc36f005cb8</ns2:requestId> <ns2:serviceName>ManagedCustomerService</ns2:serviceName> <ns2:methodName>get</ns2:methodName> <ns2:operations>1</ns2:operations> <ns2:responseTime>164</ns2:responseTime> </ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>[SelectorError.INVALID_PREDICATE_FIELD_NAME @ serviceSelector, SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'?', RequiredError.REQUIRED @ serviceSelector.predicates[0].operator]</faultstring> <detail> <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/mcm/v201809" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"> <ns2:message>[SelectorError.INVALID_PREDICATE_FIELD_NAME @ serviceSelector, SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'?', RequiredError.REQUIRED @ serviceSelector.predicates[0].operator]</ns2:message> <ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type> <ns2:errors xsi:type="ns2:SelectorError" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:fieldPath>serviceSelector</ns2:fieldPath> <ns2:fieldPathElements> <ns2:field>serviceSelector</ns2:field> </ns2:fieldPathElements> <ns2:trigger/> <ns2:errorString>SelectorError.INVALID_PREDICATE_FIELD_NAME</ns2:errorString> <ns2:ApiError.Type>SelectorError</ns2:ApiError.Type> <ns2:reason>INVALID_PREDICATE_FIELD_NAME</ns2:reason> </ns2:errors> <ns2:errors xsi:type="ns2:SelectorError" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:fieldPath>serviceSelector</ns2:fieldPath> <ns2:fieldPathElements> <ns2:field>serviceSelector</ns2:field> </ns2:fieldPathElements> <ns2:trigger>?</ns2:trigger> <ns2:errorString>SelectorError.INVALID_FIELD_NAME</ns2:errorString> <ns2:ApiError.Type>SelectorError</ns2:ApiError.Type> <ns2:reason>INVALID_FIELD_NAME</ns2:reason> </ns2:errors> <ns2:errors xsi:type="ns2:RequiredError" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns2:fieldPath>serviceSelector.predicates[0].operator</ns2:fieldPath> <ns2:fieldPathElements> <ns2:field>serviceSelector</ns2:field> </ns2:fieldPathElements> <ns2:fieldPathElements> <ns2:field>predicates</ns2:field> <ns2:index>0</ns2:index> </ns2:fieldPathElements> <ns2:fieldPathElements> <ns2:field>operator</ns2:field> </ns2:fieldPathElements> <ns2:trigger/> <ns2:errorString>RequiredError.REQUIRED</ns2:errorString> <ns2:ApiError.Type>RequiredError</ns2:ApiError.Type> <ns2:reason>REQUIRED</ns2:reason> </ns2:errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> I understand that the exception occurred due to the fact that the selection fields were not correctly entered. I tried to substitute them in various ways, but nothing comes of it Help me, how can I put a value for a sample? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8b775a40-07f4-4b58-b921-dc0e5d5683fe%40googlegroups.com.
