Can't create root productPartition

33 views
Skip to first unread message

18824...@163.com

unread,
Mar 17, 2018, 6:13:03 AM3/17/18
to AdWords API Forum
Hi,
   Why I can't create productPartition as the example
ProductPartition root = new ProductPartition();
root
.setPartitionType(ProductPartitionType.SUBDIVISION);
root
.setId(-1);
request.xml
response.xml

Luis Xander Talag (AdWords API Team)

unread,
Mar 19, 2018, 3:44:21 AM3/19/18
to AdWords API Forum
Hi,

A ProductPartition of type SUBDIVISION must always be completely partitioned, so all child nodes of a subdivision must have a caseValue of the same type, and every subdivision must contain an "other" node. Please note that, each subdivision must contain an "empty" caseValue of the correct type, representing "all other values". You may check this guide for reference.

Upon checking on your request log and since you are going to create a root product group, what you need to create is the root product partition with UNIT as partitionType. You may refer to this link for sample SOAP request on how to create a product partition with just the root node.

Thanks and regards,
Luis
AdWords API Team

18824...@163.com

unread,
Mar 22, 2018, 6:03:37 AM3/22/18
to AdWords API Forum
Hi,
Thank you for your suggestion, I successfully created the product tree.
Reply all
Reply to author
Forward
0 new messages