有没有办法从APIError获取标准信息?
MutateJobService mutateJobService = (MutateJobService)user.GetService(AdWordsService.v201309.MutateJobService);
JobResult jobResult = mutateJobService.getResult(new BulkMutateJobSelector { includeStats = true, jobIds = jobIDs });
SimpleMutateResult results = (SimpleMutateResult)jobResult.Item;
if (results.errors != null)
{
foreach (ApiError apiError in results.errors)
{
// get criterion info
}
}
我发现很难获得有关特定错误的详细信息(这对于记录目的来说显然很重要)。任何帮助表示赞赏。
答案 0 :(得分:0)
您可以预料到错误并查看其
fieldPath
trigger
errorString
type
reason
此处有更多文档:https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.ApiError