Hello, 

Thank you for providing more details. The NOT_ADS_USER 
<https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.NOT_ADS_USER>
 error 
is encountered when the OAuth2 credentials used are *not* associated with 
an AdWords account. Can you please generate another refresh/access token, 
and ensure that you retrieve the authorization code from the browser link 
by logging in as a user who has access to the AdWords account? You *must* be 
logged in as a user who has access to the AdWords account against which you 
want to issue the request. 

If you continue to have an issue with this, could you provide us the email 
address used to generate the access token, so I can take a look?

Regards,
Bharani, AdWords API Team 

On Friday, December 22, 2017 at 3:47:47 PM UTC-5, adwords...@lioncita.com 
wrote:
>
> Hello there,
>
> I am getting the following error when querying Adwords API:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <reportDownloadError>
>   <ApiError>
>     <type>AuthenticationError.NOT_ADS_USER</type>
>     <trigger>&lt;null&gt;</trigger>
>     <fieldPath></fieldPath>
>   </ApiError>
> </reportDownloadError>
>
> I read the troubleshooting part of the documentation, but I am clearly not 
> in the situation that is described in there.
>
> Here is what I did in terms of configuration:
>
>    1. I created a Manager Account (adwords...@lioncita.com <javascript:>) 
>    to get a developer token.
>    2. With that same account, I got from the Google API Console 
>    Credentials page, a client id and a client secret.
>    3. I created a Manager Test Account (adwords.my-t...@lioncita.com 
>    <javascript:>)
>    4. From that account, I created a Client Test Account.
>    5. I granted myself (leonid.iv...@gmail.com <javascript:>) 
>    administrative access to that Client Test Account.
>
> Then, here is how I am trying to query the API:
>
>    1. Via OAuth2.0, I authorize my app (identified by the developer 
>    token, client id and client secret coming from the Manager Account) to 
>    query the Client Test Account on behalf on myself
>    2. I do the following query:
>    SELECT CampaignId, AdGroupId, Impressions, Clicks, Cost FROM 
>    ADGROUP_PERFORMANCE_REPORT WHERE AdGroupStatus IN [ENABLED, PAUSED] DURING 
>    LAST_7_DAYS
>    3. And I receive the error message described above
>
> For more details, see the sequence of HTTP requests and responses below:
>
>
> My app redirects the user (myself) to the following url:
>
>
>
> https://accounts.google.com/o/oauth2/auth?client_id=100369740038-n0d6tm4jba0c34ikdcv14rssenr9c5uq.apps.googleusercontent.com&response_type=code&scope=https://www.googleapis.com/auth/adwords&redirect_uri=https://api.lioncita.com/oauth.php&access_type=offline&prompt=consent
>
>
> After the user grants authorization, my app get the code in the callback.
>
> With that code, my app requests an access token:
>
>
>
> Then, with that access token, my app tries to pull the data:
>
>
>
> I have spent a long time trying to figure out what is happening here.
> Thanks in advance for your help,
>
> Best,
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0466263c-a2d3-4488-8189-7a1a8aab0889%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Authenti... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
    • Re: Aut... Carlos Casasola
    • Re: Aut... adwords . manager
    • Re: Aut... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
      • Re:... adwords . manager
        • ... adwords . manager
          • ... adwords . manager
    • Re: Aut... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
    • Authent... Travis
    • Authent... Travis
      • Re:... Travis
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to