BatchError 数据对象 - Ad Insight

定义一个 Ad Insight 批处理错误对象,该对象标识请求消息中导致操作失败的项批中的项,并描述失败的原因。

语法

<xs:complexType name="BatchError" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:sequence>
    <xs:element minOccurs="0" name="Code" type="xs:int" />
    <xs:element minOccurs="0" name="Details" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="ErrorCode" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="Index" type="xs:int" />
    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
  </xs:sequence>
</xs:complexType>

元素

BatchError 对象具有以下元素:CodeDetailsErrorCodeIndexMessage

元素 说明 数据类型
代码 标识错误的数值错误代码。 int
详细信息 一条消息,提供有关批处理错误的其他详细信息。 此字符串可以为空。 string
ErrorCode 标识错误的符号字符串常量。 例如 UserIsNotAuthorized string
索引 失败的请求消息中项批中的项的从零开始的索引。 int
消息 描述错误的消息。

有关故障排除和错误处理的详细信息,请参阅 处理服务错误和异常操作错误代码
string

要求

服务: AdInsightService.svc v13
Namespace: https://bingads.microsoft.com/AdInsight/v13

使用者

ApiFaultDetail
ApplyRecommendations
DismissRecommendations
GetTextAssetSuggestionsByFinalUrls
SetAutoApplyOptInStatus
TagRecommendations