无效的客户端数据。有关详细信息,请检查SOAP故障详细信息 [英] Invalid client data.Check the SOAP fault details for more information
问题描述
我正在使用BingAds Api for excel addin。在生成业务报告时,在Reporting
ServiceManager.cs文件中抛出了CouldNotSubmitReportDownloadingException。
私人异步任务< ReportingDownloadOperation> SubmitDownloadAsyncImpl(ReportRequest request)
&NBSP; &NBSP; &NBSP; {
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; var submitRequest = new SubmitGenerateReportRequest {ReportRequest = request,};
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; SubmitGenerateReportResponse回复;
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP;使用(var apiService = new ServiceClient< IReportingService>(_ authorizationData,_ apiEnvironment))
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; {
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;试试
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; {
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; response = await apiService.CallAsync((s,r)=> s.SubmitGenerateReportAsync(r),submitRequest).ConfigureAwait(false);
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; }¥b $ b &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; catch(例外e)
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; {
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;抛出新的CouldNotSubmitReportingDownloadException("提交下载操作失败。",e);
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; }&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; }
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP;返回新的ReportingDownloadOperation(response.ReportRequestId,_authorizationData,response.TrackingId,_ apiEnvironment)
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; {
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; StatusPollIntervalInMilliseconds = StatusPollIntervalInMilliseconds,
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; DownloadHttpTimeout = DownloadHttpTimeout
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; };
&NBSP; &NBSP; &NBSP; }
在Fiddler日志中,低于响应即将到来。
s:Envelope [xmlns:s = http://schemas.xmlsoap.org/soap/envelope/]
s:标题
< h:ApplicationToken i:nil =" true"的xmlns:H =" HTTPS://bingads.microsoft.com/Reporting/v12"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance" />
h:AuthenticationToken [xmlns:h = https://bingads.microsoft.com/Reporting/v12]
***
h:CustomerAccountId [xmlns:h = https://guideads.microsoft.com/Reporting/v12]
***
h:CustomerId [xmlns:h = https: //bing.com.microsoft.com/Reporting/v12]
***
h:DeveloperToken [xmlns:h = https://bingads.microsoft.com/Reporting/ v12]
***
< h:密码i:nil =" true"的xmlns:H =" HTTPS://bingads.microsoft.com/Reporting/v12"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance" />
$
< h:用户名i:nil =" true"的xmlns:H =" HTTPS://bingads.microsoft.com/Reporting/v12"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance" />
$
s:正文
SubmitGenerateReportRequest [xmlns = https://guideads.microsoft.com/Reporting/v12]
ReportRequest [i :type = AccountPerformanceReportRequest xmlns:i = http://www.w3.org/2001/XMLSchema-instance]
< ExcludeColumnHeaders i:nil =" true"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12" />
$
< ExcludeReportFooter i:nil =" true"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12" />
$
< ExcludeReportHeader i:nil =" true"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12" />
格式
Xml
语言
英语
ReportName
帐户效果报告
ReturnOnlyCompleteData
false
汇总
每日¥ b $ b列数$
AccountPerformanceReportColumn
账户号码
AccountPerformanceReportColumn
印象数$
AccountPerformanceReportColumn
点击
AccountPerformanceReportColumn
Ctr
AccountPerformanceReportColumn
AverageCpc
AccountPerformanceReportColumn
支出
AccountPerformanceReportColumn
ConversionRate
AccountPerformanceReportColumn
转换
AccountPerformanceReportColumn
收入
AccountPerformanceReportColumn
ImpressionSharePercent
< Filter i:nil ="真"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12" />
$
范围
AccountIds [xmlns:a = http://schemas.microsoft.com/2003/10/Serialization/Arrays]
a:长
155195
时间
CustomDateRangeEnd
日期
1
月份
1
年份
1
CustomDateRangeStart
日
1周
月份b
年b
1 br />
< PredefinedTime i:nil =" true"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12" />
$
< ReportTimeZone i:nil =" true"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance"的xmlns = QUOT; HTTPS://bingads.microsoft.com/Reporting/v12" />
$
您是否也捕获了XML响应?上面的请求看起来不完整,即缺少一些标签(当您将其粘贴到论坛时可能会出现格式问题),但如果您确实将开始和结束年份设置为"1",则设计将失败。可能还有其他
错误,但我建议从日期范围开始。
我希望这有帮助,
Eric
I am using BingAds Api for excel addin. While generating Bussiness Report, CouldNotSubmitReportDownloadingException is thrown in Reporting ServiceManager.cs file.
private async Task<ReportingDownloadOperation> SubmitDownloadAsyncImpl(ReportRequest request)
{
var submitRequest = new SubmitGenerateReportRequest {ReportRequest = request,};
SubmitGenerateReportResponse response;
using (var apiService = new ServiceClient<IReportingService>(_authorizationData, _apiEnvironment))
{
try
{
response = await apiService.CallAsync((s, r) => s.SubmitGenerateReportAsync(r), submitRequest).ConfigureAwait(false);
}
catch (Exception e)
{
throw new CouldNotSubmitReportingDownloadException("Submit download operation failed.", e);
}
}
return new ReportingDownloadOperation(response.ReportRequestId, _authorizationData, response.TrackingId, _apiEnvironment)
{
StatusPollIntervalInMilliseconds = StatusPollIntervalInMilliseconds,
DownloadHttpTimeout = DownloadHttpTimeout
};
}
In Fiddler log,below response is coming.
s:Envelope [ xmlns:s=http://schemas.xmlsoap.org/soap/envelope/ ]s:Header
<h:ApplicationToken i:nil="true" xmlns:h="https://bingads.microsoft.com/Reporting/v12" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
h:AuthenticationToken [ xmlns:h=https://bingads.microsoft.com/Reporting/v12 ]
***
h:CustomerAccountId [ xmlns:h=https://bingads.microsoft.com/Reporting/v12 ]
***
h:CustomerId [ xmlns:h=https://bingads.microsoft.com/Reporting/v12 ]
***
h:DeveloperToken [ xmlns:h=https://bingads.microsoft.com/Reporting/v12 ]
***
<h:Password i:nil="true" xmlns:h="https://bingads.microsoft.com/Reporting/v12" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
<h:UserName i:nil="true" xmlns:h="https://bingads.microsoft.com/Reporting/v12" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
s:Body
SubmitGenerateReportRequest [ xmlns=https://bingads.microsoft.com/Reporting/v12 ]
ReportRequest [ i:type=AccountPerformanceReportRequest xmlns:i=http://www.w3.org/2001/XMLSchema-instance ]
<ExcludeColumnHeaders i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bingads.microsoft.com/Reporting/v12" />
<ExcludeReportFooter i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bingads.microsoft.com/Reporting/v12" />
<ExcludeReportHeader i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bingads.microsoft.com/Reporting/v12" />
Format
Xml
Language
English
ReportName
Account Performance Report
ReturnOnlyCompleteData
false
Aggregation
Daily
Columns
AccountPerformanceReportColumn
AccountNumber
AccountPerformanceReportColumn
Impressions
AccountPerformanceReportColumn
Clicks
AccountPerformanceReportColumn
Ctr
AccountPerformanceReportColumn
AverageCpc
AccountPerformanceReportColumn
Spend
AccountPerformanceReportColumn
ConversionRate
AccountPerformanceReportColumn
Conversions
AccountPerformanceReportColumn
Revenue
AccountPerformanceReportColumn
ImpressionSharePercent
<Filter i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bingads.microsoft.com/Reporting/v12" />
Scope
AccountIds [ xmlns:a=http://schemas.microsoft.com/2003/10/Serialization/Arrays ]
a:long
155195
Time
CustomDateRangeEnd
Day
1
Month
1
Year
1
CustomDateRangeStart
Day
1
Month
1
Year
1
<PredefinedTime i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bingads.microsoft.com/Reporting/v12" />
<ReportTimeZone i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://bingads.microsoft.com/Reporting/v12" />
Did you also capture the XML response? The request above appears incomplete i.e., missing some tags (perhaps a formatting issue when you pasted it into the forum), but if you did set start and end year to '1' that would fail by design. There might be other errors as well, but I suggest starting with the date range.
I hope this helps,
Eric
这篇关于无效的客户端数据。有关详细信息,请检查SOAP故障详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!