Error: NOT_ADS_USER

43 views
Skip to first unread message

Bipul Kumar

unread,
Nov 17, 2021, 4:29:30 AM11/17/21
to AdWords API and Google Ads API Forum
I am using service account for fetching google ads details
Getting this error
Failure message: errors {
  error_code {
    authentication_error: NOT_ADS_USER
  }
  message: "User in the cookie is not a valid Ads user."
}

UNAUTHENTICATED: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

How can i resolve this error

Google Ads API Forum Advisor

unread,
Nov 17, 2021, 12:20:50 PM11/17/21
to adwor...@googlegroups.com
Hello,

Thank you for reaching out. The NOT_ADS_USER error usually occurs when the login used to generate the access token is not associated with any Google Ads account.

Could you please confirm which account you are using while you have this error?

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey

Best regards,
Google Logo
Jakeia Sabrina
Google Ads API Team
 


ref:_00D1U1174p._5004Q2R9lMA:ref

Bipul Kumar

unread,
Nov 17, 2021, 11:22:03 PM11/17/21
to AdWords API and Google Ads API Forum
Hi,
I am using service account, for that i think access token is not required

Google Ads API Forum Advisor

unread,
Nov 18, 2021, 2:52:53 AM11/18/21
to adwor...@googlegroups.com

Hi Bipul,

This is Yasar and I work withJakeia. Let me assist you with this.

Could you please confirm if you’ve indeed followed every step of the guide, specifically the prerequisites?  In order to connect to Google Ads API using a Google service account, you will need a Google Workspace domain since it is a prerequisite for using service accounts. You may refer to this API documentation that discusses how to access the Google Ads API with service accounts.

However, kindly note that, 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. 

Regards,


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 

Google Logo
Yasar
Google Ads API Team
 


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