尝试使用日期范围获取每小时报告 [英] Trying to get a hourly report using a date range
问题描述
以下是我的v6肥皂请求。 它有效。
Below is my v6 soap request. It works.
如何修改saop请求以便为我提供关键字报告确实每天使用一个开始获取每小时报告和/或结束。
How to I modify the saop request to give me keyword reports do get an hourly report for each day using a start and an end end.
我尝试了以下但是没有用。
I tried the following but it did not work.
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; <聚合>每小时< /聚合>
<Aggregation>Hourly</Aggregation>
&NBSP; < time>
<time>
< CustomDateRangeStart> 01/01/2010< / CustomDateRangeStart>
&NBSP;&NBSP; < CustomDateRangeEnd> 02/01/2010< / CustomDateRangeEnd>
<CustomDateRangeStart>01/01/2010</CustomDateRangeStart>
<CustomDateRangeEnd>02/01/2010</CustomDateRangeEnd>
&NBSP;&NBSP; < / time>
</time>
< S:信封的xmlns:S =" HTTP://schemas.xmlsoap.org/soap/envelope/">结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP; < s:Header>
< h:ApplicationToken i:nil =" true"的xmlns:H =" HTTPS://adcenter.microsoft.com/v6" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance" />
&NBSP;&NBSP; < h:CustomerAccountId i:nil =" true"的xmlns:H =" HTTPS://adcenter.microsoft.com/v6" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance" />
&NBSP;&NBSP; < h:CustomerId i:nil =" true"的xmlns:H =" HTTPS://adcenter.microsoft.com/v6" xmlns:i =" http://www.w3.org/2001/XMLSchema-instance" />
&NBSP;&NBSP; < H:DeveloperToken的xmlns:H =" HTTPS://adcenter.microsoft.com/v6">%S< /小时:DeveloperToken>结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < h:密码xmlns:h =" https://adcenter.microsoft.com/v6">%s< / h:密码>
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < H:用户名的xmlns:H =" HTTPS://adcenter.microsoft.com/v6">%S< /小时:用户名>结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP; < / s:Header>
< s:正文>
< SubmitGenerateReportRequest的xmlns = QUOT; HTTPS://adcenter.microsoft.com/v6">结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP; < ReportRequest i:type =" KeywordPerformanceReportRequest"的xmlns:I =" HTTP://www.w3.org/2001/XMLSchema-instance">结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; <格式> Xml< /格式>
<语言>英语< /语言>
< REPORTNAME>我关键词报告< / REPORTNAME>结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < ReturnOnlyCompleteData> false< / ReturnOnlyCompleteData>
<凝聚>月刊< /聚集>结果,
&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;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; %s
< / Columns>
<过滤>
< AdDistribution>搜索< / AdDistribution>
< ADTYPE我:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < DeliveredMatchType我:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < Keywords i:nil =" true" xmlns:a =" http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < LanguageAndRegion> UnitedStates的< / LanguageAndRegion>结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < /过滤>
<范围>
< AccountIds的xmlns:A =" HTTP://schemas.microsoft.com/2003/10/Serialization/Arrays">结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; <一个:INT>%S< / A:INT>结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < / AccountIds>
<广告组I:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; <广告活动我:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; < / Scope>
<时间>
< CustomDateRangeEnd我:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < CustomDateRangeStart我:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP; < CustomDates我:无= QUOT;真" />结果,
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;
< PredefinedTime> LastSixMonths< / PredefinedTime>
< /时间>
< / ReportRequest>
< / SubmitGenerateReportRequest>
< / s:正文>
< / s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ApplicationToken i:nil="true" xmlns:h="https://adcenter.microsoft.com/v6" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<h:CustomerAccountId i:nil="true" xmlns:h="https://adcenter.microsoft.com/v6" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<h:CustomerId i:nil="true" xmlns:h="https://adcenter.microsoft.com/v6" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<h:DeveloperToken xmlns:h="https://adcenter.microsoft.com/v6">%s</h:DeveloperToken>
<h:Password xmlns:h="https://adcenter.microsoft.com/v6">%s</h:Password>
<h:UserName xmlns:h="https://adcenter.microsoft.com/v6">%s</h:UserName>
</s:Header>
<s:Body>
<SubmitGenerateReportRequest xmlns="https://adcenter.microsoft.com/v6">
<ReportRequest i:type="KeywordPerformanceReportRequest" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Format>Xml</Format>
<Language>English</Language>
<ReportName>My Keyword Report</ReportName>
<ReturnOnlyCompleteData>false</ReturnOnlyCompleteData>
<Aggregation>Monthly</Aggregation>
<Columns>
%s
</Columns>
<Filter>
<AdDistribution>Search</AdDistribution>
<AdType i:nil="true"/>
<DeliveredMatchType i:nil="true"/>
<Keywords i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<LanguageAndRegion>UnitedStates</LanguageAndRegion>
</Filter>
<Scope>
<AccountIds xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:int>%s</a:int>
</AccountIds>
<AdGroups i:nil="true"/>
<Campaigns i:nil="true"/>
</Scope>
<Time>
<CustomDateRangeEnd i:nil="true"/>
<CustomDateRangeStart i:nil="true"/>
<CustomDates i:nil="true"/>
<PredefinedTime>LastSixMonths</PredefinedTime>
</Time>
</ReportRequest>
</SubmitGenerateReportRequest>
</s:Body>
</s:Envelope>
推荐答案
您是否尝试过更改日期范围的指定方式?
Have you tried changing how the date range is being specified?
1。请注意指定日期的详细逐字段方式,
1. Notice the detailed field-by-field way of specifying the date, and
2。我们学到的一个痛苦的教训是结束日期必须在开始日期之前。这是大约6个月前,所以他们可能已经解决了这个问题。
2. A painful lesson we learned was that end date has to go before start date. This was about 6 months ago, so they may have already fixed that problem.
祝你好运。
&NBSP; &NBSP; &NBSP; &NBSP; < Time s:arrayType =" xsd:anyType [2]">
这篇关于尝试使用日期范围获取每小时报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!