No customer found python error - TrafficEstimatorService Sample

939 views
Skip to first unread message

Raihan Masroor

unread,
Sep 10, 2018, 5:51:18 AM9/10/18
to AdWords API and Google Ads API Forum
Hi,

After getting client id, secret token, developer token, and refresh token, I'm unable to get execute my code found in https://developers.google.com/adwords/api/docs/samples/python/optimization#estimate-keyword-traffic.

After running my code, i get the error: 

    main(adwords_client)
  File "estimate-keyword-traffic.py", line 97, in main
    estimates = traffic_estimator_service.get(selector)
  File "/home/ubuntu/var/www/adwords_python/googleads/common.py", line 1391, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [AuthorizationError.NO_CUSTOMER_FOUND @ ]

Anybody know what could be wrong? My developer token is for a test account. Could this be an issue?

Teja Makani

unread,
Sep 10, 2018, 2:47:16 PM9/10/18
to AdWords API and Google Ads API Forum
Hello Raihan,

The NO_CUSTOMER_FOUND error occurs when you are passing the wrong client customer Id on the request header. Could you please verify whether you are passing the right client customer Id in the googleads.yaml file? If you are still facing issues please share the SOAP logs(request and response) of the operation performing without redacting any information. You could use reply privately to the author option while sharing the details.

Regards,
Sai Teja, AdWords API Team.

Đạt Đinh Quốc

unread,
Jun 10, 2020, 3:54:16 AM6/10/20
to AdWords API and Google Ads API Forum
The funny part is that in the googleads.yaml file it says:

Optional Fields
#############################################################################
client_customer_id

However, this field is required!

Google Ads API Forum Advisor Prod

unread,
Jun 10, 2020, 12:37:14 PM6/10/20
to dat...@sapo.vn, adwor...@googlegroups.com

Hi Đạt,

Thank you for reaching out. client_customer_id is actually required. Please make sure you have it in the googleads.yaml file as it is critical for the sample code to successfully run.

Thanks and regards,
Xiaoming, Google Ads API Team



 

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