0

有没有办法从 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
        }
    }

我发现很难获得有关特定错误的详细信息(这对于记录目的显然很重要)。任何帮助表示赞赏。

4

1 回答 1

0

您可以预期错误并查看其

  • fieldPath
  • trigger
  • errorString
  • type
  • reason

更多文档在这里:https ://developers.google.com/adwords/api/docs/reference/latest/CampaignService.ApiError

于 2013-10-29T18:51:09.110 回答