Hi Stephen,

The "401 Unauthorized" error means that the email address that you used in 
generating the OAuth2 credentials is not a valid user in your account, or 
it could be that there is something wrong in the generation of your OAuth2 
credentials itself (e.g. your refresh token is not matched with your client 
ID and secret). Also, the recommended authentication type for AdWords API 
is the "Installed application" type. See this guide 
<https://developers.google.com/adwords/api/docs/guides/authentication#determine_your_app_type>
 to 
know more on how to authenticate using this type. You don't need to 
authenticate as a service account as you only authenticate via this type if 
you have a G Suite domains <https://gsuite.google.com/> and your main goal 
is to impersonate as any user in your account.

Please try authenticating via the "Installed application" type again and 
let me know how it works. If you encounter any error, please provide the 
complete error logs as well as your clientCustomerId and the email address 
you used in the generation of your OAuth2 credentials via *Reply privately 
to author* option.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/cb5551d3-4335-4d4c-a78c-d322f7acb586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Stephen Barrett
    • ... 'Vincent Racaza (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to