Thursday, 23 June 2016

Re: Unable to create product partition

Hi Yin,

Unable to create product partition tree .please send the following soap request and response 



SOAP error response 



<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201601">
            <requestId>000535eba2a36c180a626d027b0e74b6</requestId>
            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>8</operations>
            <responseTime>280</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[RequiredError.REQUIRED @ operations[4].operand.biddingStrategyConfiguration]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201601">
                    <message>[RequiredError.REQUIRED @ operations[4].operand.biddingStrategyConfiguration]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RequiredError">
                        <fieldPath>operations[4].operand.biddingStrategyConfiguration</fieldPath>
                        <trigger/>
                        <errorString>RequiredError.REQUIRED</errorString>
                        <ApiError.Type>RequiredError</ApiError.Type>
                        <reason>REQUIRED</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>



SOAP request:


    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201601" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>866-dw-4403</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>dwdw (AwApi-Java, AdWords-Axis/2.15.0, Common-Java/2.15.0, Axis/1.4, Java/1.7.0_80, maven, ProductPartitionTree, SelectorBuilder)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>REMOVE</operator>
                <operand>
                    <adGroupId>29789572975</adGroupId>
                    <criterion xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns2:ProductPartition">
                        <id>18283950120</id>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns3:BiddableAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns3:ProductPartition">
                        <id>-1</id>
                        <partitionType>SUBDIVISION</partitionType>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns4:BiddableAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns4:ProductPartition">
                        <id>-2</id>
                        <partitionType>SUBDIVISION</partitionType>
                        <parentCriterionId>-1</parentCriterionId>
                        <caseValue xsi:type="ns4:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_1</type>
                            <value>gm120</value>
                        </caseValue>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns5:BiddableAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns5:ProductPartition">
                        <id>-3</id>
                        <partitionType>SUBDIVISION</partitionType>
                        <parentCriterionId>-2</parentCriterionId>
                        <caseValue xsi:type="ns5:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_2</type>
                            <value>Electronics</value>
                        </caseValue>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns6:BiddableAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns6:ProductPartition">
                        <id>-4</id>
                        <partitionType>UNIT</partitionType>
                        <parentCriterionId>-3</parentCriterionId>
                        <caseValue xsi:type="ns6:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_3</type>
                            <value>Electronics</value>
                        </caseValue>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns7:NegativeAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns7:ProductPartition">
                        <id>-5</id>
                        <partitionType>UNIT</partitionType>
                        <parentCriterionId>-3</parentCriterionId>
                        <caseValue xsi:type="ns7:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_3</type>
                        </caseValue>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns8:NegativeAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns8:ProductPartition">
                        <id>-6</id>
                        <partitionType>UNIT</partitionType>
                        <parentCriterionId>-2</parentCriterionId>
                        <caseValue xsi:type="ns8:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_2</type>
                        </caseValue>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201601" xsi:type="ns9:NegativeAdGroupCriterion">
                    <adGroupId>29789572975</adGroupId>
                    <criterion xsi:type="ns9:ProductPartition">
                        <id>-7</id>
                        <partitionType>UNIT</partitionType>
                        <parentCriterionId>-1</parentCriterionId>
                        <caseValue xsi:type="ns9:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_1</type>
                        </caseValue>
                    </criterion>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


Please help yin, i am  looking this issue  for couple of days .


Regads,
Tejendra 

On Wednesday, March 16, 2016 at 7:37:35 PM UTC+5:30, Yin Niu wrote:
Hello, 

Please see this forum discussion on how to create an "other" node. 

Thanks,
Yin, AdWords API Team. 

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/14299bc5-1045-4ec1-8989-e38dbc02d658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment