Hello Joven,

Yes, Zweitze is right.

When you get refresh token to get access of Adwords API, you also need to 
include scope to get User Email along with Adwords API scope.
To get user email you can use Google OAuth2 API v2 scope.

Scope to be used to get User email : 
https://www.googleapis.com/auth/userinfo.email


Thanks,

On Wednesday, 13 July 2016 17:48:28 UTC+5:30, Zweitze wrote:
>
> This is certainly possible but I don't have an exact answer.
> When you request access from the user, you supply which API you want 
> access to - AdWords API in this case. After a user logs in, he sees a page 
> asking to give access to his AdWords information.
> Actually you can ask for access to multiple APIs at the same time. Say you 
> want access to AdWords and Analytics, the user logs in and then see a page 
> asking for permission to access both AdWords and Analytics. When the user 
> grants this access, you can use the same access token for both AdWords and 
> Analytics.
>
> Well: Another API has minimal email access, if you include that, you can 
> use that API (and the returned access token) to ask for the email address. 
> Unfortunately I don't have the name of the grant at hand. But I also don't 
> program PHP so I can't help you any further.
>
> Still, this is the direction to go. I hope it makes sense.
>
>
>
> On Friday, July 1, 2016 at 9:37:09 PM UTC+2, Joven Albarida wrote:
>>
>> Hi Adwords Team,
>>
>> I'm trying to get the Email address using Google_Client Library on PHP
>>
>> But the access token was created from AdWords API? Is this kind of 
>> possible?
>>
>> If Yes, may I request if you can direct me to the references.  If No, is 
>> there another way to do this by getting the Email address?
>>
>> Thank you.,
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2f49f298-d1cd-4313-b252-9117dd565556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to