Hi team , I am currently working on product partition, getting following error
An error has occurred: [RequiredError.REQUIRED @ operations[3].operand.criterion.caseValue.type] This is my code, $root = $helper->createSubdivision(); $helper->createUnit($root, new ProductType('PRODUCT_TYPE_L1','shirts'), 200000); $helper->createUnit($root, new ProductType('PRODUCT_TYPE_L1','footwear'), 100000); $otherCondition = $helper->createSubdivision($root, new ProductType()); $helper->createUnit($otherCondition, new ProductType('PRODUCT_TYPE_L2','shirts11'), 200000); $helper->createUnit($otherCondition, new ProductType('PRODUCT_TYPE_L2','footwear11'), 100000); $helper->createUnit($otherCondition, new ProductType('PRODUCT_TYPE_L2')); If i changed the fourth line as follows $otherCondition = $helper->createSubdivision($root, new ProductType('PRODUCT_TYPE_L1')); Getting the error, An error has occurred: [CriterionError.INVALID_PRODUCT_DIMENSION_TYPE @ operations[4].operand.criterion.caseValue; trigger:'ProductType{type=PRODUCT_TYPE_L2, value=shirts11}', CriterionError.INVALID_PRODUCT_DIMENSION_TYPE @ operations[5].operand.criterion.caseValue; trigger:'ProductType{type=PRODUCT_TYPE_L2, value=footwear11}', CriterionError.INVALID_PRODUCT_DIMENSION_TYPE @ operations[6].operand.criterion.caseValue; trigger:'ProductType{type=PRODUCT_TYPE_L2, value=null}', AdGroupCriterionError.PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE @ operations; trigger:'ProductPartition{id=TempCriterionId{id=2}, bidSimulatorStatus=null, partitionType=SUBDIVISION, parentCriterionId=TempCriterionId{id=1}, productGroup=null, caseValue=ProductType{type=PRODUCT_TYPE_L1, value=null}, decisionPath=[ProductType{type=PRODUCT_TYPE_L1, value=null}]}'] Please help to resolve this issue, Regards Varun -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e9ea51d8-4e89-45a3-9a78-6c0b0a480411%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.