I'm trying to get list of all accounts im MMC account. For that reason I try to use all versions of https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201708/account_management/get_account_hierarchy.py But all version of AdWords api are returning
Server raised fault: '[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ > ; trigger:'<null>']' or full stack python get_account_hierarchy.py > No handlers could be found for logger "suds.client" > WebFault(u"Server raised fault: > '[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; > trigger:'<null>']'",) > Traceback (most recent call last): > File "get_account_hierarchy.py", line 107, in <module> > main(adwords_client, v) > File "get_account_hierarchy.py", line 70, in main > page = managed_customer_service.get(selector) > File > "/adwords/venv2/local/lib/python2.7/site-packages/googleads/common.py", > line 748, in MakeSoapRequest > self._datetime_packer) for arg in args]) > File "/adwords/venv2/local/lib/python2.7/site-packages/suds/client.py", > line 521, in __call__ > return client.invoke(args, kwargs) > File "/adwords/venv2/local/lib/python2.7/site-packages/suds/client.py", > line 581, in invoke > result = self.send(soapenv) > File "/adwords/venv2/local/lib/python2.7/site-packages/suds/client.py", > line 619, in send > description=tostr(e), original_soapenv=original_soapenv) > File "/adwords/venv2/local/lib/python2.7/site-packages/suds/client.py", > line 670, in process_reply > raise WebFault(fault, replyroot) When i try to use ACCOUNT_PERFORMANCE_REPORT {'downloadFormat': 'CSV', 'reportType': 'ACCOUNT_PERFORMANCE_REPORT', 'selector': {'fields': ['AccountCurrencyCode', 'AccountDescriptiveName', 'AccountTimeZone', 'CanManageClients', 'CustomerDescriptiveName', 'ExternalCustomerId', 'IsAutoTaggingEnabled', 'IsTestAccount']}, 'dateRangeType': 'LAST_30_DAYS', 'reportName': 'ACCOUNT_PERFORMANCE_REPORT'} 2017-09-07 15:02:07,762 Request Summary: {'isError': True, 'errorMessage': b'<?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>', 'includeZeroImpressions': 'True', 'skipReportHeader': 'True', 'clientCustomerId': 'None', 'server': 'adwords.google.com', 'skipColumnHeader': 'False', 'skipReportSummary': 'True'} Traceback (most recent call last): File "/adwords/venv/lib/python3.5/site-packages/googleads/adwords.py", line 1602, in _DownloadReportAsStream response = self.url_opener.open(request) File "/usr/lib/python3.5/urllib/request.py", line 472, in open response = meth(req, response) File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python3.5/urllib/request.py", line 510, in error return self._call_chain(*args) File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain result = func(*args) File "/usr/lib/python3.5/urllib/request.py", line 590, 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 "adwords_report_test.py", line 751, in <module> > main() > File "adwords_report_test.py", line 43, in with_profiling > ret = fn(*args, **kwargs) > File "adwords_report_test.py", line 742, in main > data = ReportLoader.load_accountPerformance() > File "adwords_report_test.py", line 43, in with_profiling > ret = fn(*args, **kwargs) > File "adwords_report_test.py", line 331, in load_accountPerformance > return ReportLoader._download_report(selector, report_type, date_range) > File "adwords_report_test.py", line 200, in _download_report > skip_report_summary=True, > include_zero_impressions=include_zero_impressions) > File "/adwords/venv/lib/python3.5/site-packages/googleads/adwords.py", > line 1275, in DownloadReport > output, **kwargs) > File "/adwords/venv/lib/python3.5/site-packages/googleads/adwords.py", > line 1545, in _DownloadReport > response = self._DownloadReportAsStream(post_body, **kwargs) > File "/adwords/venv/lib/python3.5/site-packages/googleads/adwords.py", > line 1618, in _DownloadReportAsStream > raise self._ExtractError(e) > googleads.errors.AdWordsReportError: AdWords report download failed with > HTTP status code: 400 When i specified CUSTOMER_ID I can download ACCOUNT_PERFORMANCE_REPORT but just for specified customer not for all of them. Somebody know how to get list of all accounts ? Thanks -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/0e69c371-7de1-4d99-b4ef-4574d7856cda%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.