Managed Customer Service BAD_ID ERROR

292 views
Skip to first unread message

Emre Akkuş

unread,
Feb 18, 2015, 5:26:22 AM2/18/15
to adwor...@googlegroups.com
Hi,

I'm trying to link Account to Mcc Account. I'm using ManagedCustomer Service MutateLink method.
I think i'm doing everything right but i got an unknown Error.

I am sure that i give the correct Ids of Accounts.

Mcc Id to managerCustomerId
Acc Id to clientCustomerId


Please Help.

request:
   <soapenv:Header>
      <v20:RequestHeader>
         <!--Optional:-->
         <v201:clientCustomerId>********</v201:clientCustomerId>
         <!--Optional:-->
         <v201:developerToken>********</v201:developerToken>
         <!--Optional:-->
         <v201:userAgent>Test</v201:userAgent>
         <!--Optional:-->
         <v201:validateOnly>False</v201:validateOnly>
         <!--Optional:-->
         <v201:partialFailure>False</v201:partialFailure>
      </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:mutateLink>
         <!--Zero or more repetitions:-->
         <v20:operations>
            <!--Optional:-->
            <v201:operator>ADD</v201:operator>
            <v20:operand>
               <!--Optional:-->
               <v20:managerCustomerId>*****</v20:managerCustomerId>
               <!--Optional:-->
               <v20:clientCustomerId>*******</v20:clientCustomerId>
               <!--Optional:-->
               <v20:linkStatus>PENDING</v20:linkStatus>
               <!--Optional:-->
               <v20:pendingDescriptiveName>Test</v20:pendingDescriptiveName>
            </v20:operand>
         </v20:operations>
      </v20:mutateLink>
   </soapenv:Body>
</soapenv:Envelope>


response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header>
         <requestId>00050f5a192c40480adb218438001d62</requestId>
         <serviceName>ManagedCustomerService</serviceName>
         <methodName>mutateLink</methodName>
         <operations>1</operations>
         <responseTime>118</responseTime>
      </ns2:ResponseHeader>
   </soap:Header>
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>[ManagedCustomerServiceError.BAD_ID @ operations[0]]</faultstring>
         <detail>
               <message>[ManagedCustomerServiceError.BAD_ID @ operations[0]]</message>
               <ApplicationException.Type>ApiException</ApplicationException.Type>
               <errors xsi:type="ns2:ManagedCustomerServiceError" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <fieldPath>operations[0]</fieldPath>
                  <trigger/>
                  <errorString>ManagedCustomerServiceError.BAD_ID</errorString>
                  <ApiError.Type>ManagedCustomerServiceError</ApiError.Type>
                  <ns2:reason>UNKNOWN</ns2:reason>
               </errors>
            </ns2:ApiExceptionFault>
         </detail>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

Emre Akkuş

unread,
Feb 18, 2015, 7:57:35 AM2/18/15
to adwor...@googlegroups.com
I've managed to get it worked after several attempts.

You have to give cliendCustomerId and managerCustomerId without DASHES -----  ex: 1231231234  NOT 123-123-1234
but i think it does not matter how you input clientCustomer id in the header.


Danial Klimkin

unread,
Feb 18, 2015, 8:14:19 AM2/18/15
to adwor...@googlegroups.com
Correct, as per documentation, these fields are Long:


ClientCustomerId matters if you have a tree with MCC and sub-MCCs under it.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages