API groups tree creation failure

60 views
Skip to first unread message

Mathieu SPINNLER

unread,
Sep 15, 2023, 11:02:06 AM9/15/23
to Google Ads API and AdWords API Forum
Hi i dont see why it return me an error when i try to create my tree of products groups,

I can create separatly  the groups for productCustomAttribute or productItemId
but when i try create productItemId in another group from productCustomAttribute
it return me the error LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE but for me i mentionned it my request requestId (bvK0iq_JTfq6YysErA9SfQ):
{
"customerId": "xxx",
"operations": [
{
"create": {
"resourceName": "customers/xxx/adGroupCriteria/152178760766~-1",
"status": "ENABLED",
"listingGroup": {
"type": "SUBDIVISION"
}
}
},
{
"create": {
"resourceName": "customers/xxx/adGroupCriteria/152178760766~-2",
"status": "ENABLED",
"listingGroup": {
"type": "SUBDIVISION",
"caseValue": {
"productCustomAttribute": {
"value": "OVERSTOCK",
"index": "INDEX2"
}
},
"parentAdGroupCriterion": "customers/xxx/adGroupCriteria/152178760766~-1"
}
}
},
{
"create": {
"status": "ENABLED",
"adGroup": "customers/xxx/adGroups/152178760766",
"negative": true,
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productCustomAttribute": {}
},
"parentAdGroupCriterion": "customers/xxx/adGroupCriteria/152178760766~-1"
}
}
},
{
"create": {
"status": "ENABLED",
"adGroup": "customers/xxx/adGroups/152178760766",
"cpcBidMicros": "10000",
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {
"value": "frfr-78"
}
},
"parentAdGroupCriterion": "customers/xxx/adGroupCriteria/152178760766~-2"
}
}
},
{
"create": {
"status": "ENABLED",
"adGroup": "customers/xxx/adGroups/152178760766",
"negative": true,
"listingGroup": {
"type": "UNIT",
"caseValue": {
"productItemId": {}
},
"parentAdGroupCriterion": "customers/xxx/adGroupCriteria/152178760766~-2"
}
}
}
]
}
Thank you,

Best regards,

Mathieu

Google Ads API Forum Advisor

unread,
Sep 19, 2023, 9:26:36 AM9/19/23
to mspinnl...@gmail.com, adwor...@googlegroups.com
Hi Mathieu,

Thank you for contacting the Google Ads API support team.

The error LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE indicates that the 'Others' case is missing in the tree. Each subdivision must always be completely partitioned, so it must contain a node representing 'Other' which has an "empty" case_value of the correct type. This child is usually referred to as 'Other' because it represents "all other values" for that ListingDimensionInfo. Please refer to this guide for more information. You may check this java sample code for reference and If you are using another language you can also refer to all available client libraries.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2om2ZR:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages