Hi , I am using python API code - https://gist.githubusercontent.com/lylayang/ee427f79911b999ec644d48a1f71277f/raw/e7551371dc73079dd47034a9e688b2293bd20f30/Get_ads_KPIs_HourOfDay.py
Customer ID is correct it works perfectly in java API I specified ,my client id in yaml as # AdWordsClient configurations adwords: developer_token: "xx" client_customer_id: '9999-999-99' client_id: "yy client_secret: "yy" refresh_token: "yyy" I got this stack please help Request Summary: {'clientCustomerId': 'Adwords account ID 01', 'includeZeroImpressions': 'False', 'server': 'adwords.google.com', 'skipColumnHeader': 'False', 'skipReportHeader': 'True', 'skipReportSummary' : 'True', 'isError': True, 'errorMessage': '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><reportDownloadError><ApiError><type>AuthenticationError.CLIENT_CUSTOMER_ID_INVALID</type><trigger><null></trigger><fieldPath></fieldPath></ApiError></reportDownloadError>' } Traceback (most recent call last): File "/Users/saravana-6868/Desktop/test_directory/venv/lib/python3.6/site-packages/googleads/adwords.py" , line 1616, in _DownloadReportAsStream response = self.url_opener.open(request) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py" , line 532, in open response = meth(req, response) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py" , line 642, in http_response 'http', request, response, code, msg, hdrs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py" , line 570, in error return self._call_chain(*args) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py" , line 504, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py" , line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 400: Bad Request During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/saravana-6868/Desktop/work/adwords/adwords_api.py", line 91, in <module> df = run_Hour0fDay_kip_report(k, v, start, end) File "/Users/saravana-6868/Desktop/work/adwords/adwords_api.py", line 73, in run_Hour0fDay_kip_report include_zero_impressions=False) File "/Users/saravana-6868/Desktop/test_directory/venv/lib/python3.6/site-packages/googleads/common.py" , line 405, in Wrapper return utility_method(*args, **kwargs) File "/Users/saravana-6868/Desktop/test_directory/venv/lib/python3.6/site-packages/googleads/adwords.py" , line 1499, in DownloadReportWithAwql **kwargs) File "/Users/saravana-6868/Desktop/test_directory/venv/lib/python3.6/site-packages/googleads/adwords.py" , line 1540, in _DownloadReport response = self._DownloadReportAsStream(post_body, **kwargs) File "/Users/saravana-6868/Desktop/test_directory/venv/lib/python3.6/site-packages/googleads/adwords.py" , line 1633, in _DownloadReportAsStream raise error googleads.errors.AdWordsReportBadRequestError: Type: AuthenticationError. CLIENT_CUSTOMER_ID_INVALID Trigger: <null> Field Path: None -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/763fa56e-4ba0-4454-b834-e47966942281%40googlegroups.com.