LastSyncTimeInUTC字段的预期格式 [英] Expected format of LastSyncTimeInUTC field

查看:92
本文介绍了LastSyncTimeInUTC字段的预期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好, 

最近,我一直在尝试配置BingAds v9 DownloadCampaignsByAccountIds的增量功能。我在发送报告中收到的日期时遇到问题,特别是读取日期崩溃的过程,我在SOAP响应中看到堆栈跟踪
。 

Recently I have been trying to configure the incremental feature of BingAds v9 DownloadCampaignsByAccountIds. I have having issues sending the date that I received in the report, specifically the the process reading the date crashes and I see a stack trace in the SOAP response. 

最初,我正在尝试发送批量下载文件中的日期;其格式为  MM / DD / yyyy hh:mm:ss。 

Initially, I was attempting sending the date that came in the bulk download file; which has the format MM/DD/yyyy hh:mm:ss. 

文档似乎暗示这是正确的事情,甚至虽然它没有格式化为UTC。此行直接来自文档@  http://msdn.microsoft.com /en-US/library/jj885755.aspx  "
下载文件包含
SyncTime 中下载的时间戳   帐户  记录的列。下次请求下载时,请使用时间戳设置  LastSyncTimeInUTC 。"

The documentation seems to imply this is the correct thing to do, even though it is not formatted in UTC. This line is directly from the documentation @ http://msdn.microsoft.com/en-US/library/jj885755.aspx. "The download file contains the time stamp of the download in theSyncTime column of the Account record. Use the time stamp to set LastSyncTimeInUTC the next time that you request a download."


请求:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Header>
      <h:ApplicationToken xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9" xsi:nil="true" />
      <h:CustomerAccountId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXXXX</h:CustomerAccountId>
      <h:CustomerId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXXX</h:CustomerId>
      <h:DeveloperToken xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXXX</h:DeveloperToken>
      <h:Password xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXXXX</h:Password>
      <h:UserName xmlns:h="https://bingads.microsoft.com/CampaignManagement/v9">XXXXXXX</h:UserName>
   </soap:Header>
   <soap:Body xmlns="https://bingads.microsoft.com/CampaignManagement/v9">
      <DownloadCampaignsByAccountIdsRequest>
         <AccountIds xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <a:long>5955408</a:long>
         </AccountIds>
         <Entities>Campaigns AdGroups Ads Keywords CampaignNegativeKeywords AdGroupNegativeKeywords AdGroupProductTargets CampaignSiteLinksAdExtensions AdGroupSiteLinksAdExtensions CampaignTargets</Entities>
         <LastSyncTimeInUTC>04/14/2014 14:38</LastSyncTimeInUTC>
      </DownloadCampaignsByAccountIdsRequest>
   </soap:Body>
</soap:Envelope>

RESPONSE :(删除了空间问题的SOAP响应,但这是故障字符串)

格式化程序在尝试反序列化消息时抛出异常:尝试反序列化参数https://bingads.microsoft时出错。 COM / CampaignManagement / V9:LastSyncTimeInUTC。 InnerException消息是'有一个错误
反序列化类型System.Nullable`1 [[System.DateTime,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = XXXXXXXXXXXXX]]的对象。值'04 / 14/2014 14:38'无法解析为'DateTime'类型。'。  请参阅InnerException获取更多
的详细信息。

推荐答案

您好。

您使用的是哪种编程语言?请尝试
C#
Java ,或
PHP 。例如,LastSyncTimeInUTC的resuting SOAP可能如下所示:

Which programming language are you using? Please try the samples in C#, Java, or PHP. For example the resuting SOAP for LastSyncTimeInUTC might be as follows:

< LastSyncTimeInUTC> 2014-04-10T18:18:31< / LastSyncTimeInUTC>

<LastSyncTimeInUTC>2014-04-10T18:18:31</LastSyncTimeInUTC>

我希望这有帮助!


这篇关于LastSyncTimeInUTC字段的预期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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