How to get Adwords Customer ID of currently signed in user

440 views
Skip to first unread message

bid...@jellop.com

unread,
Jun 1, 2016, 8:51:15 AM6/1/16
to AdWords API Forum

Hello, 

I am writing an application that after the user signs into his Google Account should determinate his Adwords Account Customer ID.

I created Client ID & Secret for web app and use 


for coding reference.


I got my credentials after approving the access in the consent screen.

Then I have problem with last code:
# Initialize the GoogleRefreshTokenClient using the credentials you received
# in the earlier steps.
oauth2_client = oauth2.GoogleRefreshTokenClient(
   client_id, client_secret, refresh_token)

# Initialize the AdWords client.
adwords_client = adwords.AdWordsClient(
   developer_token, oauth2_client, user_agent, client_customer_id)
 
I do not have client_customer_id!!! 

I want the application to know it by the Google Account authentication with email address.

How do I get the customer id of currently signed in user?

Thank you very much.

Shwetha Vastrad (AdWords API Team)

unread,
Jun 1, 2016, 1:49:14 PM6/1/16
to AdWords API Forum
Hi,

Unfortunately, it is not possible to get the AdWords customer ID using just the Google account credentials. You have to login to the AdWords console to find out the Customer Id associated with your Google account. 

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages