ব্যবহারকারীর তালিকা তৈরি করা

expression_rule_user_list এর জন্য, একটি অতিরিক্ত পার্থক্য করতে হবে। ডিফল্টরূপে, Google Ads একটি নিয়ম আইটেম গ্রুপে সমস্ত নিয়ম আইটেমকে AND একসাথে করবে। এর অর্থ হল, তালিকায় একজন দর্শনার্থী যোগ করার জন্য নিয়মটি কমপক্ষে একটি নিয়ম আইটেম গ্রুপের প্রতিটি নিয়ম আইটেমের সাথে মিল থাকতে হবে। এটিকে "ডিসজাঙ্কটিভ নরমাল ফর্ম" বা OR_OF_ANDS বলা হয়।

বিকল্পভাবে, আপনি আপনার তালিকাটি এমনভাবে সেট আপ করতে পারেন যাতে প্রতিটি নিয়ম আইটেম গ্রুপের কমপক্ষে একটি নিয়ম আইটেম মিলে গেলেই কেবল তালিকায় একজন ভিজিটর যোগ করা যায়। এটিকে "conjunctive normal form" বা AND_OF_ORS বলা হয়, এবং rule_type ক্ষেত্র ব্যবহার করে expression_rule_user_list জন্য উপলব্ধ। date_specific_rule_user_list এর জন্য AND_OF_ORS ব্যবহার করার চেষ্টা করলে একটি ত্রুটি দেখা দেবে।

এখন শুধু উপরের নিয়ম আইটেম গ্রুপগুলিকে একত্রিত করে একটি নতুন ব্যবহারকারী তালিকা তৈরি করা বাকি আছে। এই ক্ষেত্রে, আমরা ডিফল্ট OR_OF_ANDS কার্যকারিতাটি রেখে দেব, কারণ আমরা এই নিয়মগুলি তৈরি করার জন্যই এই নিয়মগুলি তৈরি করেছি।

জাভা

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();
      

সি#

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);
      

পিএইচপি

$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' => []
]);
      

পাইথন

# 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: FlexibleRuleUserListInfo = (
    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: FlexibleRuleOperandInfo = 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
      

পার্ল

my $flexible_rule_user_list_info =
  Google::Ads::GoogleAds::V22::Common::FlexibleRuleUserListInfo->new({
    inclusiveRuleOperator => AND,
    inclusiveOperands     => [
      Google::Ads::GoogleAds::V22::Common::FlexibleRuleOperandInfo->new({
          rule => Google::Ads::GoogleAds::V22::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 => []});
      

তালিকায় পূর্ববর্তী ব্যবহারকারীদের অন্তর্ভুক্ত করুন

আপনি ব্যবহারকারী তালিকার prepopulation_status REQUESTED এ সেট করে একটি নিয়ম-ভিত্তিক ব্যবহারকারী তালিকায় পূর্ববর্তী ব্যবহারকারীদের অন্তর্ভুক্ত করতে পারেন এবং পর্যায়ক্রমে এই ক্ষেত্রের স্থিতি পরীক্ষা করে অ্যাসিঙ্ক্রোনাস প্রি-পপুলেশন প্রক্রিয়ার অগ্রগতি পর্যবেক্ষণ করতে পারেন।

তালিকার সদস্যতার সময়কাল এবং পুনঃবিপণন ট্যাগ যোগ করার তারিখের উপর নির্ভর করে এটি শুধুমাত্র গত 30 দিনের মধ্যে থাকা পূর্ববর্তী ব্যবহারকারীদের যোগ করবে। অনুরোধটি প্রক্রিয়া করা হলে স্ট্যাটাসটি FINISHED তে আপডেট করা হবে, অথবা অনুরোধটি ব্যর্থ হলে FAILED তে আপডেট করা হবে।