Hi sandeep cv, The issue is with the *otherBrand* object you created:
$otherBrand = $helper->createSubdivision($otherCondition, new ProductType()); On a *ProductType* object, the value <https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.ProductType#value> can be null (for the "other" case), but you *must* set the type <https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupCriterionService.ProductType#type> attribute to the proper level. In your case, it looks like you'd want to set this to PRODUCT_TYPE_L1 since your *otherBrand* object is for the group of nodes for that product type level/type. Cheers, Josh, AdWords API Team On Saturday, April 11, 2015 at 10:15:27 AM UTC-4, cvit sandeep wrote: > > Hi Team, > I am currently working on Subdivide opertaion in product partition > section.I need your support on following issues. > > 1.Getting the error 'An error has occurred: [RequiredError.REQUIRED @ > operations[6].operand.criterion.caseValue.type]' > > while performing product partition. > > The following is my code, > > $root = $helper->createSubdivision(); > > $helper->createUnit($root, new ProductCanonicalCondition('NEW'), > 200000); > > $helper->createUnit($root, new ProductCanonicalCondition('USED'), > 100000); > > $otherCondition = $helper->createSubdivision($root,new > ProductCanonicalCondition()); > > > $helper->createUnit($otherCondition,new > ProductType('PRODUCT_TYPE_L1','sametou1'), 900000); > > $helper->createUnit($otherCondition,new > ProductType('PRODUCT_TYPE_L1','sametou2'), 10000); > > $otherBrand = $helper->createSubdivision($otherCondition, new > ProductType()); > > $helper->createUnit($otherBrand,new ProductType('PRODUCT_TYPE_L2'), > 110000); > > > I tried as in your documentation. > > Why this error and how can i resolve this? > > Regards > > sandeep cv > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/8d1599d0-38ea-48e5-a0d0-514a633fdb9c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
