Hi Team ,

I am currently working on Product partition ,getting the following error

An error has occurred: [RequiredError.REQUIRED @ 
operations[6].operand.criterion.caseValue.type]

The code is as follows,

  $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','shirts'), 200000);
  $helper->createUnit($otherCondition, new 
ProductType('PRODUCT_TYPE_L1','footwear'), 100000); 
  $janko = $helper->createSubdivision($otherCondition, new ProductType()); 
  $helper->createUnit($janko, new ProductType('PRODUCT_TYPE_L2','shirt11'), 
100000); 
  $helper->createUnit($janko, new ProductType('PRODUCT_TYPE_L2')); 

   Is this because of not giving the 'PRODUCT_TYPE' in seventh line.
 
   If i add any PRODUCT_TYPE there that also leads to some error

   Please help me to Resolve this issue.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/573cdcba-88b3-4759-8a62-21c8dc9158e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to