AuthenticationError.NOT_ADS_USER

69 views
Skip to first unread message

FPAI Dev

unread,
Jan 12, 2022, 2:59:40 PM1/12/22
to Google Ads API and AdWords API Forum
Hi,

We are using a third party tool to connect to Google Ads and create the audience on Google Ads Manager account. But we are getting the authentication error. The user who created all tokens required to connect api has admin access to the Business manager account and the Ads account as well.

We also tried to use curl to check the authentication.
We have followed all steps mentioned in https://developers.google.com/google-ads/api/docs/oauth/playground

Here is the curl snippet that we used:
curl \
  -d code= %auth_code_from_playground% \
  -d client_id=%client_id% \
  -d client_secret=%client_secret% \
  -d redirect_uri=https://developers.google.com/oauthplayground \
  -d grant_type=authorization_code https://accounts.google.com/o/oauth2/token

We get an error:
{
    "error": "invalid_grant",
    "error_description": "Bad Request"
}

The app we created on google cloud console is of type web client and not the native app. Please let us know if you need any more info.

Thanks

Google Ads API Forum Advisor

unread,
Jan 13, 2022, 12:43:05 AM1/13/22
to fpai.de...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team.

Based on the email subject, the NOT_ADS_USER indicates that you may have used an email address, that is not associated to any Google Ads accounts, to generate the OAuth2 credentials you are using in your API request.

However, since you mentioned that "The user who created all tokens required to connect api has admin access to the Business manager account and the Ads account as well", could you share the user / email address that you are referring to, as well as the complete request and response logs, with the request-id?

For the logs, you may request from the third party tool to provide these to you. If they haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

If you will be using curl directly, you can simply include the -i in your request similar to this one "curl -i --request..", to generate the logs.

You may then send all the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2UjPyH:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Jan 14, 2022, 3:41:11 AM1/14/22
to adwor...@googlegroups.com

Hi there,

Thanks for posting your comment on this thread. However, for our team to check closely, could you please provide us with complete request and response logs with request ID and request header generated via the Reply privately to author option, so our team can check better? You may also send details directly to our googleadsa...@google.com alias.

In addition, I had to delete your comment as the email address was posted publicly. 

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2UjPyH:ref
Reply all
Reply to author
Forward
0 new messages