Hello, 

It looks like you're performing a Mutate() operation for the shopping 
campaigns. The CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE error 
indicates that the partial failure is not supported for shopping campaign 
mutate operations. 

Can you make sure that each subdivision is completely partitioned, so it 
must contain a unit type representing "Other". Please take a look at this 
guide 
<https://developers.google.com/adwords/api/docs/guides/shopping#partitioning> 
and 
code sample in Java 
<https://developers.google.com/adwords/api/docs/samples/java/shopping-campaigns#add-product-partition-tree>
 as 
a reference. If you continue to have an issue with this, please share the 
complete SOAP request and response logs, so I can take a closer look. You 
can reply back via *Reply privately to author* option.
  
Thanks,
Bharani, AdWords API Team

On Thursday, April 19, 2018 at 6:17:57 AM UTC-4, 
sandip.mukher...@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 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 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 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/5b5ab8d0-e5dc-4b0d-848c-c831dde909eb%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