USER PERMISSION DENIED AND CUSTOMER_NOT_ENABLED

564 views
Skip to first unread message

rita quaglietta

unread,
Feb 25, 2022, 2:47:28 AM2/25/22
to Google Ads API and AdWords API Forum

-------
Headers: {
  "google.ads.googleads.v10.errors.googleadsfailure-bin": "\n:\n\u0002H\u0018\u00124The customer can't be used because it isn't enabled.\u0012\u0016FWYpqK--Bku_y89pw6lAsg",
  "grpc-status-details-bin": "\b\u0007\u0012#The caller does not have permission\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure\u0012T\n:\n\u0002H\u0018\u00124The customer can't be used because it isn't enabled.\u0012\u0016FWYpqK--Bku_y89pw6lAsg",
  "request-id": "FWYpqK--Bku_y89pw6lAsg"
}
Fault: errors {
  error_code {
    authorization_error: CUSTOMER_NOT_ENABLED
  }
  message: "The customer can\'t be used because it isn\'t enabled."
}
request_id: "FWYpqK--Bku_y89pw6lAsg"
[2022-02-25 08:42:50,064 - WARNING] Request made: ClientCustomerId: 6779690595, Host: googleads.googleapis.com, Method: /google.ads.googleads.v10.services.GoogleAdsService/SearchStream, RequestId: FWYpqK--Bku_y89pw6lAsg, IsFault: True, FaultMessage: The customer can't be used because it isn't enabled.
Traceback (most recent call last):
  File "C:\Users\rita.quaglietta\Documents\GADSv02\venv\lib\site-packages\google\ads\googleads\interceptors\response_wrappers.py", line 85, in __next__
    message = next(self._underlay_call)
  File "C:\Users\rita.quaglietta\Documents\GADSv02\venv\lib\site-packages\grpc\_channel.py", line 426, in __next__
    return self._next()
  File "C:\Users\rita.quaglietta\Documents\GADSv02\venv\lib\site-packages\grpc\_channel.py", line 642, in _next
    return self._next_response()
  File "C:\Users\rita.quaglietta\Documents\GADSv02\venv\lib\site-packages\grpc\_channel.py", line 617, in _next_response
    raise self
grpc._channel._SingleThreadedRendezvous: <_SingleThreadedRendezvous of RPC that terminated with:
        status = StatusCode.PERMISSION_DENIED
        details = "The caller does not have permission"
        debug_error_string = "{"created":"@1645774969.613000000","description":"Error received from peer ipv4:142.250.180.138:443","file":"src/core/lib/surface/call.cc","file_line":904,"grpc_message":"The caller does not have permission","grpc_status":7}"
>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<input>", line 92, in <module>
  File "<input>", line 54, in main

Google Ads API Forum Advisor

unread,
Feb 28, 2022, 8:19:45 AM2/28/22
to quaglie...@gmail.com, adwor...@googlegroups.com

Hi Rita,

Thanks for reaching out to the Google Ads API Forum.

Upon checking the logs you’ve provided with us, it appears that you’ve encountered the CUSTOMER_NOT_ENABLED error. The CUSTOMER_NOT_ENABLED error indicates that the customer ID specified in your API request could be either inactive or canceled. With this, upon checking the ClientCustomerId 6779690595 used in the request, you use the disabled account. Moving forward, I will suggest not including inactive / canceled accounts in API requests to avoid this error.

One way to check the status of the Google Ads account, especially if it is inactive / canceled, is to login the account as you can see its status in the UI. Also, you have an option to activate this account by following this guide in the event that you want to include it in the request header of the API transaction. If you want to reactivate your account, you can reach out to the Google Ads Product Support team, via this link, for further assistance.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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