ManagedCustomerService mutateLink issue

38 views
Skip to first unread message

Daniel Pernevan

unread,
Dec 11, 2018, 2:08:15 PM12/11/18
to AdWords API and Google Ads API Forum
can you please provide some insights why this request and response is not doing what is supposed to do.

Request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802" xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802">
  <SOAP-ENV:Header>
    <ns2:RequestHeader>
      <ns1:clientCustomerId>2327263621</ns1:clientCustomerId>
      <ns1:developerToken>XXX</ns1:developerToken>
      <ns1:userAgent>Rankingcoach Adwords (AwApi-PHP, googleads-php-lib/33.1.0, PHP/5.5.9-1ubuntu4.22)</ns1:userAgent>
      <ns1:validateOnly>false</ns1:validateOnly>
      <ns1:partialFailure>false</ns1:partialFailure>
    </ns2:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns2:mutateLink>
      <ns2:operations>
        <ns1:operator>SET</ns1:operator>
        <ns2:operand>
          <ns2:managerCustomerId>3079779270</ns2:managerCustomerId>
          <ns2:clientCustomerId>2327263621</ns2:clientCustomerId>
          <ns2:linkStatus>CANCELLED</ns2:linkStatus>
          <ns2:isHidden>false</ns2:isHidden>
        </ns2:operand>
      </ns2:operations>
    </ns2:mutateLink>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<br/><br/>

Response:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <ns2:ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802" xmlns="https://adwords.google.com/api/adwords/cm/v201802">
      <requestId>00057cbd1922de600a858f58de0e57b9</requestId>
      <serviceName>ManagedCustomerService</serviceName>
      <methodName>mutateLink</methodName>
      <operations>1</operations>
      <responseTime>729</responseTime>
    </ns2:ResponseHeader>
  </soap:Header>
  <soap:Body>
    <ns2:mutateLinkResponse xmlns="https://adwords.google.com/api/adwords/cm/v201802" xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201802">
      <ns2:rval>
        <ns2:links>
          <ns2:managerCustomerId>3079779270</ns2:managerCustomerId>
          <ns2:clientCustomerId>2327263621</ns2:clientCustomerId>
          <ns2:linkStatus>CANCELLED</ns2:linkStatus>
          <ns2:isHidden>false</ns2:isHidden>
        </ns2:links>
      </ns2:rval>
    </ns2:mutateLinkResponse>
  </soap:Body>
</soap:Envelope>

from the response I get that the request was executed successfully but in the ads web interface the managed customer is still active.
I have tried different clientCustomerId (api mcc id, direct mcc id, customer id) and also different linkStatus, like INACTIVE.

Thanks, 
Daniel Pernevan

Peter Oliquino (AdWords API Team)

unread,
Dec 11, 2018, 3:00:26 PM12/11/18
to adwor...@googlegroups.com
Hi Daniel,

Setting link status to "CANCELLED" is used to rescind/cancel the invitation sent to a client account (see here for more information). I assume that since the link is already created between your MCC account and the client account, you are instead trying to terminate the link which can be done by setting the link status to "INACTIVE" instead (as stated in this guide).

This said, could you provide the complete SOAP request and response logs generated after trying to set the link status to INACTIVE so that we can further investigate? You can reply to me via the Reply privately to author option.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages