Thanks. Yes, I tried First Approach already and realized that this gives an error: PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE This means an Empty correct case Value needs to be given.
The 2nd approach I want to try but the examples are poor in the documentation. My Body Panicked trying that :P Can you give documentation that can help me replicate the scenarios as same as I have written in code here? Gagan On Saturday, May 2, 2020 at 1:50:36 AM UTC+5:30, adsapiforumadvisor wrote: > > Hi, > > Reading through your code, it appears that you are attempting to make the > root node of the tree have a *caseValue* set to a dimension of type > CUSTOM_ATTRIBUTE_0. However, the root node should not have a *caseValue* > since > it is meant to capture all products. To fix this, you could comment out the > red portion of the code below. > > // Create Main Parent parentProductPartition and Main Parent > BiddableAdGroupCriterion > ProductPartition parentProductPartition = new > ProductPartition(); > > parentProductPartition.setPartitionType(ProductPartitionType.SUBDIVISION); > parentProductPartition.setId(-1L); > > ProductCustomAttribute parentProductDimension = new > ProductCustomAttribute(); > > parentProductDimension.setProductDimensionType("ProductCustomAttribute"); > > parentProductDimension.setType(ProductDimensionType.CUSTOM_ATTRIBUTE_0); > parentProductPartition.*setCaseValue*(parentProductDimension); > > Another option would be to use the ProductPartitionTree utility offered > in the client library > <https://github.com/googleads/googleads-java-lib/wiki/Shopping-product-partition-utility-for-AdWords> > , > which simplifies the code you need to write to manage partition trees. > > Thanks, > Josh, Google Ads API Team > > > ref:_00D1U1174p._5001UaSxD8:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/688ef30f-a4d0-42ae-a464-44fd656be114%40googlegroups.com.