expression_rule_user_list
के लिए,
एक और अंतर करना ज़रूरी है. डिफ़ॉल्ट रूप से, Google Ads किसी नियम के आइटम ग्रुप में मौजूद सभी आइटम को AND
कर देगा. इसका मतलब है कि कम से कम एक नियम आइटम ग्रुप में मौजूद हर नियम आइटम का मेल खाना ज़रूरी है. ऐसा होने पर ही, नियम के तहत किसी विज़िटर को सूची में जोड़ा जा सकेगा. इसे "डिसजंक्टिव नॉर्मल फ़ॉर्म" या OR_OF_ANDS
कहा जाता है.
इसके अलावा, अपनी सूची को इस तरह से सेट अप किया जा सकता है कि किसी विज़िटर को सूची में सिर्फ़ तब जोड़ा जाए, जब हर नियम आइटम ग्रुप में कम से कम एक नियम आइटम मेल खाता हो. इसे "कंजंक्टिव नॉर्मल फ़ॉर्म" या AND_OF_ORS
कहा जाता है. यह expression_rule_user_list
के लिए उपलब्ध है. इसके लिए, rule_type
फ़ील्ड का इस्तेमाल करें. date_specific_rule_user_list
के लिए AND_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);
PHP
$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: 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)
Ruby
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::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
पर अपडेट कर दिया जाएगा.