Google Adwords API:在APIError上获取标准信息
本文关键字:获取 标准 信息 APIError Adwords API Google | 更新日期: 2023-09-27 18:37:14
有没有办法从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
}
}
我发现很难获得有关特定错误的详细信息(这对于日志记录目的显然很重要)。任何帮助,不胜感激。
您可以预料到错误并查看其
-
fieldPath
-
trigger
-
errorString
-
type
-
reason
更多文档在这里:https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.ApiError