Hi Kamil,
Thank you for reaching out. To fetch the user customer id based on their credentials, you could use CustomerService.ListAccessibleCustomers via the Google Ads API to achieve it if the user authenticates with their manager account. However, if this does not work, please try to use CustomerService.getCustomers() via the AdWords API to fetch the user customer id.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||
Hi Kamil,
Thank you for reaching out. Please consider using CustomerService.getCustomers() via the AdWords API to fetch the user customer id. You could use this method to fetch the customer id by setting the OAuth2 credentials provided by the user.
Thanks and regards,
Xiaoming, Google Ads API Team