报告服务返回“未选择维度”错误 [英] Reporting service returns "No dimension selected" error

查看:64
本文介绍了报告服务返回“未选择维度”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试按帐户获取广告统计信息并获得2015年错误。我无法理解,哪一栏是必需的。

I try to get ads statistics by account and get 2015 error. I can not understand, which column is required.

===请求

b'<?xml version =" ; 1.0" encoding =" UTF-8"?>< SOAP-ENV:Envelope xmlns:SOAP-ENV =" http://schemas.xmlsoap.org/soap/envelope/"的xmlns:的xsi = QUOT; HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns:TNS = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12"
xmlns:ns0 =" https://guideads.microsoft.com/Reporting/v12"的xmlns:NS1 = QUOT; HTTP://schemas.xmlsoap.org/soap/envelope/"的xmlns:ns2的= QUOT; HTTP://schemas.microsoft.com/2003/10/Serialization/Arrays">< SOAP-ENV:页眉和GT;< TNS:AuthenticationToken> MY_AUTHENTICATION_TOKEN< / TNS:AuthenticationToken>< TNS :CustomerAccountId> 150174684< / TNS:CustomerAccountId>< TNS:客户ID> 250219386< / TNS:客户ID>< TNS:DeveloperToken> MY_DEVELOPER_TOKEN< / TNS:DeveloperToken>< / SOAP-ENV:页眉和GT;< NS1:身体与GT ;< ns0:SubmitGenerateReportRequest>< ns0:ReportRequest
xsi:type =" ns0:AccountPerformanceReportRequest">< ns0:ExcludeColumnHeaders> false< / ns0:ExcludeColumnHeaders>< ns0:ExcludeReportFooter> false< / NS0:ExcludeReportFooter>< NS0:ExcludeReportHeader>假LT; / NS0:ExcludeReportHeader>< NS0:格式>的CSV< / NS0:格式>< NS0:语言>英语< / NS0:语言与GT;< NS0:REPORTNAME>性能
报告< / ns0:ReportName>< ns0:ReturnOnlyCompleteData> false< / ns0:ReturnOnlyCompleteData>< ns0:Agg regation>每日和LT; / NS0:汇聚>< NS0:列/>< NS0:范围>< NS0:AccountIds>< NS2:长> 150174684< / NS2:长>< / NS0:AccountIds>< ; / NS0:范围>< NS0:时间>< NS0:CustomDateRangeEnd>< NS0:日→4< / NS0:日>< NS0:月→2< / NS0:月>< NS0:年份> 2019< / NS0:年份>< / NS0:CustomDateRangeEnd>< NS0:CustomDateRangeStart>< NS0:日→1< / NS0:日>< NS0:月→1< / NS0:月>< NS0:一年> 2018< / NS0:年>< / NS0:CustomDateRangeStart>< NS0:ReportTimeZone> GreenwichMeanTimeDublinEdinburghLisbonLondon< / NS0:ReportTimeZone>< / NS0:时间>< / NS0:的ReportRequest>< / NS0:SubmitGenerateReportRequest> < / ns1:Body>< / SOAP-ENV:Envelope>'
$


===回复

< s:信封的xmlns:S =" HTTP://schemas.xmlsoap.org/soap/envelope/">< S:身体与GT;< S:故障><的faultcode> S:服务器16; /的faultcode>< faultstring XML:朗= QUOT;的en-US" >无效的客户数据。检查SOAP故障详细信息以获取更多
信息< / faultstring>< detail>< ApiFaultDetail xmlns =" https://bingads.microsoft.com/Reporting/v12" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance">< TrackingId xmlns =" https://adapi.microsoft.com"> 7f5cc410-a1e2-42e1-a2d8 -ea6f0ac2cbea< / TrackingId>< BatchErrors>< OperationErrors>< OperationError>< Code> 2015< / Code>< Details> No
尺寸选择。< / Details>< ErrorCode> RequiredColumnsNotSelected< / ErrorCode>< Message>指定的报告请求未指定此报告类型的所有必需列。请提交报告请求,其中包含此报告类型所需的列
,以及可选包含在报告中的其他列。< / Message>< / OperationError>< / OperationErrors>< / ApiFaultDetail> ;< / detail>< / s:故障>< / s:正文>< / s:信封>

=== Request
b'<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v12" xmlns:ns0="https://bingads.microsoft.com/Reporting/v12" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><SOAP-ENV:Header><tns:AuthenticationToken>MY_AUTHENTICATION_TOKEN</tns:AuthenticationToken><tns:CustomerAccountId>150174684</tns:CustomerAccountId><tns:CustomerId>250219386</tns:CustomerId><tns:DeveloperToken>MY_DEVELOPER_TOKEN</tns:DeveloperToken></SOAP-ENV:Header><ns1:Body><ns0:SubmitGenerateReportRequest><ns0:ReportRequest xsi:type="ns0:AccountPerformanceReportRequest"><ns0:ExcludeColumnHeaders>false</ns0:ExcludeColumnHeaders><ns0:ExcludeReportFooter>false</ns0:ExcludeReportFooter><ns0:ExcludeReportHeader>false</ns0:ExcludeReportHeader><ns0:Format>Csv</ns0:Format><ns0:Language>English</ns0:Language><ns0:ReportName>Performance Report</ns0:ReportName><ns0:ReturnOnlyCompleteData>false</ns0:ReturnOnlyCompleteData><ns0:Aggregation>Daily</ns0:Aggregation><ns0:Columns/><ns0:Scope><ns0:AccountIds><ns2:long>150174684</ns2:long></ns0:AccountIds></ns0:Scope><ns0:Time><ns0:CustomDateRangeEnd><ns0:Day>4</ns0:Day><ns0:Month>2</ns0:Month><ns0:Year>2019</ns0:Year></ns0:CustomDateRangeEnd><ns0:CustomDateRangeStart><ns0:Day>1</ns0:Day><ns0:Month>1</ns0:Month><ns0:Year>2018</ns0:Year></ns0:CustomDateRangeStart><ns0:ReportTimeZone>GreenwichMeanTimeDublinEdinburghLisbonLondon</ns0:ReportTimeZone></ns0:Time></ns0:ReportRequest></ns0:SubmitGenerateReportRequest></ns1:Body></SOAP-ENV:Envelope>'

=== Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Server</faultcode><faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information</faultstring><detail><ApiFaultDetail xmlns="https://bingads.microsoft.com/Reporting/v12" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId xmlns="https://adapi.microsoft.com">7f5cc410-a1e2-42e1-a2d8-ea6f0ac2cbea</TrackingId><BatchErrors/><OperationErrors><OperationError><Code>2015</Code><Details>No Dimension selected.</Details><ErrorCode>RequiredColumnsNotSelected</ErrorCode><Message>The specified report request does not specify all the required columns for this report type. Please submit a report request with the required columns for this report type, and optionally additional columns that are to be included in the report.</Message></OperationError></OperationErrors></ApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>

推荐答案

你好。

根据
doc
你需要一个或多个性能统计数据,例如'点击'。

Per the doc you'll need one or more performance statistics e.g., 'Clicks'.

我希望这会有所帮助!

I hope this helps!

Eric


这篇关于报告服务返回“未选择维度”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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