BatchErrorCollection 数据对象 - 市场活动管理

定义一个错误对象,该对象包含顶级列表索引的批处理错误详细信息,以及对应于嵌套列表索引的批处理错误列表。

例如,在 AddNegativeKeywordsToEntitiesNestedPartialErrors 响应元素中,顶级错误详细信息对应于服务请求中的市场活动或广告组。 批处理错误的嵌套列表将包括任何特定于你尝试添加到市场活动或广告组的否定关键字的错误。

语法

<xs:complexType name="BatchErrorCollection" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:sequence>
    <xs:element minOccurs="0" name="BatchErrors" nillable="true" type="tns:ArrayOfBatchError" />
    <xs:element minOccurs="0" name="Code" nillable="true" 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="FieldPath" nillable="true" type="xs:string" />
    <xs:element xmlns:q70="http://schemas.datacontract.org/2004/07/System.Collections.Generic" minOccurs="0" name="ForwardCompatibilityMap" nillable="true" type="q70:ArrayOfKeyValuePairOfstringstring" />
    <xs:element minOccurs="0" name="Index" type="xs:int" />
    <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
    <xs:element minOccurs="0" name="Type" nillable="true" type="xs:string" />
  </xs:sequence>
</xs:complexType>

元素

BatchErrorCollection 对象具有以下元素:BatchErrorsCodeDetailsErrorCodeFieldPathForwardCompatibilityMapIndexMessageType

元素 说明 数据类型
BatchErrors 与嵌套列表索引对应的批处理错误列表。 BatchError 数组
代码 一个数字错误代码,用于标识顶级列表索引的错误。 int
详细信息 一条消息,提供有关顶级列表索引的批处理错误的其他详细信息。 此字符串可以为空。 string
ErrorCode 一个符号字符串常量,用于标识顶级列表索引的错误。 string
FieldPath 发生错误的数据对象的 元素的名称。

此值可能会更改,因此不应依赖于当前字符串格式。

并非所有错误都支持此元素。
string
ForwardCompatibilityMap 用于向前兼容性的键和值字符串列表,以避免在当前 API 版本中添加新元素时发生重大更改。

将来的版本中将在此处记录向前兼容性更改。 此对象当前没有向前兼容性更改。
KeyValuePairOfstringstring 数组
索引 失败的请求消息中从零开始的顶级列表索引。 int
消息 描述顶级列表索引的错误的消息。 string
类型 仅供内部使用。 string

要求

服务: CampaignManagementService.svc v13
命名 空间: https://bingads.microsoft.com/CampaignManagement/v13

使用者

AddAdExtensions
AddAdGroupCriterions
AddCampaignCriterions
AddNegativeKeywordsToEntities
DeleteNegativeKeywordsFromEntities
UpdateAdExtensions
UpdateAdGroupCriterions
UpdateCampaignCriterions