Hi Adwords Team,
I am trying to create Product group inside an adgroup using Java Api
ProductPartitionTree.
In below sample, I try to create partition based on brand value.
AdWordsServicesInterface adWordsServices = AdWordsServices.getInstance();
AdWordsSession adWordsSession =
adwordsClientUtil.buildAdWordsSession("accountId");
adWordsSession.setPartialFailure(false);
ProductPartitionTree productPartitionTree =
ProductPartitionTree.createAdGroupTree(adWordsServices,
adWordsSession, adGroupId);
ProductPartitionNode rootNode = productPartitionTree.getRoot();
rootNode = rootNode.asSubdivision();
rootNode.
addChild(ProductDimensions.createBrand("brand_value"))
.asBiddableUnit();
rootNode.addChild(ProductDimensions.createBrand(null))
.asExcludedUnit();
List<AdGroupCriterionOperation> mutateOperations =
productPartitionTree.getMutateOperations();
AdGroupCriterionServiceInterface adGroupCriterionService
=
adwordsClientUtil.getAdGroupCriterionService("accountId");
AdGroupCriterionReturnValue adGroupCriterionResult =
adGroupCriterionService.mutate(
mutateOperations.toArray(new
AdGroupCriterionOperation[0]));
*But I get Below error for all mutate operation and the product group
creation fails.*
*CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE*
Can anyone from API team help on this please?
Thanks
Sandip
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/467465c1-d5f6-4632-b9d9-477c382eda66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.