authorization_error: CUSTOMER_NOT_ENABLED

115 views
Skip to first unread message

huan chen

unread,
Apr 17, 2022, 3:54:13 AM4/17/22
to Google Ads API and AdWords API Forum
when i use googleAdsApi.GoogleAdsServiceClient to get client_customer_list will throw exceptions.

The details are as follows:

com.google.ads.googleads.v8.errors.GoogleAdsException: errors {
  error_code {
    authorization_error: CUSTOMER_NOT_ENABLED
  }
  message: "The customer can\'t be used because it isn\'t enabled."
}
request_id: "cU1QOvPQOghIauo02ekojg"

Is any customer is not active ? Or the way I get account is wrong.

企业微信截图_16501815707539.png

Google Ads API Forum Advisor

unread,
Apr 17, 2022, 10:58:06 PM4/17/22
to adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API team.

Moving forward to your concern, it seems that you've encountered the CUSTOMER_NOT_ENABLED error. With this, kindly note that it is not possible to make API requests against canceled / not enabled accounts unless you will reactivate it by following this guide. You may also note that starting version 10, you can use the filters using the statuses mentioned in the guide, to prevent including inactive accounts in your other API requests.

If you have further questions, please feel free to get back to us so our team can give support to you.

Regards,
Google Logo
Carmela
Google Ads API Team
 


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