Hi, After creating your ProductPartition <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.ProductPartition> object, you have to set this criterion to a BiddableAdGroupCriterion <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.BiddableAdGroupCriterion> object. After this, you need to add the BiddableAdGroupCriterion object to an AdGroupCriterionOperation <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.AdGroupCriterionOperation#top_of_page> object. Refer to the sample Java code below for reference.
// Create AdGroupCriterionOperation. ProductPartition rootPartition = new ProductPartition(); rootPartition.setPartitionType(ProductPartitionType.SUBDIVISION); // Create BiddableAdGroupCriterion. BiddableAdGroupCriterion biddableAdGroupCriterion = new BiddableAdGroupCriterion(); biddableAdGroupCriterion.setAdGroupId(newAdGroupId); biddableAdGroupCriterion.setCriterion(productPartition); // Create AdGroupCriterionOperation. AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); operation.setOperand(biddableAdGroupCriterion); operation.setOperator(Operator.ADD); // Add to list. adGroupCriteriaOperations.add(operation); You can follow the guide <https://developers.google.com/adwords/api/docs/samples/java/campaign-management#add-a-campaign-using-batchjobservice> provided (buildAdGroupCriterionOperations() method) on how to add adgroup criterion to a BatchJobService. Regards, Dannison 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/d279e2dc-6d11-4e1f-9b12-084b9a2e8d2e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.