NOT_ADS_USER

53 views
Skip to first unread message

Dominik Szamburski

unread,
Jul 5, 2022, 6:20:02 AM7/5/22
to Google Ads API and AdWords API Forum
Hello,
I am trying to download the ad performance report but unfortunately I keep getting a response with the error "NOT_ADS_USER".

I use service accounts because in our company it works best . I am missing some permissions in Google Cloud Project or am I sending something wrong please reply quickly


My tests:
1. set "sub" then I get the response "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
2. without setting "sub" I get the response "NOT_ADS_USER"

Google Ads API Forum Advisor

unread,
Jul 5, 2022, 10:38:36 AM7/5/22
to dominiksz...@gmail.com, adwor...@googlegroups.com

Hi Dominik,

Thank you for reaching out to our API support team.

Kindly not that the NOT_ADS_USER error usually occurs when the login used to generate the access token is not associated with any Google Ads account. Make sure to log in with a valid Google Ads account (typically your manager account) for the OAuth flow.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you 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.

Also, could please confirm if you followed all the prerequisites for service accounts? If not, you may refer to this guide to confirm if you already followed every step of the service account, specifically the prerequisites. If the issue persists, please provide us the user account / email address that you've used to set up the service account. We are referring here to the user account / email address for the Google API Console project that has been configured for the Google Ads API. You can provide these details via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

In addition, we strongly recommend using OAuth2 installed app or web flows instead of service accounts unless you need domain-specific features (for example, impersonation). OAuth2 installed application and web flows require user interaction only once, when access to the account is granted. You need to implement the code set up on your end to make calls using service accounts.


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


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