我尝试使用 python SDK 下载 bingads 报告,但在提交报告请求后我不断收到错误消息:“找不到类型:'聚合'”。我已经尝试了以下链接中提到的所有 4 个选项: https ://github.com/BingAds/BingAds-Python-SDK/blob/master/examples/v13/report_requests.py
请求之前的身份验证过程工作得很好。
我执行以下操作:
report_request = get_report_request(authorization_data.account_id)
reporting_download_parameters = ReportingDownloadParameters(
report_request=report_request,
result_file_directory=FILE_DIRECTORY,
result_file_name=RESULT_FILE_NAME,
overwrite_result_file=True, # Set this value true if you want to overwrite the same file.
timeout_in_milliseconds=TIMEOUT_IN_MILLISECONDS
)
output_status_message("-----\nAwaiting download_report...")
download_report(reporting_download_parameters)
经过仔细调试后,似乎程序在尝试执行“reporting_service_manager.py”中的命令时失败了。这是工作流程:
download_report(self, download_parameters):
report_file_path = self.download_file(download_parameters)
然后:
download_file(self, download_parameters):
operation = self.submit_download(download_parameters.report_request)
然后:
submit_download(self, report_request):
self.normalize_request(report_request)
response = self.service_client.SubmitGenerateReport(report_request)
SubmitGenerateReport 启动一系列事件,以调用“service_client.py”中的“_SeviceCall.init ”函数结束,返回异常“Type not found: 'Aggregation'”
try:
response = self.service_client.soap_client.service.__getattr__(self.name)(*args, **kwargs)
return response
except Exception as ex:
if need_to_refresh_token is False \
and self.service_client.refresh_oauth_tokens_automatically \
and self.service_client._is_expired_token_exception(ex):
need_to_refresh_token = True
else:
raise ex
任何人都可以解释一下吗?.
谢谢