How get client customer ID with HTTP request?

60 views
Skip to first unread message

Alexandr Borisenko

unread,
Mar 2, 2021, 8:04:14 PM3/2/21
to AdWords API and Google Ads API Forum
Hi,
I am developing a python web application that collects ad metrics from user Google Ads accounts.Since this application is intended for many users, I want to automate all the processes.But I faced such problem. I receive an access token and a refresh token from the user, but how can I request a list of ID accounts in Google advertising and their names with these data? And how then with this ID to get a list of IDs of internal accounts and their names, respectively?
Are there any urls for this?

Thank you in advance for any help you can provide with this.

Kind regards,
Sasha.

Google Ads API Forum Advisor Prod

unread,
Mar 3, 2021, 12:00:12 PM3/3/21
to nickna...@gmail.com, adwor...@googlegroups.com

Hi Alexandr,

Thank you for reaching out. Once you get the access token and refresh token from the user, you could call CustomerService.getCustomers() to get all the customers directly accessible by the user authenticating the call. You could then fetch attributes and metrics from different reports for this client customer.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DKcSg:ref
Reply all
Reply to author
Forward
0 new messages