Thank you for sharing

On Thursday, April 19, 2018 at 3:17:57 AM UTC-7, 
sandip.m...@visual-meta.com wrote:
>
> Hi API team,
> I am trying to create product groups inside an adGroup using 
> ProductPartitionTree of Adwords Java api.
> In the below example I try to partition the data based on brand value.
> My code is:
>
>     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_name"))
>                     .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]));
>             LOGGER.info(adGroupCriterionResult.getValue()[0].toString());
>
>
> When I try to execute this code I get the following error for all mutate 
> operations.
>
> *CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE*
>
> I cannot figure out what is the actual error/failure reason.
> Could anyone from API team help me on this.
>
> Regards,
> Sandip
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4eabb676-84e0-4b9b-806b-d7071d971e3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... sandip . mukherjee
    • ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
    • ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... cha kng

Reply via email to