How to Update Product Partition Tree for an Adgroup?

195 views
Skip to first unread message

Nellle Rickchards

unread,
Nov 19, 2018, 3:56:43 PM11/19/18
to AdWords API and Google Ads API Forum
Creating a product partition tree straight is forward when following your guide (https://developers.google.com/adwords/api/docs/samples/python/shopping-campaigns#build-a-product-partition-tree-for-an-ad-group).

But how do we update a partition tree? For example my tree is subdivide by brands. If my store begins selling a new brand, how would I update my portion tree to include it? I'm having trouble finding any documentation on this.

My scripts are written in Python.

Thanks :-)

Luis Xander Talag (AdWords API Team)

unread,
Nov 20, 2018, 12:46:39 AM11/20/18
to AdWords API and Google Ads API Forum
Hi Nellle,

Kindly refer to the AddProductPartitionTree code example in Python. The diagram shown here is a sample which shows how to use product groups in your campaigns. You could also check the help center article for more details. Any node that is not being further subdivided will be a UNIT. 

If the node is being further subdivided, that should be a SUBDIVISION. Each subdivision should always be completely partitioned by including a Others node (this will have everything else in that category). Also, you need to make sure that the tree is complete after you modify the product partition tree (see modifying product partition trees section for more information). 

Let me know if you have further clarifications.

Thanks,
Luis
AdWords API Team

Nellle Rickchards

unread,
Nov 20, 2018, 10:58:07 AM11/20/18
to AdWords API and Google Ads API Forum
Hello,

 The AddProductPartitionTree works fine my campaign does not have a product group. However, It fails if I wanted to UPDATE the product group by adding a new unit or subdivision. I want to know how to update a PartitionTree (for example: to add a new product line that we did not sell when the product group was created).

Thanks for the help.

Luis Xander Talag (AdWords API Team)

unread,
Nov 20, 2018, 8:57:28 PM11/20/18
to AdWords API and Google Ads API Forum
Hi Nellle,

Can you please provide the complete SOAP request and response logs so I can further investigate your concern? If you have not yet enabled logging, you may refer to this guide for Python on how to do so. 

Thanks,
Kevin
AdWords API Team
Reply all
Reply to author
Forward
0 new messages