Get Customer Id After Authentication

24 views
Skip to first unread message

Dp Patel

unread,
Jul 1, 2021, 4:31:23 PM7/1/21
to AdWords API and Google Ads API Forum
Hello there,

In real time scenario, Once our web application is authenticated and got the access token, refresh token, expires in from the Exchange of Code for Token, How do we Identify/Get customer id to make subsequent api calls for getting campaigns or keywords etc. We tries calling listAccessibleCustomers end point but it gives manager account id and not google ads client id. How can we get both manager client id and ads client id so that we can use both in the subsequent requests to get campaigns, ads, keywords etc.

Thanks

Google Ads API Forum Advisor

unread,
Jul 7, 2021, 2:14:43 PM7/7/21
to adspendapp...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. If you are using one of the supported client libraries, each library will contain a configuration file that keeps the login-customer-id and client customer ID. For example, the Java CL will generate a pom.xml file. 

If this is not in line with your request, can you please clarify for us?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 
  

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