Skip to content

Commit e028390

Browse files
committed
Strip email_address in normalize_and_hash_email_address function of remarketing examples.
1 parent c2c85c9 commit e028390

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/remarketing/upload_conversion_enhancement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def normalize_and_hash_email_address(email_address):
170170
Returns:
171171
A normalized (lowercase, removed whitespace) and SHA-265 hashed string.
172172
"""
173-
normalized_email = email_address.lower()
173+
normalized_email = email_address.strip().lower()
174174
email_parts = normalized_email.split("@")
175175

176176
# Check that there are at least two segments

examples/remarketing/upload_conversion_with_identifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def normalize_and_hash_email_address(email_address):
122122
Returns:
123123
A normalized (lowercase, removed whitespace) and SHA-265 hashed string.
124124
"""
125-
normalized_email = email_address.lower()
125+
normalized_email = email_address.strip().lower()
126126
email_parts = normalized_email.split("@")
127127

128128
# Check that there are at least two segments

0 commit comments

Comments
 (0)