Skip to content

Commit f9f5f6d

Browse files
committed
Strip email_address in normalize_and_hash_email_address function of remarketing examples.
1 parent e024c04 commit f9f5f6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/remarketing/upload_enhanced_conversions_for_leads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def normalize_and_hash_email_address(email_address):
196196
Returns:
197197
A normalized (lowercase, removed whitespace) and SHA-265 hashed string.
198198
"""
199-
normalized_email = email_address.lower()
199+
normalized_email = email_address.strip().lower()
200200
email_parts = normalized_email.split("@")
201201

202202
# Check that there are at least two segments

examples/remarketing/upload_enhanced_conversions_for_web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def normalize_and_hash_email_address(email_address):
228228
Returns:
229229
A normalized (lowercase, removed whitespace) and SHA-265 hashed string.
230230
"""
231-
normalized_email = email_address.lower()
231+
normalized_email = email_address.strip().lower()
232232
email_parts = normalized_email.split("@")
233233

234234
# Check that there are at least two segments

0 commit comments

Comments
 (0)