V9 CampaignManagementService部分错误关键字广告/更新/删除 [英] V9 CampaignManagementService Partial Errors Keyword Ad / Update / Delete

查看:53
本文介绍了V9 CampaignManagementService部分错误关键字广告/更新/删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

关于关键字添加/删除/更新的部分错误

regarding Partial Errors of keyword adding / deleting / updating

因此,如果我要添加关键字,则会出现PartialErrors在AddKeywords操作上输出参数。正如文档所说,这将包含与可能发生的任何错误有关的所有数据。所以我们假设我们添加了10个关键字,前两个失败了,但其余成功的是
。返回的服务操作的KeywordIds集合将使用longs填充最后8个索引,前2个索引将为null,我明白这是正确的。

So if i am adding Keywords, there is the PartialErrors out parameter on the AddKeywords operation. This, as the docs say, will contain all the data pertaining to any errors that may have occurred. So lets say we added 10 keywords, and first two failed, but the rest succeeded. The returned out KeywordIds collection of the service operation will have the last 8 indexes filled with longs and the first 2 indexes will be null, i understand that to be correct.

如果有任何编辑错误或批处理错误,它们将在PartialErrors out参数中详细说明。在我的示例中,这将包含2个BatchError对象,这些对象将各自具有它们在提交的原始关键字列表中出现的位置的索引
用于添加添加。

If there are any Editorial Errors or Batch Errors, they will be detailed in the PartialErrors out parameter. This would, in my example, contain 2 BatchError objects, these would each have an index of where they occurred in the original list of keywords submitted for adding added.

如果是这种情况,那么我是否需要尝试捕获FaultException< EditorialApiFaultDetail>或FaultException< ApiFaultDetail>当我再打电话给服务部门时? BatchError数据会出现而且EditData会在PartialErrors集合中出现
吗?

If this is the case, then do i need to try to catch the FaultException<EditorialApiFaultDetail> or the FaultException<ApiFaultDetail> when i call the service operation any more ? The BatchError data would be present and the EditorialData would be present in the PartialErrors set wouldnt they ?

此外,是否有任何示例c#代码显示最佳实践?

Also, is there any example c# code to show the best practice for this ?

推荐答案

嗨Giles,

Hi Giles,

感谢您在论坛上提出这个问题。 由于API的行为发生变化以支持编辑上诉流程(请参阅博客文章:

http://advertise.bingads.microsoft.com/en-我们// blogpost / 115726 / bing-ads-blog / new-feature-debut-introduction-editorial-exceptions-in-bing-ads-ppc-sem-advertising)
 您将不再需要处理当你添加
的关键字时,editApiFaultDetail异常不符合我们的编辑标准。

Thank you for raising this question on the forum.  Due to changes in the API's behavior that were released to support the editorial appeals process (see blog post: http://advertise.bingads.microsoft.com/en-us//blogpost/115726/bing-ads-blog/new-feature-debut-introducing-editorial-exceptions-in-bing-ads-ppc-sem-advertising) you will no longer need to handle the EditorialApiFaultDetail exception when a keyword that you are adding does not meet our editorial standards.

我建议你所有的Bing Ads API实现处理更一般的ApiFaultDetail适用的例外。

I would recommend that all of your implementation of the Bing Ads API handle the more general ApiFaultDetail exception where applicable.

我还会指向BingAds.NET类库( http://code.msdn.microsoft.com/BingAdsNET-Class-Library-dc9e204d)作为一个很好的源代码例子。  MSDN中还有
C#代码示例,专门用于故障处理( http://msdn.microsoft.com/en-US/library/bing-ads-overview-accessing-fault-details-csharp.aspx)

I would also point you towards the BingAds.NET class library (http://code.msdn.microsoft.com/BingAdsNET-Class-Library-dc9e204d) as a good source of examples.  There are also C# code samples in MSDN specifically covering fault handling (http://msdn.microsoft.com/en-US/library/bing-ads-overview-accessing-fault-details-csharp.aspx).

如果您有任何其他问题,请与我们联系。

Please let me know if you have any additional questions.


这篇关于V9 CampaignManagementService部分错误关键字广告/更新/删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆