I am using Python google-ads module and Google Ads API v2 (Beta)
In my test account's shopping campaign I am trying to create 3
ProductGroups in an empty AdGroup.
I can successfully create single root level AdGroupCriterion with
listing_group type: UNIT but when I am trying to create 3
AdGroupCriterions: 1 root and 2 children I am getting errors.
Here are my AdGroupCriterionOperation protobuf messages:
[create {
resource_name: "customers/5936312994/adGroupCriteria/82410873572~-25"
status: PAUSED
ad_group {
value: "customers/5936312994/adGroups/82410873572"
}
listing_group {
type: SUBDIVISION
}
}, create {
resource_name: "customers/5936312994/adGroupCriteria/82410873572~-27"
status: ENABLED
ad_group {
value: "customers/5936312994/adGroups/82410873572"
}
negative {
value: true
}
listing_group {
type: UNIT
case_value {
listing_custom_attribute {
index: INDEX0
}
}
parent_ad_group_criterion {
value: "customers/5936312994/adGroupCriteria/82410873572~-25"
}
}
}, create {
resource_name: "customers/5936312994/adGroupCriteria/82410873572~-26"
status: ENABLED
ad_group {
value: "customers/5936312994/adGroups/82410873572"
}
cpc_bid_micros {
value: 10000000
}
listing_group {
type: UNIT
case_value {
listing_custom_attribute {
value {
value: "1000-2000"
}
index: INDEX0
}
}
parent_ad_group_criterion {
value: "customers/5936312994/adGroupCriteria/82410873572~-25"
}
}
}]
Essentially I got them from my production account.
When I am trying to call mutate method of AdGroupCriterionService I am
getting these errors (one per operation):
errors {
error_code {
ad_group_criterion_error: LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE
}
message: "Subdivided listing groups must have an \"others\" case."
trigger {
string_value: "ProductPartition{id=TempCriterionId{id=25},
bidSimulatorStatus=null, partitionType=SUBDIVISION, parentCriterionId=null,
productGroup=null, productGroupObsoleteStatus=null, caseValue=null,
decisionPath=[], salesCountry=null, merchantId=null,
hasPromotedSuggestion=null}"
}
}
errors {
error_code {
ad_group_criterion_error: LISTING_GROUP_DOES_NOT_EXIST
}
message: "Listing group referenced in the operation was not found in the
ad group."
trigger {
string_value: "TempCriterionId{id=25}"
}
location {
field_path_elements {
field_name: "operations"
index {
}
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "listing_group"
}
field_path_elements {
field_name: "parent_ad_group_criterion"
}
}
}
errors {
error_code {
ad_group_criterion_error: LISTING_GROUP_DOES_NOT_EXIST
}
message: "Listing group referenced in the operation was not found in the
ad group."
trigger {
string_value: "TempCriterionId{id=25}"
}
location {
field_path_elements {
field_name: "operations"
index {
value: 1
}
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "listing_group"
}
field_path_elements {
field_name: "parent_ad_group_criterion"
}
}
}
I am assuming that if root level operation were to succeed then both
children would succeed as well. But I cannot figure out how to solve the
LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE error.
I would appreciate any help. Thank you in advance.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/8fb9dc13-f083-4979-a435-82fa1815a29e%40googlegroups.com.