Skip to content

STRATCONN-6671 - [LinkedIn Audiences] - membership update#3697

Open
joe-ayoub-segment wants to merge 4 commits intomainfrom
linkedin-audiences-membership-update
Open

STRATCONN-6671 - [LinkedIn Audiences] - membership update#3697
joe-ayoub-segment wants to merge 4 commits intomainfrom
linkedin-audiences-membership-update

Conversation

@joe-ayoub-segment
Copy link
Copy Markdown
Contributor

@joe-ayoub-segment joe-ayoub-segment commented Mar 27, 2026

Updates the LinkedIn Audiences updateAudience action to support Segment's audienceMembership signal for determining whether a user should be added to or removed from an audience.

Previously, the action relied solely on the event name (Audience Entered / Audience Exited) to determine the ADD or REMOVE action sent to LinkedIn's DMP API.

This change adds a parallel path: when the actions-linkedin-audiences-audience-membership feature flag is enabled, the resolved audienceMembership boolean (derived from Engage or RETL event payloads) takes precedence over event name matching in AUTO mode.

Testing

New Unit tests added.
To be tested in Staging.

Security Review

Please ensure sensitive data is properly protected in your integration.

  • Reviewed all field definitions for sensitive data (API keys, tokens, passwords, client secrets) and confirmed they use type: 'password'

New Destination Checklist

  • Extracted all action API versions to verioning-info.ts file. example

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.68%. Comparing base (b04de04) to head (296220a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...nations/linkedin-audiences/updateAudience/index.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3697      +/-   ##
==========================================
- Coverage   80.88%   80.68%   -0.20%     
==========================================
  Files        1383     1326      -57     
  Lines       27609    24644    -2965     
  Branches     5931     5085     -846     
==========================================
- Hits        22331    19885    -2446     
+ Misses       4323     3826     -497     
+ Partials      955      933      -22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant