Hi Team, We use customerService.getCustomers call to get login CustomerId from logged-in user's OAuth2 credential .
As per this blog multiple google ads-account can be associated with a single google account(i.e under a single gmail address). Hence getCustomers api's response will consist of a list of customers details.(same is mentioned on access-multiple-adwords-accounts blog) We would think of below possibility of multiple google ads-accounts use case within a single google account. 1. One manager and multiple ads accounts 2. Multiple ads accounts 3. Multiple manager and multiple ads accounts Do the above use cases are real or hypothetical? If yes, How to identify parent account's customer Id from getCustomers response using the logged-in user's oAuth2 credential? Is there any other API which can help us to achieve this? Tried understanding the above cases by creating accounts within my test manager(R10) account(i.e by using "create new account" or "create new manager account" under the sub account setting of Manager account). (Referred creating new ad accounts page).
Below are the accounts we created . i.e Normal Adaccount -> r21 test account. Manager account -> r10-child-manager
But still I could see only one customer details under getCutomers api call from the OAuth2 credential of my test manager account. Why is there only one customer details under the getCustomer API call of my Test account? Is something I missed while creating a new ads account with the logged-in credential of my test Manager account? Thanks in advance.
|
||||||
Select the appropriate manager account
If there are multiple manager accounts for a given operating customer account, select the manager account at the top of the hierarchy. This lets you maintain the same
login-customer-idfor multiple calls throughout the hierarchy of accounts and thereby avoid excessive switching.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v20="https://adwords.google.com/api/adwords/mcm/v201809" xmlns:v201="https://adwords.google.com/api/adwords/cm/v201809">
<soapenv:Header>
<v20:RequestHeader>
<!--Optional:-->
<v201:developerToken>redacted</v201:developerToken>
<!--Optional:-->
<v201:userAgent>redacted</v201:userAgent>
<!--Optional:-->
<v201:validateOnly>false</v201:validateOnly>
<!--Optional:-->
<v201:partialFailure>true</v201:partialFailure>
</v20:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<v20:getCustomers xmlns="https://adwords.google.com/api/adwords/mcm/v201809">
</v20:getCustomers>/>
</soapenv:Body>
</soapenv:Envelope>
