- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.5k
Description
For Component dev
I think let's have the Start Date and End Date passed as is to the LinkedIn API. This will remove quite a lot of complexity
App
LinkedIn Ads Integration
Summary:
I was using the "Create A Report" action using the LinkedIn Ads Integration and I got a param invalid error for Date Range Start field in pipedream (dateRange in LinkedIn API). I think the integration is broken.
Details:
Date Field in LinkedIn Ads Integration doesnt work.
I was using the "Create A Report" action using the LinkedIn Ads Integration and I got a param invalid error for Date Range Start field in pipedream (dateRange in LinkedIn API). I think the integration is broken.
I tried entering date in pipedream agent editor UI as both
YYYY-MM-DD format as specified in pipedream docs and the linkedin api docs format (year:2024=5,month:5,day:28)
I inspected the code where the integration is defined
https://github.com/PipedreamHQ/pipedream/blob/master/components/linkedin_ads/actions/create-report/create-report.mjs
And I suspect the retuned object is not a JSON object as LinkedIn API expects (https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting?view=li-lms-2025-09&tabs=http#analytics-finder)(https://learn.microsoft.com/en-us/linkedin/shared/references/v2/object-types?view=li-lms-2025-09&context=linkedin%2Fmarketing%2Fcontext#date) but instead a flat string
| getDateRangeParam(startStr, endStr) { | 
    getDateStr(date) {
      return [
        `day:${date.getDate()}`,
        `month:${date.getMonth() + 1}`,
        `year:${date.getFullYear()}`,
      ].join(",");
    },
    getDateRangeParam(startStr, endStr) {
      const { getDateStr } = this;
      const start = getDateStr(new Date(startStr));
      if (!endStr) {
        return `(start:(${start}))`;
      }
      const end = getDateStr(new Date(endStr));
      return `(start:(${start}),end:(${end}))`;
    },Ref : https://pipedream.com/apps/linkedin-ads
Screenshots:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
