Hi there,
Thanks for reaching out to the Google Ads API Forum.
When creating a tree, you may need to specify the parent-child relationships between nodes. However, until a criterion has been created on the server we do not have a criterion ID with which to refer to it. Also, each node in the tree is either a subdivision or a unit, as defined by ListingGroupType. A subdivision introduces a new level in the tree, while units are leaves of the tree. Each subdivision must always be completely partitioned, so it must contain a node representing Other. In the example, the root and Hotel Class: (Other) nodes are subdivisions. This tree structure with subdivisions and units lets you set bids at the unit level and also ensures that every hotel listing falls into one and only one unit node in the tree.
That being said, you need at least one unit node in order to make a tree valid. To create a working tree, I recommend you make use of API explorer present on the right side of the page to build your JSON payload and send the REST API request through your Node JS program.
![]() |
Google Ads API Team |