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:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <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>
        <get xmlns="https://adwords.google.com/api/adwords/mcm/v201705";>
            <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>
        <ns2:ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201705"; 
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201705";>
            <requestId>000557581dcae5010a1b224136073a2f</requestId>
            <serviceName>ManagedCustomerService</serviceName>
            <methodName>get</methodName>
            <operations>1</operations>
            <responseTime>237</responseTime>
        </ns2:ResponseHeader>
    </soap:Header>
    <soap:Body>
        <ns2:getResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201705"; 
xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201705";>
            <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!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/afcfbda3-0d08-4e76-a88d-a9440047b508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to get mana... Ondřej P
    • Re: How to... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to