I am getting Internal API Error in for mutate ServiceLink in Customer Service v201705

42 views
Skip to first unread message

nikhil...@nikulsan.com

unread,
Jun 16, 2017, 10:49:29 AM6/16/17
to AdWords API Forum
Hi,

I am getting UNEXPECTED_INTERNAL_API_ERROR for ADD operation on my test account . And when sending with some random id tag it is giving invalid id but according to API document  id is not required. for ADD . Is  anything i have missed it . Below is my SOAP Request.:-

clientCustomerId>
            <ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201705">REDACTED</ns3:developerToken>
            <ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201705">unknown (AwApi-Java, AdWords-Axis/3.4.0, Common-Java/3.4.0, Axis/1.4, Java/1.8.0_111, jars)</ns4:userAgent>
            <ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201705">false</ns5:validateOnly>
            <ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201705">false</ns6:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutateServiceLinks xmlns="https://adwords.google.com/api/adwords/mcm/v201705">
            <operations>
                <ns7:operator xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201705">ADD</ns7:operator>
                <operand>
                    <serviceType>MERCHANT_CENTER</serviceType>
                    <linkStatus>ACTIVE</linkStatus>
                    <name> TESTING </name>
                </operand>
            </operations>
        </mutateServiceLinks>
    </soapenv:Body>
</soapenv:Envelope>

Shwetha Vastrad (AdWords API Team)

unread,
Jun 16, 2017, 11:55:29 AM6/16/17
to AdWords API Forum
Hi Nikhil, 

You need to first send an invitation from your Merchant Center account to your AdWords account and then accept the invitation in your AdWords account. You can use the Merchant Center user interface to send this invitation, or use the Content API for Shopping to update the adwordsLinks of your Account. You can then use CustomerService.getServiceLinks() method to get the links and use CustomerService.mutateServiceLinks() method to set the linkStatus from PENDING to ACTIVE to accept the link. You need to set the serviceType and the serviceLinkId in the operand when you accept the invitation. Please see this guide for more details.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages