Skip to content

Fix inconsistencies in email and phone normalization (#898) - #900

Merged
jradcliff merged 1 commit into
mainfrom
normalization
Aug 20, 2026
Merged

Fix inconsistencies in email and phone normalization (#898)#900
jradcliff merged 1 commit into
mainfrom
normalization

Conversation

@jradcliff

Copy link
Copy Markdown
Member

Make email and phone number normalization consistent across all audience and conversion upload examples:

  • Apply Gmail-specific normalization by removing periods (.) and plus (+) suffixes from gmail.com and googlemail.com usernames.
  • Add E.164 phone number validation (^+[1-9]\d{6,14}$) and throw an IllegalArgumentException if phone numbers do not match this format.
  • Update sample records across remarketing examples to conform to E.164 phone formatting and demonstrate Gmail domain normalization.

Make email and phone number normalization consistent across all audience
and conversion upload examples:
- Apply Gmail-specific normalization by removing periods (.) and plus (+)
  suffixes from gmail.com and googlemail.com usernames.
- Normalize phone numbers by retaining a leading plus (+) sign and
  removing all non-digit characters that follow.
- Add E.164 phone number validation (^\+[1-9]\d{6,14}$) after
  normalization, and throw an IllegalArgumentException if phone numbers
  do not match this format.
- Update sample records across remarketing examples to conform to E.164
  phone formatting and demonstrate Gmail domain normalization.
@jradcliff
jradcliff requested review from AnashOommen, BenRKarl and Raibaz and removed request for BenRKarl August 14, 2026 16:13
@jradcliff
jradcliff merged commit 77e21d4 into main Aug 20, 2026
8 checks passed
@jradcliff
jradcliff deleted the normalization branch August 20, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants