Hi Guys,
ProductPartitionTree partitionTree = ProductPartitionTree.createAdGroupTree(adWordsServices, session, adGroup.getId());
ProductPartitionNode rootNode = partitionTree.getRoot().removeAllChildren();
rootNode = rootNode.asSubdivision();
rootNode.addChild(
ProductDimensions
.createCanonicalCondition(null))
.asBiddableUnit()
.setBid(50000L);
AdGroupCriterionServiceInterface adGroupCriterionService = adWordsServices.get(session, AdGroupCriterionServiceInterface.class);
List<AdGroupCriterionOperation> mutateOperations = partitionTree.getMutateOperations();
adGroupCriterionService.mutate(mutateOperations.toArray(new AdGroupCriterionOperation[0]));
I have two questions here:
1. This above code creates a new partition for all products under the root node. Is there a way to put all products under the root node itself? Is there a difference?
2. We want to create product partitions based on a price range? How do we approach this? Is custom labels the only way? I believe using custom labels will require us to re-export all products to Google merchant again. i was hoping there is another way to do this.
Thanks
Prashant