Hello, If you are looking to get all accounts that are directly associated to your OAuth credentials, you can use the CustomerService.getCustomers() <https://developers.google.com/adwords/api/docs/reference/v201710/CustomerService#getcustomers> without specifying the clientCustomerId in the request. If no clientCustomerId is specified in the request, the API call will return multiple entries if more than one account is directly accessible with the authenticated account. You can take a look at this guide <https://developers.google.com/adwords/api/docs/guides/accounts-overview#customerservice> on how to implement this.
Regards, Bharani, AdWords API Team On Thursday, November 2, 2017 at 9:40:24 AM UTC-4, Luigi Taccetta wrote: > > Is there a way to fetch the list of Client ID(s) related to the > refresh_token authorized, without using the ClientCustomerId? > > The idea is to automatically fetch the list of Google AdWords Client > ID(s), right after the application has been authorized, and chose from > there which Client ID the user want to use. > > The latest example > examples/AdWords/v201710/AccountManagement/GetAccountHierarchy.php needs > the ClientCustomerId when setting the AdWordsSessionBuilder, so I cannot > perform the call without the the ClientCustomerId. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/abe9915c-c64e-4013-aea7-7666e0e67532%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
