Hi Eyal, You could use CustomerService.getCustomers() <https://developers.google.com/adwords/api/docs/reference/v201702/CustomerService#getcustomers> without specifying the clientCustomerId in the request header. This should return all the accounts that the specific login/OAuth credentials has access to. If the account is a manager account, you could then use the MangedCustomerService <https://developers.google.com/adwords/api/docs/reference/v201702/ManagedCustomerService> to get all the client accounts under that manager account. This <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201702/accountmanagement/GetAccountHierarchy.java> sample in Java can be referred for the second part of operation using ManagedCustomerService. Once you have the client customer id(s) that are valid, you could use those for subsequent API requests. Samples in other languages can also be found here <https://developers.google.com/adwords/api/docs/clientlibraries>.
If you attempt to make an API call with an incorrect clientCustomerId, the API will return the error : AuthenticationError.CUSTOMER_NOT_FOUND <https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.CUSTOMER_NOT_FOUND>. If this operation is causing your application server to crash, you might want to review the error handling in your application to make sure this error is handled properly. Please let me know if you have any further questions. Thanks, Sreelakshmi, 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/a5e7a4e7-7702-4cc7-9e5f-a12d30fc562b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.