Hi,

I'm still in doubts.

Please have a look into this.
Thanks in Advance.


<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId></ns1:clientCustomerId>
<ns1:developerToken>REDACTED</ns1:developerToken>
<ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/37.1.0,
PHP/5.6.40)</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId></ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-1</ns1:id>
<ns1:partitionType>SUBDIVISION</ns1:partitionType>
</ns1:criterion>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId></ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-6</ns1:id>
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductBrand">
<ns1:value>class</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration>
<ns1:bids xsi:type="ns1:CpcBid">
<ns1:bid>
<ns1:microAmount>100000</ns1:microAmount>
</ns1:bid>
</ns1:bids>
</ns1:biddingStrategyConfiguration>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId></ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-3</ns1:id>
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductBrand"/>
</ns1:criterion>
<ns1:biddingStrategyConfiguration>
<ns1:bids xsi:type="ns1:CpcBid">
<ns1:bid>
<ns1:microAmount>100000</ns1:microAmount>
</ns1:bid>
</ns1:bids>
</ns1:biddingStrategyConfiguration>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId></ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-2</ns1:id>
<ns1:partitionType>SUBDIVISION</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_0</ns1:type>
<ns1:value>School</ns1:value>
</ns1:caseValue>
</ns1:criterion>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId></ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-4</ns1:id>
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-2</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_1</ns1:type>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration>
<ns1:bids xsi:type="ns1:CpcBid">
<ns1:bid>
<ns1:microAmount>100000</ns1:microAmount>
</ns1:bid>
</ns1:bids>
</ns1:biddingStrategyConfiguration>
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId></ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-5</ns1:id>
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-2</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_2</ns1:type>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration>
<ns1:bids xsi:type="ns1:CpcBid">
<ns1:bid>
<ns1:microAmount>100000</ns1:microAmount>
</ns1:bid>
</ns1:bids>
</ns1:biddingStrategyConfiguration>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Response :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
<requestId>00058ba8cf24ce010a6237c32300afb3</requestId>
<serviceName>AdGroupCriterionService</serviceName>
<methodName>mutate</methodName>
<operations>6</operations>
<responseTime>231</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>[AdGroupCriterionError.PRODUCT_PARTITION_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS
@ operations;
trigger:'com.google.ads.api.serviceimpls.campaignmgmt.criterion.adgroupcriterion.ProductPartitionTree$Node@39f78ded
']</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809
">
<message>[AdGroupCriterionError.PRODUCT_PARTITION_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS
@ operations;
trigger:'com.google.ads.api.serviceimpls.campaignmgmt.criterion.adgroupcriterion.ProductPartitionTree$Node@39f78ded
']</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:type="AdGroupCriterionError">
<fieldPath>operations</fieldPath>
<fieldPathElements>
<field>operations</field>
</fieldPathElements>
<trigger>com.google.ads.api.serviceimpls.campaignmgmt.criterion.adgroupcriterion.ProductPartitionTree$Node@39f78ded
</trigger>
<errorString>AdGroupCriterionError.PRODUCT_PARTITION_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS</errorString>
<ApiError.Type>AdGroupCriterionError</ApiError.Type>
<reason>PRODUCT_PARTITION_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>



<https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=8bf5fef6-823d-47e2-8b30-2028bd436cb7>
I’m
protected online with Avast Free Antivirus. Get it here — it’s free forever.
<https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=8bf5fef6-823d-47e2-8b30-2028bd436cb7>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Jun 19, 2019 at 12:53 AM Google Ads API Forum Advisor Prod <
adsapiforumadvi...@gmail.com> wrote:

> Hello Subin,
>
> Thank you for sharing the logs. Based on the logs shared, it looks like
> you're initially creating two SUBDIVISIONs and then adding the UNITs.
> Please note that a subdivision introduces a new level in the tree, while
> units are leaves of the tree. It looks like you are adding one SUBDIVISION
> followed by another. The next level in the tree should be added to the UNIT
> and not to the SUBDIVISION. Please find the attached SOAP logs generated by
> running the code samples
> <https://developers.google.com/adwords/api/docs/samples/java/shopping-campaigns#build-a-product-partition-tree-for-an-ad-group>.
> Could you please take a look and let me know if you have any issues?
>
> Regards,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UBnvJg:ref
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/Eg9GC000000000000000000000000000000000000000000000PTB76V0028tRibyPROmbDJLKbUAqHQ%40sfdc.net
> <https://groups.google.com/d/msgid/adwords-api/Eg9GC000000000000000000000000000000000000000000000PTB76V0028tRibyPROmbDJLKbUAqHQ%40sfdc.net?utm_medium=email&utm_source=footer>
> .
>


-- 
*subinpvasu*
*9495546474*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAB1%3DLU_X4_cFS%2BkeoYv44Nxw4d%3D56SJqdNQ3YRcm9QH5ER4Myg%40mail.gmail.com.

Reply via email to