ApplyProductPartitionActions方法和部分错误的问题 [英] Issue with ApplyProductPartitionActions method and partial errors

查看:69
本文介绍了ApplyProductPartitionActions方法和部分错误的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们希望通过以下方法创建新的产品分区:ApplyProductPartitionActions

https://msdn.microsoft。 com / zh-CN / library / 1a1cd474-5095-436c-a9ae-b372fbd30de8



此方法可用于批处理模式,最多可创建5 000个操作。



$
假设我们在一个广告组内。



如果我们使用方法1动作:

- 如果我们使用过滤器创建产品组分区而不是不存在,则创建产品分区

- 如果我们创建产品使用与现有过滤器相同的过滤器进行分组,我们得到重复错误(这是正常的)



如果我们将此方法用于多个操作,我们遇到的问题是如果对于其中一个操作我们有错误,该方法将不会创建任何产品分区,即使某些操作是好的。







例如:



- 标准操作A不存在

- 标准操作B不存在

- 标准操作C存在

- 标准操作D不存在



我们推出
ApplyProductPartitionActions



结果如下:



A)错误代码:4150(CampaignServiceRelatedProductPartitionActionError):同一广告组的产品分区操作有错误。

B)ErrorCode:4150( CampaignServiceRelatedProductPartitionActionError):同一广告组的产品分区操作有错误。

C)错误代码:4129(CampaignServiceDuplicateProductConditions):产品分区节点的子节点不能包含重复的产品条件。

D)错误代码:4150(CampaignServiceRelatedProductPartitionActionError):同一广告组的产品分区操作有错误。



所以没有Pro尽管可以创建产品分区A,B,D,但仍然创建了管道分区?
$




为什么此方法不允许部分创建?



为什么我们不能有部分成功,因为它应该在阅读文档时起作用吗?

https://msdn.microsoft.com/en-US/library/bing -ads-error-handling-guide.aspx



如果我们想要进行部分创作,我们可以做些什么

- 在我们的示例中,表示已创建产品分区A,B和D.



非常感谢您的帮助。



问候。

Hi,

We want to create new Product Partitions thanks to the method: ApplyProductPartitionActions
https://msdn.microsoft.com/en-us/library/1a1cd474-5095-436c-a9ae-b372fbd30de8

This method can be used in batch mode to create up to 5 000 Actions.


Let say we are inside one Ad Group.

If we use the method with 1 Action:
- if we create a Product Group partition with a filter than does not exist, the Product Partition is created
- if we create a Product Group partition with the same filter than an existing one, we get an Duplicate error (it's normal)

If we use this method with several Actions, the issue we have is that if for one of the Action we have an error, the method will not create any Product Partitions, even if some Actions were good.



For example:

- Criterion Action A does not exists
- Criterion Action B does not exists
- Criterion Action C exists
- Criterion Action D does not exists

We launch
ApplyProductPartitionActions

Here is the result:

A) Error Code : 4150 (CampaignServiceRelatedProductPartitionActionError) : Product partition action for the same ad group has an error.
B) ErrorCode : 4150 (CampaignServiceRelatedProductPartitionActionError) : Product partition action for the same ad group has an error.
C) Error Code : 4129 (CampaignServiceDuplicateProductConditions) : Children of a product partition node cannot contain duplicate product conditions.
D) Error Code : 4150 (CampaignServiceRelatedProductPartitionActionError ): Product partition action for the same ad group has an error.

So no Product Partition at all were created, though Product Partition A,B,D could have been created?


Why this method does not allow Partial creation? 

Why can't we have Partial Success, as it is supposed to work when reading documentation?
https://msdn.microsoft.com/en-US/library/bing-ads-error-handling-guide.aspx

What could we do if we want Partial Creation work?
-In our example, means Product Partition A,B, and D created.

Many thanks for helping.

Regards.

推荐答案

您好。

您必须提交一个完整的树,才能使呼叫成功,如< a href ="https://msdn.microsoft.com/en-us/library/bing-ads-campaign-management-bing-shopping-campaigns.as px">
Bing购物广告系列指南。如果任何标准操作失败,则将拒绝所有剩余的标准操作,并且此列表中的所有元素都不为空。对于可能已成功的标准,将返回一般错误
CampaignServiceRelatedProductPartitionActionError 在上面的示例
中)解释了相关实体失败。有关详细信息,请参阅

ApplyProductPartitionActionsResponse
。这是很好的反馈,我们应该在
上添加一个注释
指南
提到相同的,即ApplyProductPartitionActions包括签名中的部分错误;但是,只会填充响应中的一个列表(AdGroupCriterionIds或PartialErrors)。 

You must submit a complete tree for the call to succeed, as mentioned in the Bing Shopping Campaigns guide. If any criterion action failed, then all remaining criterion actions will be rejected, and none of the elements in this list will be null. For criterion that might have otherwise succeeded, a generic error will be returned (CampaignServiceRelatedProductPartitionActionError in your example above) which explains that a related entity failed. For more information please see ApplyProductPartitionActionsResponse. This is great feedback, and we should add a note to the guide mentioning the same i.e. ApplyProductPartitionActions includes partial errors in the signature; however, only one of the lists in the response (AdGroupCriterionIds or PartialErrors) will be populated. 

我希望这会有所帮助!


这篇关于ApplyProductPartitionActions方法和部分错误的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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