Hi, ManagedCustomerService <https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService> requires the clientCustomerId to be set in the request header. If you are looking to get the CustomerId using the OAuth2 credentials, you could consider using CustomerService.getCustomers() <https://developers.google.com/adwords/api/docs/reference/v201702/CustomerService#getcustomers> method which returns a list of Customers which are directly accessible by the authenticated account. If no clientCustomerId is specified in a request, the response will contain multiple entries if more than one account is directly accessible by the authenticated account. If clientCustomerId is specified in the request header, only details of that customer will be returned. Once you have the clientCustomerId of the authenticated user, you can use ManagedCustomerService <https://developers.google.com/adwords/api/docs/reference/v201702/ManagedCustomerService> to get the child accounts under that account as shown in this example <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201702/AccountManagement/GetAccountHierarchy.php> .
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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/3d90f9f9-88b3-4207-a8ed-34ebbe7c9b9c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.