KeywordPerformanceReportColumn

KeywordPerformanceReportColumn

本文介绍了关键字效果报告问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 大家好,使用以下cUrl命令,我试图获取KeywordPerformanceReport,但它在响应中失败并出现以下错误:Using the following cUrl command, I am trying to get the KeywordPerformanceReport but it is failing with the following error in the response:< s:Envelope xmlns:s =" http://schemas.xmlsoap.org/soap/envelope/">< s:Body>< s:Fault>< faultcode xmlns:a =" http://schemas.microsoft.com/ws/2005/05/addressing/none"> a:ActionNotSupported< / faultcode>< faultstring xml:lang =" en-US">由于EndpointDispatcher上的ContractFilter不匹配,因此在接收器处处理带有Action''的消息不能。这可能是由于合同不匹配(发送方与接收方之间的操作不匹配)或发送方与接收方之间的绑定/安全性不匹配。  检查发件人和收件人是否具有相同的合同和相同的约束(包括安全要求,例如邮件,传输,无)。< / faultstring>< / s:Fault>< / s:Body> ;< / s:信封> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope>任何人都可以帮我解决这个问题吗?提前致谢。Can anyone help me resolve this issue? Thanks in advance. C:\curl> curl -k --header" Content-Type:text / xml; charset = UTF-8" --data @ test.xml  https://adcenterapi.microsoft.com/Api/Advertiser/v8/Reporting/ReportingService.svc C:\curl>curl -k --header "Content-Type: text/xml;charset=UTF-8" --data @test.xml https://adcenterapi.microsoft.com/Api/Advertiser/v8/Reporting/ReportingService.svc test.xml文件(机密值重命名为XXX)test.xml file (confidential values are renamed as XXX) ------------------------ ------------------------<?xml version =" 1.0" encoding =" UTF-8"?> < SOAP-ENV:Envelope xmlns:SOAP-ENV =" http://schemas.xmlsoap.org/soap/envelope/"> ; < SOAP-ENV:Header xmlns =" https://adcenter.microsoft.com/v8"> < DeveloperToken> XXX< / DeveloperToken> < UserName> XXX< / UserName> <密码> XXX< /密码> < CustomerAccountId> XXX< / CustomerAccountId> < CustomerId> XXX< / CustomerId> < / SOAP-ENV:标题> < SOAP-ENV:正文xmlns =" https:/ /adcenter.microsoft.com/v8"> < SubmitGenerateReportRequest xmlns =" https://adcenter.microsoft.com/v8"> < ReportRequest i :类型= QUOT; KeywordPerformanceReportRequest" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance"> < Format> Csv< / Format> < Language> ;英语< /语言> < ReportName>我的报告< / ReportName> < ReturnOnlyCompleteData> false< / ReturnOnlyCompleteData> <聚合>每日< /聚合> <列> < KeywordPerformanceReportColumn> AccountId< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> AccountName< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> Keyword< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> KeywordId< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> AdGroupName< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> AdGroupId< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> MatchT ype< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> AveragePosition< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> CampaignName< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> CampaignId< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> Clicks< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> QualityScore< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> Impressions< / KeywordPerformanceReportColumn> ; < KeywordPerformanceReportColumn> DestinationUrl< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> TimePeriod< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn>花费< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> CurrentMaxCpc< / KeywordPerform anceReportColumn> < KeywordPerformanceReportColumn>转化< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> ConversionRate< / KeywordPerformanceReportColumn> < KeywordPerformanceReportColumn> CostPerConversion< / KeywordPerformanceReportColumn> < / Columns> < Scope> < AccountIds xmlns:a =" http://schemas.microsoft.com/2003 / 10 /序列化/数组"> < a:long> XXX< / a:long> < / AccountIds> < /范围> <时间> < PredefinedTime> LastSevenDays< / PredefinedTime> < /时间> < ; / ReportRequest> < / SubmitGenerateReportRequest> < / SOAP-ENV:Body> < / SOAP-ENV:Envelope> <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns="https://adcenter.microsoft.com/v8"><DeveloperToken>XXX</DeveloperToken><UserName>XXX</UserName><Password>XXX</Password><CustomerAccountId>XXX</CustomerAccountId><CustomerId>XXX</CustomerId></SOAP-ENV:Header><SOAP-ENV:Body xmlns="https://adcenter.microsoft.com/v8"><SubmitGenerateReportRequest xmlns="https://adcenter.microsoft.com/v8"><ReportRequest i:type="KeywordPerformanceReportRequest" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Format>Csv</Format><Language>English</Language><ReportName>My Report</ReportName><ReturnOnlyCompleteData>false</ReturnOnlyCompleteData><Aggregation>Daily</Aggregation><Columns><KeywordPerformanceReportColumn>AccountId</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>AccountName</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>Keyword</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>KeywordId</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>AdGroupName</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>AdGroupId</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>MatchType</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>AveragePosition</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>CampaignName</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>CampaignId</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>Clicks</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>QualityScore</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>Impressions</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>DestinationUrl</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>TimePeriod</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>Spend</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>CurrentMaxCpc</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>Conversions</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>ConversionRate</KeywordPerformanceReportColumn><KeywordPerformanceReportColumn>CostPerConversion</KeywordPerformanceReportColumn></Columns><Scope><AccountIds xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:long>XXX</a:long></AccountIds></Scope><Time><PredefinedTime>LastSevenDays</PredefinedTime></Time></ReportRequest></SubmitGenerateReportRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>推荐答案 大家好,我找到了用于使报告正常工作的正确SOAP XML 。以下是适用于我的SOAP示例代码:I figured out the correct SOAP XML to use to get the report working. Following is the SOAP sample code that works for me:< soapenv:Envelope xmlns:soapenv =" schemas.xmlsoap.org /.../" xmlns:v8 =" adcenter.microsoft.com/v8" xmlns:arr =" schemas.microsoft.com/.../Arrays"> <soapenv:Envelope xmlns:soapenv="schemas.xmlsoap.org/.../" xmlns:v8="adcenter.microsoft.com/v8" xmlns:arr="schemas.microsoft.com/.../Arrays">  < soapenv:Header>   <soapenv:Header>  &NBSP;  < v8:UserName> XXX< / v8:UserName>      <v8:UserName>XXX</v8:UserName>  &NBSP;  < v8:密码> XXX< / v8:密码>      <v8:Password>XXX</v8:Password>  &NBSP;  < v8:DeveloperToken> XXX< / v8:DeveloperToken>      <v8:DeveloperToken>XXX</v8:DeveloperToken>  &NBSP;  < v8:CustomerId> XXX< / v8:CustomerId>      <v8:CustomerId>XXX</v8:CustomerId>  &NBSP;  < v8:CustomerAccountId> XXX< / v8:CustomerAccountId>      <v8:CustomerAccountId>XXX</v8:CustomerAccountId>  &NBSP;  < v8:ApplicationToken>< / v8:ApplicationToken>      <v8:ApplicationToken></v8:ApplicationToken>  < / soapenv:标题>   </soapenv:Header>  < soapenv:Body>   <soapenv:Body>  &NBSP;  < v8:SubmitGenerateReportRequest>      <v8:SubmitGenerateReportRequest>  &NBSP; &NBSP; &NBSP; <! - 可选: - >         <!--Optional:-->  &NBSP; &NBSP; &NBSP; < v8:ReportRequest i:type =" v8:KeywordPerformanceReportRequest" xmlns:i =" www.w3.org/.../XMLSchema-instance" >         <v8:ReportRequest i:type="v8:KeywordPerformanceReportRequest" xmlns:i="www.w3.org/.../XMLSchema-instance">  &NBSP; &NBSP; &NBSP; &NBSP;  <! - 可选: - >            <!--Optional:-->  &NBSP; &NBSP; &NBSP; &NBSP;  < v8:格式> Csv< / v8:格式>            <v8:Format>Csv</v8:Format>  &NBSP; &NBSP; &NBSP; &NBSP;  <! - 可选: - >            <!--Optional:-->  &NBSP; &NBSP; &NBSP; &NBSP;  < v8:语言>英文< / v8:语言>            <v8:Language>English</v8:Language>  &NBSP; &NBSP; &NBSP; &NBSP;  <! - 可选: - >            <!--Optional:-->  &NBSP; &NBSP; &NBSP; &NBSP;  < v8:ReportName>我的报告< / v8:ReportName>            <v8:ReportName>My Report</v8:ReportName>  &NBSP; &NBSP; &NBSP; &NBSP;  <! - 可选: - >            <!--Optional:-->  &NBSP; &NBSP; &NBSP; &NBSP;  < v8:ReturnOnlyCompleteData> false< / v8:ReturnOnlyCompleteData>            <v8:ReturnOnlyCompleteData>false</v8:ReturnOnlyCompleteData>< v8:Aggregation> Daily< / v8:Aggregation> <v8:Aggregation>Daily</v8:Aggregation> < v8:Columns> <v8:Columns>< v8:KeywordPerformanceReportColumn> AccountId< / v8:KeywordPerformanceReportColumn> <v8:KeywordPerformanceReportColumn>AccountId</v8:KeywordPerformanceReportColumn>< v8:KeywordPerformanceReportColumn> AccountName< / v8:KeywordPerformanceReportColumn> <v8:KeywordPerformanceReportColumn>AccountName</v8:KeywordPerformanceReportColumn>< v8:KeywordPerformanceReportColumn> Keyword< / v8:KeywordPerformanceReportColumn> <v8:KeywordPerformanceReportColumn>Keyword</v8:KeywordPerformanceReportColumn>< v8:KeywordPerformanceReportColumn> KeywordId< / v8: KeywordPerformanceReportColumn> <v8:KeywordPerformanceReportColumn>KeywordId</v8:KeywordPerformanceReportColumn>< v8:KeywordPerformanceReportColumn> AdGroupName< / v8:KeywordPerformanceReportColumn> <v8:KeywordPerformanceReportColumn>AdGroupName</v8:KeywordPerformanceReportColumn>< v8:KeywordPerformanceReportColumn> CostPerConversion< / v8:KeywordPerformanceReportColumn> <v8:KeywordPerformanceReportColumn>CostPerConversion</v8:KeywordPerformanceReportColumn>< / v8:Columns> </v8:Columns>< v8:Scope> <v8:Scope>< v8: AccountIds> <v8:AccountIds>< arr:long> XXX< / arr:long> <arr:long>XXX</arr:long>< / v8:AccountIds> </v8:AccountIds>< / v8:范围> </v8:Scope>< v8:时间> <v8:Time>< v8:PredefinedTime> LastSevenDays< / v8:PredefinedTime> ; <v8:PredefinedTime>LastSevenDays</v8:PredefinedTime>< / v8:时间> </v8:Time>< / v8:ReportRequest> </v8:ReportRequest>< / v8:SubmitGenerateReportRequest> </v8:SubmitGenerateReportRequest>< / soapenv:Body> </soapenv:Body>< / soapenv:Envelope> </soapenv:Envelope> 这篇关于关键字效果报告问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-25 19:34