Skip to content

Commit

Permalink
Update tags in Customer Match example (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurachevalier4 authored May 12, 2023
1 parent 5c2706f commit 472aa89
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/remarketing/add_customer_match_user_list.pl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ sub add_customer_match_user_list {
}

# Creates a Customer Match user list.
# [START add_customer_match_user_list_3]
sub create_customer_match_user_list {
my ($api_client, $customer_id) = @_;

Expand Down Expand Up @@ -134,6 +135,7 @@ sub create_customer_match_user_list {

return $user_list_resource_name;
}
# [END add_customer_match_user_list_3]

# Creates and executes an asynchronous job to add users to the Customer Match
# user list.
Expand Down Expand Up @@ -229,6 +231,7 @@ sub add_users_to_customer_match_user_list {
# [END add_customer_match_user_list]

# Retrieves, checks, and prints the status of the offline user data job.
# [START add_customer_match_user_list_4]
sub check_job_status() {
my ($api_client, $customer_id, $offline_user_data_job_resource_name) = @_;

Expand Down Expand Up @@ -280,6 +283,7 @@ ()

return 1;
}
# [END add_customer_match_user_list_4]

# Builds and returns offline user data job operations to add one user identified
# by an email address and one user identified based on a physical address.
Expand Down Expand Up @@ -391,7 +395,6 @@ ()
})}));
}
}
# [END add_customer_match_user_list_2]

# If the user_identifiers array is not empty, create a new
# OfflineUserDataJobOperation and add the UserData to it.
Expand All @@ -406,11 +409,12 @@ ()
}));
}
}

# [END add_customer_match_user_list_2]
return $operations;
}

# Prints information about the Customer Match user list.
# [START add_customer_match_user_list_5]
sub print_customer_match_user_list_info {
my ($api_client, $customer_id, $user_list_resource_name) = @_;

Expand Down Expand Up @@ -455,6 +459,7 @@ sub print_customer_match_user_list_info {
"Reminder: It may take several hours for the user list to be populated " .
"with the users so getting zeros for the estimations is expected.\n";
}
# [END add_customer_match_user_list_5]

# Normalizes and hashes a string value.
sub normalize_and_hash {
Expand Down

0 comments on commit 472aa89

Please sign in to comment.