사용자 목록 만들기

expression_rule_user_list의 경우 추가적인 차이점이 있습니다. 기본적으로 Google Ads는 규칙 항목 그룹의 모든 규칙 항목을 함께 AND합니다. 즉, 하나 이상의 규칙 항목 그룹에 있는 모든 규칙 항목이 일치해야 규칙이 방문자를 목록에 추가할 수 있습니다. 이를 '논리합 표준형' 또는 OR_OF_ANDS라고 합니다.

또는 각 규칙 항목 그룹하나 이상의 규칙 항목이 일치하는 경우에만 목록에 방문자를 추가하도록 목록을 설정할 수 있습니다. 이를 '접합 표준형' 또는 AND_OF_ORS이라고 하며, rule_type 필드를 사용하여 expression_rule_user_list에 사용할 수 있습니다. date_specific_rule_user_listAND_OF_ORS를 사용하려고 하면 오류가 발생합니다.

이제 위의 규칙 항목 그룹을 새 사용자 목록으로 결합하기만 하면 됩니다. 여기서는 기본 OR_OF_ANDS 기능을 그대로 둡니다. 이러한 규칙을 만들기 위해 만든 것이기 때문입니다.

Java

FlexibleRuleUserListInfo flexibleRuleUserListInfo =
    FlexibleRuleUserListInfo.newBuilder()
        .setInclusiveRuleOperator(UserListFlexibleRuleOperator.AND)
        .addInclusiveOperands(
            FlexibleRuleOperandInfo.newBuilder()
                .setRule(
                    // The default rule_type for a UserListRuleInfo object is OR of ANDs
                    // (disjunctive normal form). That is, rule items will be ANDed together
                    // within rule item groups and the groups themselves will be ORed together.
                    UserListRuleInfo.newBuilder()
                        .addRuleItemGroups(checkoutDateRuleGroup)
                        .addRuleItemGroups(checkoutAndCartSizeRuleGroup))
                // Optional: includes a lookback window for this rule, in days.
                .setLookbackWindowDays(7L))
        .build();
      

C#

FlexibleRuleUserListInfo flexibleRuleUserListInfo = new FlexibleRuleUserListInfo();
FlexibleRuleOperandInfo flexibleRuleOperandInfo = new FlexibleRuleOperandInfo() {
    Rule = new UserListRuleInfo()
};
flexibleRuleOperandInfo.Rule.RuleItemGroups.Add(checkoutAndCartSizeRuleGroup);
flexibleRuleOperandInfo.Rule.RuleItemGroups.Add(checkoutDateRuleGroup);
flexibleRuleUserListInfo.InclusiveOperands.Add(flexibleRuleOperandInfo);
      

2,399필리핀

$flexibleRuleUserListInfo = new FlexibleRuleUserListInfo([
    'inclusive_rule_operator' => UserListFlexibleRuleOperator::PBAND,
    'inclusive_operands' => [
        new FlexibleRuleOperandInfo([
            'rule' => new UserListRuleInfo([
                // The default rule_type for a UserListRuleInfo object is OR of ANDs
                // (disjunctive normal form). That is, rule items will be ANDed together
                // within rule item groups and the groups themselves will be ORed together.
                'rule_item_groups' => [
                    $checkoutAndCartSizeRuleGroup,
                    $checkoutDateRuleGroup
                ]
            ]),
            // Optionally add a lookback window for this rule, in days.
            'lookback_window_days' => 7
        ])
    ],
    'exclusive_operands' => []
]);
      

Python

# Create a FlexibleRuleUserListInfo object, or a flexible rule
# representation of visitors with one or multiple actions.
# FlexibleRuleUserListInfo wraps UserListRuleInfo in a
# FlexibleRuleOperandInfo object that represents which user lists to
# include or exclude.
flexible_rule_user_list_info = (
    rule_based_user_list_info.flexible_rule_user_list
)
flexible_rule_user_list_info.inclusive_rule_operator = (
    client.enums.UserListFlexibleRuleOperatorEnum.AND
)
# The default rule_type for a UserListRuleInfo object is OR of
# ANDs (disjunctive normal form). That is, rule items will be
# ANDed together within rule item groups and the groups
# themselves will be ORed together.
rule_operand = client.get_type("FlexibleRuleOperandInfo")
rule_operand.rule.rule_item_groups.extend(
    [
        checkout_and_cart_size_rule_group,
        checkout_date_rule_group,
    ]
)
rule_operand.lookback_window_days = 7
flexible_rule_user_list_info.inclusive_operands.append(rule_operand)
      

루비

r.flexible_rule_user_list = client.resource.flexible_rule_user_list_info do |frul|
  frul.inclusive_rule_operator = :AND
  frul.inclusive_operands << client.resource.flexible_rule_operand_info do |froi|
    froi.rule = client.resource.user_list_rule_info do |info|
      info.rule_item_groups += [checkout_date_rule_group, checkout_and_cart_size_rule_group]
    end
    # Optionally include a lookback window for this rule, in days.
    froi.lookback_window_days = 7
  end
end
      

Perl

my $flexible_rule_user_list_info =
  Google::Ads::GoogleAds::V17::Common::FlexibleRuleUserListInfo->new({
    inclusiveRuleOperator => AND,
    inclusiveOperands     => [
      Google::Ads::GoogleAds::V17::Common::FlexibleRuleOperandInfo->new({
          rule => Google::Ads::GoogleAds::V17::Common::UserListRuleInfo->new({
              # The default rule_type for a UserListRuleInfo object is OR of
              # ANDs (disjunctive normal form). That is, rule items will be
              # ANDed together within rule item groups and the groups
              # themselves will be ORed together.
              ruleItemGroups => [
                $checkout_date_rule_group, $checkout_and_cart_size_rule_group
              ]}
          ),
          # Optionally include a lookback window for this rule, in days.
          lookback_window_days => 7
        })
    ],
    exclusiveOperands => []});
      

사이트 방문 기간별 제한

위의 expression_rule_user_list가 요구사항을 충족하지만, 10월 1일에서 12월 31일 사이에 이 목록의 규칙을 충족하는 사용자만 포착하고 사이트를 방문하려는 경우에는 어떻게 해야 할까요? date_specific_rule_user_list를 사용합니다.

date_specific_rule_user_list를 만드는 과정은 expression_rule_user_list를 만들 때 따르는 프로세스와 동일합니다. RuleBasedUserListInfo 객체의 expression_rule_user_list 필드를 설정하는 대신 date_specific_rule_user_list 필드를 DateSpecificRuleUserListInfo 객체를 사용하여 설정합니다. 이 객체에는 start_dateend_date 필드가 포함됩니다.

DateSpecificRuleUserListInfo dateSpecificRuleUserListInfo =
    DateSpecificRuleUserListInfo.newBuilder()
        .setRule(
            UserListRuleInfo.newBuilder()
                .addAllRuleItemGroups(
                    ImmutableList.of(checkoutAndCartSizeRuleGroup, checkoutDateRuleGroup)))
        .setStartDate(StringValue.of("2019-10-01"))
        .setEndDate(StringValue.of("2019-12-31"))
        .build();

새 목록에는 이전 목록과 동일한 규칙을 충족하는 모든 사용자가 포함되지만 start_date(포함)과 end_date (포함) 사이에 사이트를 방문한 경우에만 포함됩니다.

목록에 이전 사용자 포함

또한 사용자 목록의 prepopulation_statusREQUESTED로 설정하여 규칙 기반 사용자 목록에 이전 사용자를 포함하고 이 필드의 상태를 주기적으로 확인하여 비동기 자동 입력 프로세스의 진행 상황을 모니터링할 수 있습니다.

목록의 가입 기간 및 리마케팅 태그가 추가된 날짜에 따라 최근 30일 이내의 이전 사용자만 추가됩니다. 요청이 처리되면 상태는 FINISHED로 업데이트되고 요청이 실패하면 FAILED로 업데이트됩니다.