Handling PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE error

59 views
Skip to first unread message

j topper

unread,
Jun 10, 2020, 4:24:28 PM6/10/20
to AdWords API and Google Ads API Forum
Hi there,

We are attempting to create a product partition for All products as can be seen in the screenshot below.  The below payload was passed in, which triggers the PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE error. The documentation doesn't specify how to create a product group without dimensions (or "all"). What is the appropriate approach for doing so?




    <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns2:BiddableAdGroupCriterion">
                    <adGroupId>102693046935</adGroupId>
                    <criterion xsi:type="ns2:ProductPartition">
                        <id>-1</id>
                        <partitionType>SUBDIVISION</partitionType>
                    </criterion>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns3:BiddableAdGroupCriterion">
                    <adGroupId>102693046935</adGroupId>
                    <criterion xsi:type="ns3:ProductPartition">
                        <id>-2147483648</id>
                        <partitionType>UNIT</partitionType>
                        <parentCriterionId>-1</parentCriterionId>
                        <caseValue xsi:type="ns3:ProductCustomAttribute">
                            <type>CUSTOM_ATTRIBUTE_0</type>
                        </caseValue>
                    </criterion>
                    <biddingStrategyConfiguration>
                        <bids xsi:type="ns3:CpcBid">
                            <bid>
                                <microAmount>10000</microAmount>
                            </bid>
                        </bids>
                    </biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>

Google Ads API Forum Advisor Prod

unread,
Jun 11, 2020, 11:14:51 AM6/11/20
to jto...@connexity.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out. You can see here for more information on product partitions. I have attached a screenshot of the specific part that pertains to your question. As it says, you need to create a subdivision with an empty caseValue which represents the "other" case as shown in the image.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q20Xs1I:ref
other_subdivision.png

Jeremy Topper

unread,
Jun 11, 2020, 2:17:35 PM6/11/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com

Hi Mitchell,

 

Thanks for the information. We tried that approach and the outcome does not quite line up with the “All products” setting when running through that flow on the Google Ads UI.

 

First screenshot below is the Google Ads UI end result, second screenshot is via the Adwords API. Any reason they are not consistent?

 

 

 

 

Google Ads API TeamImage removed by sender.

ref:_00D1U1174p._5004Q20Xs1I:ref

Google Ads API Forum Advisor Prod

unread,
Jun 12, 2020, 10:38:12 AM6/12/20
to jto...@connexity.com, adwor...@googlegroups.com
Hi Jeremy,

The API would've thrown an error if the "other" case wasn't set up properly so I believe it should be good. You can see an example that goes over the full process here (also available in other languages). If you would still like me to look into this further, please share your client customer ID and complete detailed request and response logs via Reply privately to author. You can find information on enabling logging in the ReadMe of your client library.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q20Xs1I:ref
Reply all
Reply to author
Forward
0 new messages