रीमार्केटिंग कैंपेन में उपयोगकर्ता सूचियों का इस्तेमाल किया जा सकता है. इससे उन उपयोगकर्ताओं से फिर से जुड़ा जा सकता है जिन्होंने आपकी वेबसाइट या ऐप्लिकेशन पर कुछ खास कार्रवाइयां की हैं. Google Ads API, कई तरह की उपयोगकर्ता सूचियों के साथ काम करता है. इस गाइड में, नियम के हिसाब से आइटम ग्रुप बनाना में बताए गए नियम के हिसाब से आइटम ग्रुप का इस्तेमाल करके, नियमों पर आधारित उपयोगकर्ता सूचियां बनाने पर फ़ोकस किया गया है.
नियम पर आधारित उपयोगकर्ता सूचियां
flexible_rule_user_list का इस्तेमाल करके बनाई गई, नियम पर आधारित उपयोगकर्ता सूचियों में कई नियम शामिल हो सकते हैं. जैसे, inclusive_rule और exclusive_rule, जिन्हें inclusive_rule_operator से जोड़ा जाता है. हर नियम को UserListRuleInfo मैसेज से दिखाया जाता है. इसमें rule_type फ़ील्ड होता है. यह फ़ील्ड बताता है कि नियम आइटम ग्रुप में मौजूद नियम आइटम को कैसे जोड़ा जाता है.
हालांकि, UserListRuleTypeEnum, OR_OF_ANDS (डिसजंक्टिव नॉर्मल फ़ॉर्म) और AND_OF_ORS (कंजंक्टिव नॉर्मल फ़ॉर्म), दोनों को तय करता है, लेकिन FlexibleRuleUserListInfo के लिए सिर्फ़ OR_OF_ANDS, rule_type के तौर पर इस्तेमाल किया जा सकता है (AND_OF_ORS सेट करने पर UserListError.RULE_TYPE_IS_NOT_SUPPORTED मिलता है). OR_OF_ANDS की मदद से, Google Ads, नियम के आइटम के ग्रुप में मौजूद सभी आइटम को AND करता है. इसका मतलब है कि किसी नियम के लिए, हर नियम आइटम को कम से कम एक नियम आइटम ग्रुप से मैच करना होगा, ताकि नियम पूरा हो सके.
नियम के आइटम ग्रुप बनाएं में दो UserListRuleItemGroupInfo ऑब्जेक्ट तय करने के बाद, उन्हें नई उपयोगकर्ता सूची में शामिल करें.
कोड के इस उदाहरण में, डिफ़ॉल्ट OR_OF_ANDS नियम के टाइप को अपनी जगह पर रखा गया है. साथ ही, दोनों नियम आइटम ग्रुप को FlexibleRuleUserListInfo पर मौजूद FlexibleRuleOperandInfo में जोड़ा गया है. इसके अलावा, उपयोगकर्ता सूची में बदलाव किया गया है:
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::V25::Common::FlexibleRuleUserListInfo->new({ inclusiveRuleOperator => AND, inclusiveOperands => [ Google::Ads::GoogleAds::V25::Common::FlexibleRuleOperandInfo->new({ rule => Google::Ads::GoogleAds::V25::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 => []});
curl
नियमों पर आधारित सूची में, पिछले उपयोगकर्ताओं को शामिल करना
नियम पर आधारित उपयोगकर्ता सूची में, वेबसाइट पर पहले आ चुके लोगों या ऐप्लिकेशन का इस्तेमाल कर चुके लोगों को भी शामिल किया जा सकता है. यह सुविधा, सिर्फ़ डिसप्ले नेटवर्क पर काम करती है. इसके लिए, उपयोगकर्ता सूची के prepopulation_status को REQUESTED पर सेट करें. साथ ही, इस फ़ील्ड की स्थिति को समय-समय पर देखकर, एसिंक्रोनस प्रीपॉपुलेशन प्रोसेस की प्रोग्रेस को मॉनिटर करें.
प्रीपॉपुलेशन की सुविधा सिर्फ़ पिछले 30 दिनों के उपयोगकर्ताओं को जोड़ती है. यह इस बात पर निर्भर करता है कि सूची की membership_life_span (1 से 540 दिन) क्या है और रीमार्केटिंग टैग कब जोड़ा गया था. अनुरोध प्रोसेस होने के बाद, स्टेटस FINISHED में बदल जाता है. अगर अनुरोध पूरा नहीं होता है, तो स्टेटस FAILED में बदल जाता है.
उपयोगकर्ताओं की सूची को टारगेट करना और बिड घटाना या बढ़ाना
UserList बनाने के बाद, इसके संसाधन का नाम AdGroupCriterion या CampaignCriterion से जोड़ें. इसके बाद, bid_modifier सेट करें. उदाहरण के लिए, बिड में 25% की बढ़ोतरी के लिए 1.25 सेट करें. उपयोगकर्ता सूची को टारगेट करने और बिड में बदलाव करने का तरीका बताने वाले कोड के उदाहरणों के लिए, सूची को टारगेट करना लेख पढ़ें.