Thanks for the further info Anash. As detailed in response above, I have 
retrieved the email address using IDToken of the UserCredential.

On Tuesday, January 5, 2021 at 4:19:52 PM UTC adsapiforumadvisor wrote:

> Hi John,
>
> The UserID field in the credentials object is unrelated to the UserId 
> field in Ads. 
>
> One way you can try to solve this problem is as follows:
>
> 1. Use the people.get method from the People API to get the login email of 
> the current user: 
> https://developers.google.com/people/api/rest/v1/people/get
>
> 2. Next, use the email address to filter on the query.
>
> Note that the people.get() method will give you a person_id, but this will 
> be different from the user ID. The User ID that is exposed by Google Ads 
> API is specific to Google Ads API and not something unique across other 
> Google systems.
>
> Cheers
> Anash
>
> ref:_00D1U1174p._5004Q2AGyWB:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/13bbd3ad-e131-4469-9fd0-bf3d83943eaen%40googlegroups.com.

Reply via email to