Fixed it by adding the following when creating the user list

  exclusive_operands: [{}]

complete structure

 userLists = [{
                        name: data.name,
                        membership_life_span: data.membership_lifespan ?? 
365,
                        membership_status: enums.UserListMembershipStatus.
OPEN,
                        rule_based_user_list: {
                            prepopulation_status: data.pre_populate ? enums.
UserListPrepopulationStatus.REQUESTED : enums.UserListPrepopulationStatus.
UNSPECIFIED,
                            flexible_rule_user_list: {
                                inclusive_rule_operator: enums.
UserListFlexibleRuleOperator.OR,
                                inclusive_operands: [{
                                    rule: {
                                        rule_type: enums.UserListRuleType.
OR_OF_ANDS,
                                        rule_item_groups: [{
                                            rule_items: [{
                                                name: 'url__',
                                                string_rule_item: {
                                                    operator: enums.
UserListStringRuleItemOperator.CONTAINS,
                                                    value: data.website
                                                }
                                            }]
                                        }]
                                    }
                                }],
                                exclusive_operands: [{}]
                            }
                        }
                    }];
On Monday, June 19, 2023 at 2:14:03 PM UTC+10 Shehan Jayasinghe wrote:

> Apologies, this does not occur when trying to delete ad group criteria. It 
> happens when trying to create a website-visitor user list.
> We have migrated to flexible rule user lists. We're currently unable to 
> create a user list due to this issue
>
> On Monday, June 19, 2023 at 12:01:20 AM UTC+10 Shehan Jayasinghe wrote:
>
>> We get this message when trying to remove ad group criteria
>>
>> ud {
>>   errors: [
>>     _d { error_code: [p], message: 'An internal error has occurred.' }
>>   ]
>> }
>>
>> p { internal_error: 2 }
>>
>> request ID is zQu6rDDLZLl5SCGdXd_XIw
>>
>> We are on v13 (just recently upgraded from v12 -> v13) 
>> This campaign was created while on v12
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f3e42648-0a03-49a7-9be5-13b590d319can%40googlegroups.com.

Reply via email to