Hi Shwetha, The documentation says something different from what you mentioned. It says in this page: https://developers.google.com/adwords/api/docs/guides/accounts-overview#customerservice
*In v201605 and earlier, if no clientCustomerId is specified, then the response will contain a single entry for the authenticated account. You must specify a clientCustomerId when authenticating as a manager account to obtain info for a specific account.* *Starting with v201607, if no clientCustomerId is specified, then the response will contain multiple entries if more than one account is directly accessible by the authenticated account. If you only want results for a single account, you must specify the clientCustomerId in your request.* So my question is, if we don't specify a customerId (which we can't if we just authenticated a new user and we don't know his Id), then we will get back multiple accounts. How do we know which account is the root account? Oliver On Friday, 29 July 2016 22:48:36 UTC+1, Shwetha Vastrad (AdWords API Team) wrote: > > Hi Oliver, > > If you do not specify a clientCustomerId in the request header, the > getCustomers > <https://developers.google.com/adwords/api/docs/reference/v201607/CustomerService#getCustomers> > method > will return the account details of the authenticated customer. If the > canManageClients > <https://developers.google.com/adwords/api/docs/reference/v201607/CustomerService.Customer#canmanageclients> > field > is true in the returned Customer object, then the returned account is a > Manager account. > > I hope this helps. > > Regards, > Shwetha, AdWords API Team. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/a9d4f79f-aec2-457a-bc29-adab0b8b97e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
