Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Aug 11, 2025

This PR upgrades the LinkedIn API version for both LinkedIn Audiences and LinkedIn Conversions destinations from 202505 to 202507.

Changes Made

The upgrade affects the LinkedIn-Version header sent with all API requests to LinkedIn's REST API. The following constants were updated:

  • LinkedIn Audiences: LINKEDIN_API_VERSION in constants.ts
  • LinkedIn Conversions: LINKEDIN_API_VERSION in constants.ts

Both destinations now use the consistent API version 202507, which is set in the LinkedIn-Version header via the extendRequest function in each destination's main index file.

Files Modified

  • packages/destination-actions/src/destinations/linkedin-audiences/constants.ts
  • packages/destination-actions/src/destinations/linkedin-conversions/constants.ts
  • Snapshot test files that capture the API version in HTTP headers

Implementation Details

The change is minimal and surgical - only the version string was updated from '202505' to '202507'. No functional logic was modified. The constant is properly imported and used in both destinations to set the required LinkedIn-Version header for API compatibility.

Snapshot tests were updated to reflect the new API version in the captured HTTP headers, ensuring tests remain accurate.

Fixes #3159.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.linkedin.com
    • Triggering command: curl -s REDACTED (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Upgrade LinkedIn Audiences destination version from v202507 Upgrade LinkedIn API version from 202505 to 202507 Aug 11, 2025
@Copilot Copilot AI requested a review from varadarajan-tw August 11, 2025 11:43
Copilot finished work on behalf of varadarajan-tw August 11, 2025 11:43
Copy link

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.81%. Comparing base (a10053a) to head (b823e40).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3160   +/-   ##
=======================================
  Coverage   79.81%   79.81%           
=======================================
  Files        1165     1165           
  Lines       21513    21513           
  Branches     4159     4158    -1     
=======================================
  Hits        17171    17171           
  Misses       3627     3627           
  Partials      715      715           

☔ 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.

Upgrade LinkedIn Audiences destination version from v202507
3 participants