尝试使用日期范围获取每小时报告

编程入门 行业动态 更新时间:2024-10-28 08:25:59
本文介绍了尝试使用日期范围获取每小时报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

以下是我的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.

<聚合>每小时< /聚合>

<Aggregation>Hourly</Aggregation>

< time>

<time>

< CustomDateRangeStart> 01/01/2010< / CustomDateRangeStart> < CustomDateRangeEnd> 02/01/2010< / CustomDateRangeEnd>

<CustomDateRangeStart>01/01/2010</CustomDateRangeStart> <CustomDateRangeEnd>02/01/2010</CustomDateRangeEnd>

< / time>

</time>

< S:信封的xmlns:S =" HTTP://schemas.xmlsoap/soap/envelope/">结果, < s:Header> < h:ApplicationToken i:nil =" true"的xmlns:H =" HTTPS://adcenter.microsoft/v6" xmlns:i =" http://www.w3/2001/XMLSchema-instance" /> < h:CustomerAccountId i:nil =" true"的xmlns:H =" HTTPS://adcenter.microsoft/v6" xmlns:i =" http://www.w3/2001/XMLSchema-instance" /> < h:CustomerId i:nil =" true"的xmlns:H =" HTTPS://adcenter.microsoft/v6" xmlns:i =" http://www.w3/2001/XMLSchema-instance" /> < H:DeveloperToken的xmlns:H =" HTTPS://adcenter.microsoft/v6">%S< /小时:DeveloperToken>结果, < h:密码xmlns:h =" adcenter.microsoft/v6">%s< / h:密码> < H:用户名的xmlns:H =" HTTPS://adcenter.microsoft/v6">%S< /小时:用户名>结果, < / s:Header> < s:正文> < SubmitGenerateReportRequest的xmlns = QUOT; HTTPS://adcenter.microsoft/v6">结果, < ReportRequest i:type =" KeywordPerformanceReportRequest"的xmlns:I =" HTTP://www.w3/2001/XMLSchema-instance">结果,&NBSP ; <格式> Xml< /格式> <语言>英语< /语言> < REPORTNAME>我关键词报告< / REPORTNAME>结果, < ReturnOnlyCompleteData> false< / ReturnOnlyCompleteData> <凝聚>月刊< /聚集>结果, <列>结果, %s < / Columns> <过滤> < AdDistribution>搜索< / AdDistribution> < ADTYPE我:无= QUOT;真" />结果,&NBSP ; < DeliveredMatchType我:无= QUOT;真" />结果,&NBSP ; < Keywords i:nil =" true" xmlns:a =" http://schemas.microsoft/2003/10/Serialization/Arrays" /> < LanguageAndRegion> UnitedStates的< / LanguageAndRegion>结果, < /过滤> <范围> < AccountIds的xmlns:A =" HTTP://schemas.microsoft/2003/10/Serialization/Arrays">结果, <一个:INT>%S< / A:INT>结果,&NBSP ; < / AccountIds> <广告组I:无= QUOT;真" />结果,&NBSP ; <广告活动我:无= QUOT;真" />结果,&NBSP ; < / Scope> <时间> < CustomDateRangeEnd我:无= QUOT;真" />结果,&NBSP ; < CustomDateRangeStart我:无= QUOT;真" />结果,&NBSP ; < CustomDates我:无= QUOT;真" />结果,&NBSP ; < PredefinedTime> LastSixMonths< / PredefinedTime> < /时间> < / ReportRequest> < / SubmitGenerateReportRequest> < / s:正文> < / s:Envelope>

<s:Envelope xmlns:s="schemas.xmlsoap/soap/envelope/"> <s:Header> <h:ApplicationToken i:nil="true" xmlns:h="adcenter.microsoft/v6" xmlns:i="www.w3/2001/XMLSchema-instance"/> <h:CustomerAccountId i:nil="true" xmlns:h="adcenter.microsoft/v6" xmlns:i="www.w3/2001/XMLSchema-instance"/> <h:CustomerId i:nil="true" xmlns:h="adcenter.microsoft/v6" xmlns:i="www.w3/2001/XMLSchema-instance"/> <h:DeveloperToken xmlns:h="adcenter.microsoft/v6">%s</h:DeveloperToken> <h:Password xmlns:h="adcenter.microsoft/v6">%s</h:Password> <h:UserName xmlns:h="adcenter.microsoft/v6">%s</h:UserName> </s:Header> <s:Body> <SubmitGenerateReportRequest xmlns="adcenter.microsoft/v6"> <ReportRequest i:type="KeywordPerformanceReportRequest" xmlns:i="www.w3/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="schemas.microsoft/2003/10/Serialization/Arrays"/> <LanguageAndRegion>UnitedStates</LanguageAndRegion> </Filter> <Scope> <AccountIds xmlns:a="schemas.microsoft/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.

祝你好运。

< Time s:arrayType =" xsd:anyType [2]"> <Time s:arrayType="xsd:anyType[2]">

更多推荐

尝试使用日期范围获取每小时报告

本文发布于:2023-10-28 20:06:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1537644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:每小时   日期   报告

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!