How to get customer_id when user logs in with Oauth

21 views
Skip to first unread message

Rathina Boopathi

unread,
May 15, 2024, 11:51:51 AM5/15/24
to Google Ads API and AdWords API Forum
Hi Google Ads API Team. 

We are building a web application for users to view leads generated form Google Ads. 
I have implemented OAuth login with scope including adwords. I get the authorization code from that login with I am getting access token and refresh token. 

Now if I need to get the list of accounts accessible by that logged in account, I need to set customer_id to customer instance. (As far as I know).

From where can I get that customer_id? 
 

Google Ads API Forum Advisor

unread,
May 16, 2024, 12:32:29 AM5/16/24
to rathinabo...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

In order to get the customer ID, you need to log in to your Google Ads account using the same credentials associated with your OAuth login. In the top right corner of the navigation panel, you'll find the 10-digit customer ID, typically formatted as "123-456-7890" which is your customer ID. Kindly refer to the document List Accessible Accounts to get more information.

I hope this helps. Kindly get back to us if you have any further queries.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIzOL:ref" (ADR-00235178)

Thanks,
 
Google Logo Google Ads API Team


 

Reply all
Reply to author
Forward
0 new messages