User in the cookie is not a valid Ads user

2,807 views
Skip to first unread message

徐艳君

unread,
Apr 8, 2021, 10:45:53 PM4/8/21
to AdWords API and Google Ads API Forum
Response
--------
Headers: Metadata(content-type=application/grpc,request-id=2dN6p_K-uSl6CLDD-FQ5_g,date=Fri, 09 Apr 2021 02:33:56 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    authentication_error: NOT_ADS_USER
  }
  message: "User in the cookie is not a valid Ads user."
}

Status: Status{code=UNAUTHENTICATED, description=Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project., cause=null}.

I use the client to obtain advertising data, but when I use the service account to request, this error occurs

Google Ads API Forum Advisor Prod

unread,
Apr 9, 2021, 11:48:01 AM4/9/21
to xuyan...@gmail.com, adwor...@googlegroups.com

Hi,

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. We recommend you use installed app or web flows instead of the service account as they are a lot less complex and easier to maintain.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2FX6Zy:ref

Brandon Ramsey

unread,
Aug 2, 2021, 12:16:06 PM8/2/21
to AdWords API and Google Ads API Forum
"We recommend you use installed app or web flows instead of the service account as they are a lot less complex and easier to maintain."
Its amazing how this seems to be the goto dodge for this question everywhere. Way to not answer the question anywhere.

Google Ads API Forum Advisor

unread,
Aug 2, 2021, 2:51:45 PM8/2/21
to bra...@kush.com, adwor...@googlegroups.com
Hi Brandon,

Thank you for responding to our initial feedback. In looking over the previous statements. You will see that the NOT_ADS_USER is an error pointing to the fact that there is currently no account associated with the login information given, thus it was unable to load the API. We are then suggesting that the best way to resolve this is for you to create an account using one of the 2 methods mentioned here .

Regards,
Google Logo
William Pescherine
Google Ads API Team
 


ref:_00D1U1174p._5004Q2FX6Zy:ref

Chitranshu Mishra

unread,
Dec 20, 2021, 11:35:53 AM12/20/21
to AdWords API and Google Ads API Forum
Hi Team,
I am getting the same error on fetching the Ads data.
The service account I am using is already impersonating my Google Ads Account.
PS.  Installed app or web flows is working fine for me. I was trying to use the service account so as to avoid the user intervention for app authorization every time.

Thanks & Regards.

Google Ads API Forum Advisor

unread,
Dec 21, 2021, 3:15:50 AM12/21/21
to chitra...@gmail.com, adwor...@googlegroups.com

Hi Chitranshu,

 

I see that you have already created a new forum thread for your concern. Let's continue the discussion on that thread moving forward so we can better track your concern.

 

Regards,

Google Logo
Kevin Gil Soriano
Google Ads API Team
 


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