Hi AF, If you need examples of the XML for specific requests, please either:
a. Look at the WSDL for the service OR b. Run the example using one of the client libraries and look at the logs Due to the large number of services and options, we do not have sample XML for every type of request and response. Instead, we provide the client libraries so that users don't have to concern themselves with the details of the SOAP protocol. Thanks, Josh, AdWords API Team On Monday, May 18, 2015 at 9:17:53 AM UTC-4, Jagad MCC wrote: > > Hi Josh, > > Please simply give me an example of working xml SOAP request for > CustomerService and ManagedCustomerService. > > best regards, > AF > > On Saturday, May 16, 2015 at 1:43:23 AM UTC+7, Josh Radcliff (AdWords API > Team) wrote: >> >> Hi Jagad MCC, >> >> Simply changing the namespace will not suffice, since the *RequestHeader >> *still needs to be from the *mcm* namespace, while other elements are >> from the *cm* namespace. You'll need to use the WSDL for each service to >> find the proper namespace for each element (e.g., ManagedCustomerService >> wsdl >> <https://adwords.google.com/api/adwords/mcm/v201502/ManagedCustomerService?wsdl> >> ). >> >> Another, *far* easier option would be to use one of our client libraries >> <https://developers.google.com/adwords/api/docs/clientlibraries>. The >> client libraries save you from manually generating SOAP XML, so you won't >> have to deal with all of the minutiae of constructing messages and can >> simply focus on working with objects. >> >> Thanks, >> Josh, AdWords API Team >> >> On Friday, May 15, 2015 at 1:12:15 PM UTC-4, Jagad MCC wrote: >>> >>> Hi Josh, thankyou for response, >>> >>> I got this error when change https://adwords.google.com/api/adwords/ >>> *mcm*/v201502 to https://adwords.google.com/api/adwords/*cm*/v201502 >>> for the SOAP header elements. >>> >>> $ curl \ >>> > --header "Content-Type: application/soap+xml" \ >>> > --header "Authorization : Bearer Xxxx.xxxxxxxxxxxxxx_ >>> 1234567890abcdefghijklmnopqrstuvwxyz" \ >>> > --data @cs_get.wsdl \ >>> > https://adwords.google.com/api/adwords/mcm/v201502/CustomerService >>> result: >>> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >>> ><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Unmarshalling >>> > >>> Error: unexpected element (uri:" >>> https://adwords.google.com/api/adwords/cm/v201502", >>> local:"RequestHeader"). Expected elements are <{ >>> https://adwords.google.com/api/adwords/mcm/v201502}ApiExceptionFault> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}RequestHeader> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}ResponseHeader> >>> ;,<{https://adwords.google.com/api/adwords/mcm/v201502}get>,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}getResponse>,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutate>,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutateResponse> >>> </faultstring></soap:Fault></soap:Body></soap:Envelope> >>> >>> Same result for ManagedCustomerService : >>> $ curl \ >>> > --header "Content-Type: application/soap+xml" \ >>> > --header "Authorization : Bearer Xxxx.xxxxxxxxxxxxxx_ >>> 1234567890abcdefghijklmnopqrstuvwxyz" \ >>> > --data @mcs_get.wsdl \ >>> > https:// >>> adwords.google.com/api/adwords/mcm/v201502/ManagedCustomerService >>> result: >>> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" >>> ><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Unmarshalling >>> > >>> Error: unexpected element (uri:" >>> https://adwords.google.com/api/adwords/cm/v201502", >>> local:"RequestHeader"). Expected elements are <{ >>> https://adwords.google.com/api/adwords/mcm/v201502}ApiExceptionFault> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}RequestHeader> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}ResponseHeader> >>> ;,<{https://adwords.google.com/api/adwords/mcm/v201502}get>,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}getPendingInvitations> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}getPendingInvitationsResponse> >>> ;,<{https://adwords.google.com/api/adwords/mcm/v201502}getResponse> >>> ;,<{https://adwords.google.com/api/adwords/mcm/v201502}mutate> >>> ;,<{https://adwords.google.com/api/adwords/mcm/v201502}mutateLabel> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutateLabelResponse> >>> ;,<{https://adwords.google.com/api/adwords/mcm/v201502}mutateLink> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutateLinkResponse> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutateManager> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutateManagerResponse> >>> ;,<{ >>> https://adwords.google.com/api/adwords/mcm/v201502}mutateResponse> >>> </faultstring></soap:Fault></soap:Body></soap:Envelope> >>> >>> Updated wsdl file attached. >>> >>> >>> On Friday, May 15, 2015 at 9:36:12 PM UTC+7, Josh Radcliff (AdWords API >>> Team) wrote: >>>> >>>> Hi AF, >>>> >>>> The reason that your requests for *ManagedCustomerService* and >>>> *CustomerService* are failing is that you are not using the correct >>>> XML namespace for the *clientCustomerId* and *developerToken* elements >>>> in those requests. You're specifying the namespace of: >>>> >>>> https://adwords.google.com/api/adwords/*mcm*/v201502 >>>> >>>> but those elements belong to namespace: >>>> >>>> https://adwords.google.com/api/adwords/*cm*/v201502 >>>> >>>> Please use the correct namespace for the SOAP header elements and let >>>> me know if you still encounter issues. >>>> >>>> Thanks, >>>> Josh, AdWords API Team >>>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d8ef2e64-1cc1-49d4-b4cd-f07f4be1bdd9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.