User in the cookie is not a valid Ads user

739 views
Skip to first unread message

Chitranshu Mishra

unread,
Dec 20, 2021, 11:51:41 AM12/20/21
to AdWords API and Google Ads API Forum
Hi,
I am trying to fetch the Google Ads data with the service account, but I am getting the below error.

 errors {
  error_code {
    authentication_error: NOT_ADS_USER
  }
  message: "User in the cookie is not a valid Ads user."
}

Please note 
  1.  OAuth2 desktop app and web app flows is already working fine for me, I was trying to use the service account so as to remove the manual authorization process.
  2. The service account impersonates an account already associated with Google Ads.
  3. I am able to use this service account to fetch Google Analytics data which has the same account Id that is used in Google Ads.
Thanks & Regards,



Google Ads API Forum Advisor

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

Hi Chitranshu,

 

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 if you’ve indeed followed every step of the service account guide, specifically the prerequisites? If your service account has been correctly configured, please provide the complete request and response logs with request ID where you have encountered an error as well as the the user account/email address that you're trying to setup so I can better investigate your concern.

 

You may send 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.

 

Regards,

Google Logo
Kevin Gil Soriano
Google Ads API Team
 


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