@pipedream/linkedin_ads 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,9 +6,20 @@ export default {
6
6
  key: "linkedin_ads-create-report",
7
7
  name: "Create A Report",
8
8
  description: "Queries the Analytics Finder to get analytics for the specified entity i.e company, account, campaign. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting#analytics-finder)",
9
- version: "0.0.5",
9
+ version: "0.0.7",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  type: "action",
11
16
  props: {
17
+ // eslint-disable-next-line pipedream/props-label, pipedream/props-description
18
+ infoAlert: {
19
+ type: "alert",
20
+ alertType: "info",
21
+ content: "Please provide at least one facet to get analytics if needed. Eg. **Accounts**.",
22
+ },
12
23
  ...common.props,
13
24
  adAccountId: {
14
25
  propDefinition: [
@@ -6,7 +6,12 @@ export default {
6
6
  key: "linkedin_ads-create-report-by-advertiser-account",
7
7
  name: "Create Report By Advertiser Account",
8
8
  description: "Sample query using analytics finder that gets analytics for a particular account for date range starting in a given year. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting#sample-request)",
9
- version: "0.0.5",
9
+ version: "0.0.7",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  ...common.props,
@@ -6,7 +6,12 @@ export default {
6
6
  key: "linkedin_ads-create-report-by-campaign",
7
7
  name: "Query Analytics Finder Campaign Sample",
8
8
  description: "Sample query using analytics finder that gets analytics for a particular campaign in a date range starting in a given year. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting#analytics-finder)",
9
- version: "0.0.5",
9
+ version: "0.0.7",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  ...common.props,
@@ -5,7 +5,12 @@ export default {
5
5
  key: "linkedin_ads-send-conversion-event",
6
6
  name: "Send Conversion Event",
7
7
  description: "Sends a conversion event to LinkedIn Ads. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/conversions-api?view=li-lms-2024-01&tabs=http#streaming-conversion-events)",
8
- version: "0.0.4",
8
+ version: "0.0.6",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  app,
@@ -0,0 +1,7 @@
1
+ const VERSION_HEADER = "202509";
2
+ const RESTLI_PROTOCOL_VERSION = "2.0.0";
3
+
4
+ export default {
5
+ VERSION_HEADER,
6
+ RESTLI_PROTOCOL_VERSION,
7
+ };
@@ -1,5 +1,6 @@
1
1
  import app from "@pipedream/linkedin";
2
2
  import utils from "./common/utils.mjs";
3
+ import constants from "./common/constants.mjs";
3
4
 
4
5
  export default {
5
6
  ...app,
@@ -151,6 +152,14 @@ export default {
151
152
  },
152
153
  methods: {
153
154
  ...app.methods,
155
+ _getHeaders() {
156
+ return {
157
+ "Authorization": `Bearer ${this.$auth.oauth_access_token}`,
158
+ "Content-Type": "application/json",
159
+ "Linkedin-Version": constants.VERSION_HEADER,
160
+ "X-Restli-Protocol-Version": constants.RESTLI_PROTOCOL_VERSION,
161
+ };
162
+ },
154
163
  getSponsoredAccountUrn(id) {
155
164
  return `urn:li:sponsoredAccount:${id}`;
156
165
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/linkedin_ads",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Pipedream LinkedIn Ads Components",
5
5
  "main": "linkedin_ads.app.mjs",
6
6
  "keywords": [
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@pipedream/linkedin": "^0.1.1",
17
- "@pipedream/platform": "^3.0.3"
17
+ "@pipedream/platform": "^3.1.0"
18
18
  }
19
19
  }
@@ -5,7 +5,7 @@ export default {
5
5
  key: "linkedin_ads-new-event-registration-form-response",
6
6
  name: "New Event Registration Form Response",
7
7
  description: "Emit new event when a fresh response is received on the event registration form. User needs to configure the prop of the specific event. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/events?view=li-lms-2024-01&tabs=http)",
8
- version: "0.0.4",
8
+ version: "0.0.5",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "linkedin_ads-new-lead-gen-form-created",
7
7
  name: "New Lead Gen Form Created",
8
8
  description: "Emit new event when a new lead is captured through a form. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/lead-sync/leadsync?view=li-lms-2023-07&tabs=http#find-lead-form-responses-by-owner)",
9
- version: "0.0.3",
9
+ version: "0.0.4",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {