Creating UserList with FlexibleRuleUserList

51 views
Skip to first unread message

chandra Shekhar

unread,
Mar 29, 2023, 12:31:11 AM3/29/23
to Google Ads API and AdWords API Forum
Hi team ,

               I am doing POC(proof of concept) for V13 and following this to build audience ( https://github.com/googleads/google-ads-java/blob/HEAD/google-ads-examples/src/main/java/com/google/ads/googleads/examples/remarketing/AddFlexibleRuleUserList.java ) . But in response I am getting the below error

Error:-

{
"success": false,
"full_message": "errors {\n error_code {\n query_error: UNRECOGNIZED_FIELD\n }\n message: \"Unrecognized fields in the query: \\'user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_item_groups\\', \\'user_list.rule_based_user_list.expression_rule_user_list.rule.rule_item_groups\\', \\'user_list.rule_based_user_list.combined_rule_user_list.rule_operator\\', \\'user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_type\\', \\'user_list.rule_based_user_list.expression_rule_user_list.rule.rule_type\\', \\'user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_item_groups\\', \\'user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_type\\'.\"\n}\nrequest_id: \"vdLHGLrgyRQNJW9tyU1sCg\"\n",
"message": "Unrecognized fields in the query: 'user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_item_groups', 'user_list.rule_based_user_list.expression_rule_user_list.rule.rule_item_groups', 'user_list.rule_based_user_list.combined_rule_user_list.rule_operator', 'user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_type', 'user_list.rule_based_user_list.expression_rule_user_list.rule.rule_type', 'user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_item_groups', 'user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_type'.",
"RESULT": "FAIL",
"ERROR": "Unrecognized fields in the query: 'user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_item_groups', 'user_list.rule_based_user_list.expression_rule_user_list.rule.rule_item_groups', 'user_list.rule_based_user_list.combined_rule_user_list.rule_operator', 'user_list.rule_based_user_list.combined_rule_user_list.left_operand.rule_type', 'user_list.rule_based_user_list.expression_rule_user_list.rule.rule_type', 'user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_item_groups', 'user_list.rule_based_user_list.combined_rule_user_list.right_operand.rule_type'."
} I am not exactly getting this error. Operation:-create {
  membership_status: OPEN
  rule_based_user_list {
    prepopulation_status: REQUESTED
    flexible_rule_user_list {
      inclusive_rule_operator: AND
      inclusive_operands {
        rule {
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "http://example.com/example1"
              }
              name: "url__"
            }
          }
        }
        lookback_window_days: 7
      }
      inclusive_operands {
        rule {
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "http://example.com/example2"
              }
              name: "url__"
            }
          }
        }
        lookback_window_days: 7
      }
      exclusive_operands {
        rule {
          rule_item_groups {
            rule_items {
              string_rule_item {
                operator: EQUALS
                value: "http://example.com/example3"
              }
              name: "url__"
            }
          }
        }
      }
    }
  }
  name: "Flexible rule user list for example.com #2023-03-29T10:00:28.936"
  description: "Visitors of both http://example.com/example1 AND http://example.com/example2 but NOT http://example.com/example3"
  membership_life_span: 365
}
kindly help me resolve this . Thanks and regards Chandra Shekhar

Google Ads API Forum Advisor

unread,
Mar 29, 2023, 6:16:31 AM3/29/23
to chandra...@knorex.com, adwor...@googlegroups.com

Hi Chandra,
 

Thanks for reaching out to the Google Ads API team. I hope you are doing well today.
 

With regards to your concern, I can see that you encountered the UNRECOGNIZED_FIELD error. This error means the query contains one or more unrecognized fields.


However, to further check this issue, could you please provide the complete request and response logs with request ID and request header generated on your end? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link, so that our team can further investigate and provide precise guidance accordingly.
 

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.


Regards,

Google Logo Google Ads API Team



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