BatchError 資料物件 - 大量
定義大量批次錯誤物件,以識別要求訊息中造成作業失敗的專案批次內的專案,並描述失敗的原因。
語法
<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="FieldPath" nillable="true" type="xs:string" />
<xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" minOccurs="0" name="ForwardCompatibilityMap" nillable="true" type="q3: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>
元素
BatchError物件具有下列元素:Code、Details、ErrorCode、FieldPath、ForwardCompatibilityMap、Index、Message、Type。
元素 | 說明 | 資料類型 |
---|---|---|
程式碼 | 識別錯誤的數值錯誤碼。 | int |
詳細資料 | 提供批次錯誤其他詳細資料的訊息。 此字串可以是空的。 | string |
ErrorCode | 識別錯誤的符號字串常數。 例如, UserIsNotAuthorized。 | string |
FieldPath | 保留供日後使用。 | string |
ForwardCompatibilityMap | 用於向前相容性的索引鍵和值字串清單,以避免在目前 API 版本中新增新元素時中斷變更。 | KeyValuePairOfstringstring 數 組 |
索引 | 要求訊息中專案批次中以零起始的索引,該索引失敗。 | int |
郵件 | 描述錯誤的訊息。 如需疑難排解和錯誤處理的詳細資訊,請 參閱處理服務錯誤和例外 狀況和 作業錯誤碼。 |
string |
類型 | 保留供日後使用。 | string |
需求
服務: BulkService.svc v13
命名 空間: https://bingads.microsoft.com/CampaignManagement/v13