Hi, Thanks for the reply, i just tried with the below
---------------------- $helper = new ProductPartitionHelper($var_adgroup_id); $root = $helper->createSubdivision2(); $helper->createUnit($root, new ProductOfferId ("gs-001"), 100000); $result = $adGroupCriterionService->mutate($helper->getOperations()); ----------------- *AddProductPartitionTree* public function createSubdivision2(ProductPartition $parent = null, ProductDimension $value = null) { $division = new ProductPartition('SUBDIVISION'); $division->id = $this->nextId--; // The root node has neither a parent nor a value if (!is_null($parent)) { $division->parentCriterionId = $parent->id; $division->caseValue = $value; } $criterion = new BiddableAdGroupCriterion(); $criterion->adGroupId = $this->adGroupId; $criterion->criterion = $division; $this->createUpdateOperation($criterion); return $division; } private function createUpdateOperation(AdGroupCriterion $criterion) { $operation = new AdGroupCriterionOperation(); $operation->operand = $criterion; $operation->operator = 'SET'; $this->operations[] = $operation; } ---------------------------- It through the eror - criterion parent id NOT VALID if (!is_null($parent)) { $division->parentCriterionId = $parent->id; $division->caseValue = $value; } The Above is Causing the ISSUE ? The Adgroup Product partition have the ID ? if yes, how can we get that ID Thanks -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.