How to get manager-client links for client account?

17 views
Skip to first unread message

Ondřej P

unread,
Aug 22, 2017, 10:12:57 AM8/22/17
to AdWords API Forum
Hi,


I got permissions to user's account (client account not MCC) and I would like to check if this account is connected to some MCCs. There is a method in AdWords API ManagedCustomerService.get() when I try to call it with Client account's id there are no links in response(but I linked this account for test reasons to some MCC and I see active link in UI). Is there any way how to get active links from client's account it via API?
Request:
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/mcm/v201705" soapenv:mustUnderstand="0">
            <ns2:clientCustomerId xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201705">709-280-3578</ns2: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">(AwApi-Java, AdWords-Axis/3.4.0, Common-Java/3.4.0, Axis/1.4, Java/1.8.0_72, maven, SelectorBuilder, SelectorField)</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>
            <serviceSelector>
                <ns7:fields xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201705">CustomerId</ns7:fields>
                <ns8:paging xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201705">
                    <ns8:startIndex>0</ns8:startIndex>
                    <ns8:numberResults>100</ns8:numberResults>
                </ns8:paging>
            </serviceSelector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>


Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
            <requestId>000557581dcae5010a1b224136073a2f</requestId>
            <serviceName>ManagedCustomerService</serviceName>
            <methodName>get</methodName>
            <operations>1</operations>
            <responseTime>237</responseTime>
        </ns2:ResponseHeader>
    </soap:Header>
    <soap:Body>
            <ns2:rval>
                <totalNumEntries>1</totalNumEntries>
                <Page.Type>ManagedCustomerPage</Page.Type>
                <ns2:entries>
                    <ns2:customerId>7092803578</ns2:customerId>
                </ns2:entries>
            </ns2:rval>
        </ns2:getResponse>
    </soap:Body>
</soap:Envelope>

Thank you!

Shwetha Vastrad (AdWords API Team)

unread,
Aug 22, 2017, 2:35:41 PM8/22/17
to AdWords API Forum
Hi Ondrej,

I'm afraid its not possible to get the parent Manager account of an AdWords client account using AdWords API services. I'll pass on this feedback to team. Please keep an eye on our blog for any updates or announcements regarding this feature. 

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