expression_rule_user_list
के लिए,
ध्यान देने लायक अलग-अलग चीज़ें हैं. डिफ़ॉल्ट रूप से, Google Ads किसी नियम आइटम के ग्रुप के सभी नियम आइटम को एक साथ AND
कर देगा. इसका मतलब है कि कम से कम एक नियम आइटम के ग्रुप में मौजूद नियम का हर आइटम, नियम से मेल खाना चाहिए, ताकि वेबसाइट पर आने वाले व्यक्ति को जोड़ा जा सके. इसे "डिसंजक्टिव नॉर्मल फ़ॉर्म" या OR_OF_ANDS
कहा जाता है.
इसके अलावा, आप सूची में वेबसाइट पर आने वाले व्यक्ति को सिर्फ़ तब जोड़ने के लिए अपनी सूची सेट अप कर सकते हैं, जब
नियम के हर आइटम ग्रुप में कम से कम एक नियम का आइटम मेल खाता हो. इसे "कंजंकेटिव नॉर्मल फ़ॉर्म" या AND_OF_ORS
कहा जाता है.
यह rule_type
फ़ील्ड का इस्तेमाल करके, expression_rule_user_list
के लिए उपलब्ध है. 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 = ( 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)
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::V16::Common::FlexibleRuleUserListInfo->new({ inclusiveRuleOperator => AND, inclusiveOperands => [ Google::Ads::GoogleAds::V16::Common::FlexibleRuleOperandInfo->new({ rule => Google::Ads::GoogleAds::V16::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
आपकी ज़रूरतों को पूरा करता है, लेकिन अगर आपको सिर्फ़ उन उपयोगकर्ताओं का
हिस्सा लेना है जो उस सूची के नियम को पूरा करते हैं और 1 अक्टूबर से 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_date
और end_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_status
को REQUESTED
पर सेट करें. साथ ही,
समय-समय पर इस फ़ील्ड की स्थिति की जांच करके, एसिंक्रोनस प्री-पॉप्युलेशन
की प्रोसेस की प्रोग्रेस पर नज़र रखें.
इसमें पिछले 30 दिनों के उपयोगकर्ताओं को ही जोड़ा जाएगा. यह सूची की सदस्यता अवधि और रीमार्केटिंग टैग जोड़ने की तारीख पर निर्भर करेगा. अनुरोध प्रोसेस होने के बाद, स्टेटस को FINISHED
पर अपडेट किया जाएगा. इसके अलावा, अनुरोध पूरा न होने पर, इसकी स्थिति FAILED
हो जाएगी.