It is not possible to retrieve the logged in user email address via AdWords API when using OAuth. I suggest to use clientCustomerId instead.
You can obtain the list of customer IDs the logged in user has access to via ServicesAccountService or InfoService and use them to whitelist users to access your application.
-Danial, AdWords API Team.
On Thursday, June 14, 2012 10:56:14 AM UTC+4, PatrickvKleef wrote:
Thanks for your response Anash!
Maybe it's a good idea to explain what I want do. I would like to give certain users access to the web application I'm building. When using the Adwords API client library it is possible to login users with OAuth, but the problem is that not everybody with a google account should have access to the web application. So I would like to receive the email (and other user information only for displaying) of the user and than check if the user has access rights. Is there a better way of give users access to your web application that's using the Adwords API?
The user accounts that can access the web application has access to google adwords accounts (one or more client customer Ids).
Op donderdag 14 juni 2012 07:18:12 UTC+2 schreef Anash P. Oommen het volgende: