Error in AdGroupCriterion

118 views
Skip to first unread message

Ernesto De Unanue

unread,
Jan 19, 2023, 12:03:53 PM1/19/23
to Google Ads API and AdWords API Forum
Hello

I try create a AdGroupCriterion, but the api response is:

status { code: 3 message: "Ad group is invalid due to the listing groups it contains., at mutate_operations[0].ad_group_criterion_operation.create.listing_group" details { type_url: "type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure" value: "\n\242\001\n\003\200\002j\022:Ad group is invalid due to the listing groups it contains.\032\013\020\373\377\377\377\377\377\377\377\377\001\"R\022\025\n\021mutate_operations\030\000\022\036\n\034ad_group_criterion_operation\022\010\n\006create\022\017\n\rlisting_group" } } [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:192} INFO - ERROR [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:193} INFO - N/A [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:194} INFO - ERROR 2 [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:195} INFO - operation_index: 1 status { code: 3 message: "Ad group is invalid due to the listing groups it contains., at mutate_operations[1].ad_group_criterion_operation.create.listing_group" details { type_url: "type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure" value: "\n\242\001\n\003\200\002j\022:Ad group is invalid due to the listing groups it contains.\032\013\020\373\377\377\377\377\377\377\377\377\001\"R\022\025\n\021mutate_operations\030\001\022\036\n\034ad_group_criterion_operation\022\010\n\006create\022\017\n\rlisting_group" } } [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:192} INFO - ERROR [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:193} INFO - N/A [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:194} INFO - ERROR 2 [2023-01-19, 16:59:55 UTC] {process_batch_factory.py:195} INFO - operation_index: 2 status { code: 3 message: "Dimension type of listing group must be the same as that of its siblings., at mutate_operations[2].ad_group_criterion_operation.create.listing_group.case_value" details { type_url: "type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure" value: "\n\277\001\n\003\200\002m\022IDimension type of listing group must be the same as that of its siblings.\032\013\020\377\377\377\377\377\377\377\377\377\001\"`\022\025\n\021mutate_operations\030\002\022\036\n\034ad_group_criterion_operation\022\010\n\006create\022\017\n\rlisting_group\022\014\n\ncase_value" } }

My Batch operations are:

{ create { resource_name: "customers/3084423348/adGroupCriteria/144928363826~-1" status: ENABLED listing_group { type_: SUBDIVISION } } } , ad_group_criterion_operation { create { resource_name: "customers/3084423348/adGroupCriteria/144928363826~-3" status: ENABLED listing_group { type_: UNIT case_value { product_item_id { value: "114985415" } } parent_ad_group_criterion: "customers/3084423348/adGroupCriteria/144928363826~-1" } cpc_bid_micros: 60000 } } , ad_group_criterion_operation { create { resource_name: "customers/3084423348/adGroupCriteria/144928363826~-5" status: ENABLED listing_group { type_: UNIT case_value { product_condition { } } parent_ad_group_criterion: "customers/3084423348/adGroupCriteria/144928363826~-1" } cpc_bid_micros: 60000 } }

I
Thanks,
Ernesto

Google Ads API Forum Advisor

unread,
Jan 20, 2023, 6:12:31 AM1/20/23
to edu...@gmail.com, adwor...@googlegroups.com
Hi Ernesto,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

Moving forward to your concern, based on the error you encountered, "Dimension type of listing group must be the same as that of its siblings." Upon checking the logs. I see that the type you use in your request is 'type: UNIT'. However, when I impersonate the logs you provided on my end. I noticed that the type result I got is "LISTING_GROUP". With this, you may try to use the LISTING_GROUP type on your request. Add to that, I also checked the adgroup id 144928363826, from customer id 3084423348, and upon checking we cannot find this ad_group id. With this, kindly make sure that the ad_group id you are using in the resource name is correct.

Furthermore since we can see on the logs that you are still using Google Ads API v10, please note that this version of Google Ads API will be sunset on February 1, 2023 as posted here in this blog post. We highly suggest that all Google Ads API v10 to users to upgrade to the newest version of Google Ads API.

Let us know how it goes on your end.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


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