After finishing the OAuth flow I perform a test call and when I get the NOT_ADS_USER error I show an error to the user that it's not a valid Google Ads account and don't store the OAuth tokens.
Op donderdag 3 januari 2019 05:46:43 UTC+1 schreef Yoshimasa Tanabe: > > Hi Milind, > > I want to know if we are on the same page. Is the following my > understanding correct? > > 1. On OAuth flow, it's not possible to prevent the users not associated > with any AdWords account from log-in/authorizing my application. > * I can't edit the user info as you said because the users are not > mine but my customer's. > 2. Adwords API has no way to check whether or not the users are associated > with any AdWords account > > On Saturday, December 29, 2018 at 5:09:42 AM UTC+9, Milind Sankeshware > (AdWords API Team) wrote: >> >> Hi Yoshimasa, >> >> You can add the login email as a admin user in the AdWords account. To >> add the user, please follow the steps in this >> <https://support.google.com/google-ads/answer/1009702?hl=en> Help Center >> article. After adding the user the API call should work. If you are still >> facing an issue, I would suggest to create new OAuth credentials with the >> email which is associated with that AdWords account. Please refer to this >> steps >> <https://developers.google.com/adwords/api/docs/guides/first-api-call#set_up_oauth2_authentication> >> >> to create the OAuth credentials. >> >> Thanks, >> Milind, 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/fd64d7e0-a3d4-4909-9bbf-5c47c324124e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.