get account data

58 views
Skip to first unread message

Alessandro Dias

unread,
Jan 14, 2015, 7:10:53 AM1/14/15
to adwor...@googlegroups.com
I'm trying  to develop an app where a user logs in and get information of its adwords account;
So, there's a way to get the developer token, client_customer_id and any other user information ?
or will be need to ask the user to give this data?

Josh Radcliff (AdWords API Team)

unread,
Jan 14, 2015, 10:07:15 AM1/14/15
to adwor...@googlegroups.com
Hi,

Once you take the user through the OAuth flow and get an access_token, you can issue a CustomerService.get request using that access_token. The request will return a Customer object, which has the customerId (client_customer_id).

You can (and should) use the same developer token for AdWords API requests against all of your accounts. You do not need a separate token for each account.

Cheers,
Josh, AdWords API Team

Alessandro Dias

unread,
Jan 15, 2015, 12:26:13 PM1/15/15
to adwor...@googlegroups.com
Hi Josh,
I have another doubt, You said:

You can (and should) use the same developer token for AdWords API requests against all of your accounts. You do not need a separate token for each account.

but correct me if I'm wrong, the developer token is associated to a specific prodction account, and the users that will use the app, each one is a different production account, so,  even in this way I should use use the same developer token?

Josh Radcliff (AdWords API Team)

unread,
Jan 15, 2015, 12:49:48 PM1/15/15
to adwor...@googlegroups.com
Hi,

A developer token is associated with a specific account solely for administrative purposes. The account of a developer token has no impact whatsoever on which accounts your API requests can access -- that is determined entirely by the OAuth credentials on each request. It's perfectly valid to use your approved developer token for API requests against accounts that are not in your developer token's MCC.

Best regards,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages