Getting error while creating flexible user List

57 views
Skip to first unread message

chandra Shekhar

unread,
Apr 20, 2023, 9:47:06 PM4/20/23
to Google Ads API and AdWords API Forum
Hi team I am getting below error while creating flexibleRuleUserList

"full_message -> errors {
  error_code {
    collection_size_error: TOO_MANY
  }
  message: "Too many."
  trigger {
    int64_value: 3
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "rule_based_user_list"
    }
    field_path_elements {
      field_name: "flexible_rule_user_list"
    }
    field_path_elements {
      field_name: "inclusive_operands"
    }
  }
}
request_id: "AW7V7f6ElazMh6GojUdcCQ""

This is my operation:--
create {
  membership_status: OPEN
  rule_based_user_list {
    flexible_rule_user_list {
      inclusive_rule_operator: OR
      inclusive_operands {
        rule {
          rule_type: OR_OF_ANDS
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "www.aaa.com"
              }
              name: "aaa"
            }
          }
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "www.bbb.com"
              }
              name: "bbb"
            }
          }
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "www.ccc.com"
              }
              name: "ccc"
            }
          }
        }
      }
      inclusive_operands {
        rule {
          rule_type: OR_OF_ANDS
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "www.aaa.com"
              }
              name: "aaa"
            }
          }
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "www.bbb.com"
              }
              name: "bbb"
            }
          }
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "www.ccc.com"
              }
              name: "ccc"
            }
          }
        }
      }
      exclusive_operands {
      }
    }
  }
  name: "edar //39"
  integration_code: "tp=VISITORS_RULE"
  membership_life_span: 30
  eligible_for_search: true
}


Kindly check as soon as possible, thanks

Google Ads API Forum Advisor

unread,
Apr 21, 2023, 3:48:44 AM4/21/23
to chandra...@knorex.com, adwor...@googlegroups.com

Hello,

Thanks for reaching out to the Google Ads API Team.

I have replicated the error below and have produced a successful operation. Please try maintaining only 1 UserListRuleItemInfo object in your
request. Please refer to this
documentation for more information. (Links Below)

Please try this modified operation code below to see if you still experience the same error:

{
  "operations": [
    {
      "create": {
        "membershipStatus": "OPEN",
        "ruleBasedUserList": {
          "flexibleRuleUserList": {
            "inclusiveRuleOperator": "OR",
            "inclusiveOperands": [
              {
                "rule": {
                  "ruleType": "OR_OF_ANDS",
                  "ruleItemGroups": [
                    {
                      "ruleItems": [
                        {
                          "stringRuleItem": {
                            "operator": "EQUALS",
                            "value": "www.aaa.com"
                          },
                          "name": "aaa"
                        }
                      ]
                    }
                  ]
                }
              }
            ],
            "exclusiveOperands": [
              {}
            ]
          }
        },
        "name": "edar //39",
        "integrationCode": "tp=VISITORS_RULE",
        "membershipLifeSpan": 30,
        "eligibleForSearch": true
      }
    }
  ]
}

If the error persists, please do provide us with the complete request and response logs with request ID generated when you used this operation.

Links for Reference:
UserListRuleItemInfo - https://developers.google.com/google-ads/api/rest/reference/rest/v13/UserList#UserListRuleItemGroupInfo
Documentation - https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.userLists/mutate
Request - https://developers.google.com/google-ads/api/docs/concepts/field-service#request
Response Logs - https://developers.google.com/google-ads/api/docs/concepts/field-service#response
Request ID - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kopMS:ref

chandra Shekhar

unread,
Apr 21, 2023, 4:00:33 AM4/21/23
to Google Ads API and AdWords API Forum
Hi Team, Thanks for the response, But I want to create audience of something like this Screenshot 2023-04-21 at 13.28.53.pngScreenshot 2023-04-21 at 13.28.29.png
Kindly give me reference for this.

Thanks and Regards

Chandra Shekhar

Google Ads API Forum Advisor

unread,
Apr 21, 2023, 9:00:03 AM4/21/23
to chandra...@knorex.com, adwor...@googlegroups.com
Hi Chandra,

Thank you for getting back to us. I hope that you are doing well today.

I understand what you want to happen. However, have you tried the previous modified sample codes provided in this thread? You may also refer to the links provided in this thread regarding UserListRuleItemGroupInfo and UserList.

Kind regards,

chandra Shekhar

unread,
Apr 23, 2023, 9:20:38 PM4/23/23
to Google Ads API and AdWords API Forum
Hi , I have tried the given operation by you, but its not creating what I have asked for, kindly give reference to create below type audience 
Screenshot 2023-04-24 at 06.49.40.png

Google Ads API Forum Advisor

unread,
Apr 24, 2023, 7:17:07 AM4/24/23
to chandra...@knorex.com, adwor...@googlegroups.com
Hi Chandra,

Thank you for your reply.

Could you please confirm first if you already considered the information that was provided in the previous email? Try maintaining only one UserListRuleItemInfo object in your request. For more information, you may refer to our blog post regarding UserData Enforcement in Google Ads APIhttps://ads-developers.googleblog.com/2021/10/userdata-enforcement-in-google-ads-api.html

Best regards,
Reply all
Reply to author
Forward
0 new messages