The email Id I used to generate OAuth Credentials: [email protected]
The email Id I used to logging into Admin Console: [email protected] I'm adding here logs of Request and Response for you to investigate further! Request Logs: GET /v8/customers:listAccessibleCustomers HTTP/1.1 developer-token: xxxx Authorization: Bearer xxxx User-Agent: PostmanRuntime/7.26.8 Accept: */* Postman-Token: xxxx Host: googleads.googleapis.com Accept-Encoding: gzip, deflate, br Connection: keep-alive Response Logs: HTTP/1.1 401 Unauthorized Request-Id: mnOtDcvsTWZKRann9_0GGA Vary: Origin Vary: X-Origin Vary: Referer Content-Type: application/json; charset=UTF-8 Date: Mon, 22 Nov 2021 07:51:24 GMT Server: ESF Cache-Control: private X-XSS-Protection: 0 X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Alt-Svc: h3=":443"; ma=2592000,h3-29=":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" Content-Length: 696 { "error": { "code": 401, "message": "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.", "status": "UNAUTHENTICATED", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "authenticationError": "NOT_ADS_USER" }, "message": "User in the cookie is not a valid Ads user." } ], "requestId": "mnOtDcvsTWZKRann9_0GGA" } ] } } On Friday, November 19, 2021 at 2:08:58 AM UTC+5:30 adsapi wrote: > Hello Simba, > > Thank you for reaching out. The NOT_ADS_USER > <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#not_ads_user> > > error usually occurs when the login user account / email address used to > generate the OAuth Credentials is not associated with any Google Ads > account. > > Could you please confirm if you’ve indeed followed every step of the guide > <https://developers.google.com/google-ads/api/docs/oauth/service-accounts>, > specifically the prerequisites > <https://developers.google.com/google-ads/api/docs/oauth/service-accounts#prerequisites>? > > If your service account has been correctly configured, please provide the > complete request > <https://developers.google.com/google-ads/api/docs/concepts/field-service#request> > > and response > <https://developers.google.com/google-ads/api/docs/concepts/field-service#response> > > logs with request ID > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > > where you have encountered an error as well as the user account/email > address that you're trying to set up so I can better investigate your > concern. > > However, kindly note that we strongly recommend using OAuth2 installed > app or web flows > <https://developers.google.com/google-ads/api/docs/oauth/cloud-project#choose_an_application_type>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. > > Reminder: Share your feedback about the Google Ads (AdWords) API! Take the > 2021 > Google Ads API and AdWords API Annual Survey > <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so> > > Best regards, > [image: Google Logo] > Jakeia Sabrina > Google Ads API Team > > > ref:_00D1U1174p._5004Q2RA6ll:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8118e32e-4a9e-4be1-b226-5269c720014an%40googlegroups.com.
