UserLocationPerformanceReport反序列化问题 [英] UserLocationPerformanceReport Deserialization Issues

查看:77
本文介绍了UserLocationPerformanceReport反序列化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行v11 / report_requests.py  get_user_location_performance_report_request中的示例代码,并且在出现以下错误时出现问题:'格式化程序在尝试反序列化消息时抛出了异常:
尝试反序列化参数https://bingads.microsoft.com/Reporting/v11:ReportRequest时出错。 InnerException消息是"无效的枚举值","LocationType"无法反序列化为"Microsoft.AdCenter.Advertiser.Reporting.Api.DataContracts.Enum.UserLocationPerformanceReportColumn"类型。
确保存在必要的枚举值,并且如果类型具有DataContractAttribute属性,则使用EnumMemberAttribute属性标记。'。 有关更多详细信息,请参阅InnerException。'

I'm running the example code from v11/report_requests.py get_user_location_performance_report_request and having difficulty with the following error that keeps popping up: 'The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter https://bingads.microsoft.com/Reporting/v11:ReportRequest. The InnerException message was 'Invalid enum value 'LocationType' cannot be deserialized into type 'Microsoft.AdCenter.Advertiser.Reporting.Api.DataContracts.Enum.UserLocationPerformanceReportColumn'. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.'.  Please see InnerException for more details.'

我所引用的代码位于< BingAds-Python -SDK /示例/ BingAdsPythonConsoleExamples / BingAdsPythonConsoleExamples / V11 / report_requests.py。我似乎无法发布带有超链接的问题。

the code that i'm referencing is in BingAds-Python-SDK/examples/BingAdsPythonConsoleExamples/BingAdsPythonConsoleExamples/v11/report_requests.py. I can't seem to post a question with hyperlinks.

我正在使用  bingads == 11.5.8。

I'm using bingads==11.5.8.

推荐答案

感谢您报告此代码示例问题,我们会尽快更新。
LocationType
 列仅适用于 
GeographicPerformanceReportColumn
(提交
GeographicPerformanceReportRequest
)。您可以通过
LocationId >
UserLocationPerformanceReportRequest
+
UserLocationPerformanceReportColumn
。  ;

Thanks for reporting this code sample issue, and we will update it ASAP. The LocationType column is only available with the  GeographicPerformanceReportColumn (when submitting a GeographicPerformanceReportRequest). You can include LocationId via UserLocationPerformanceReportRequest + UserLocationPerformanceReportColumn

祝你好运,

Eric


这篇关于UserLocationPerformanceReport反序列化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆