@pipedream/google_ads 0.2.0 → 0.2.1

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.
@@ -17,7 +17,7 @@ export default {
17
17
  key: "google_ads-create-report",
18
18
  name: "Create Report",
19
19
  description: "Generates a report from your Google Ads data. [See the documentation](https://developers.google.com/google-ads/api/fields/v16/overview)",
20
- version: "0.0.1",
20
+ version: "0.0.2",
21
21
  type: "action",
22
22
  props: {
23
23
  ...common.props,
@@ -73,10 +73,20 @@ export default {
73
73
  description: "The field to order the results by",
74
74
  optional: true,
75
75
  options: [
76
- ...(this.fields ?? []),
77
- ...(this.segments ?? []),
78
- ...(this.metrics ?? []),
79
- ],
76
+ this.fields,
77
+ this.segments,
78
+ this.metrics,
79
+ ].filter((v) => v).flatMap((value) => {
80
+ let returnValue = value;
81
+ if (typeof value === "string") {
82
+ try {
83
+ returnValue = JSON.parse(value);
84
+ } catch (err) {
85
+ returnValue = value.split(",");
86
+ }
87
+ }
88
+ return returnValue?.map?.((str) => str.trim());
89
+ }),
80
90
  },
81
91
  direction: {
82
92
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_ads",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pipedream Google Ads Components",
5
5
  "main": "google_ads.app.mjs",
6
6
  "keywords": [