This code works fine: ProductPartitionTree partitionTree = ProductPartitionTree.createAdGroupTree(adWordsServices, session, data.getAdGroupId());
ProductPartitionNode partitionNode = partitionTree .getRoot() .asSubdivision(); ProductOfferId emptyDimensionType = new ProductOfferId(); ProductOfferId dimensionType = ProductDimensions.createOfferId(data.getProductId()); partitionNode .addChild(dimensionType) .setBid(data.getBid()) .asBiddableUnit(); partitionNode .addChild(emptyDimensionType) .asExcludedUnit(); понедельник, 11 июня 2018 г., 19:18:42 UTC+3 пользователь Bharani Cherukuri (AdWords API Team) написал: > > Hello, > > Thank you for sharing the logs. The > PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE > <https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupCriterionService.AdGroupCriterionError.Reason> > error > indicates that the subdivided product partitions must have an "others" > case. Each subdivision must always be completely partitioned and should > have an "Others" category. Please note that each subdivision must contain > an "empty" caseValue of the correct type, representing "all other values". > Please check this guide > <https://developers.google.com/adwords/api/docs/guides/shopping#partitioning> > for > more information. You may see this in the AdWords UI as the "Everything > else in...." entry. > > Can you refer to our code sample > <https://developers.google.com/adwords/api/docs/samples/java/shopping-campaigns#add-product-partition-tree> > and > add the Others category and let me know if you run into any issues? > > Regards, > Bharani, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e998b396-63be-4604-b817-327059a74005%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.