@pipedream/google_ads 0.3.3 → 0.4.0

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.
@@ -7,7 +7,12 @@ export default {
7
7
  key: "google_ads-add-contact-to-list-by-email",
8
8
  name: "Add Contact to Customer List by Email",
9
9
  description: "Adds a contact to a specific customer list in Google Ads. Lists typically update in 6 to 12 hours after operation. [See the documentation](https://developers.google.com/google-ads/api/docs/remarketing/audience-segments/customer-match/get-started)",
10
- version: "0.1.4",
10
+ version: "0.1.6",
11
+ annotations: {
12
+ destructiveHint: true,
13
+ openWorldHint: true,
14
+ readOnlyHint: false,
15
+ },
11
16
  type: "action",
12
17
  props: {
13
18
  ...common.props,
@@ -15,7 +15,12 @@ export default {
15
15
  key: "google_ads-create-customer-list",
16
16
  name: "Create Customer List",
17
17
  description: "Create a new customer list in Google Ads. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/UserList)",
18
- version: "0.0.5",
18
+ version: "0.0.7",
19
+ annotations: {
20
+ destructiveHint: false,
21
+ openWorldHint: true,
22
+ readOnlyHint: false,
23
+ },
19
24
  type: "action",
20
25
  props: {
21
26
  ...common.props,
@@ -19,7 +19,12 @@ export default {
19
19
  key: "google_ads-create-report",
20
20
  name: "Create Report",
21
21
  description: "Generates a report from your Google Ads data. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/GoogleAdsService/Search?transport=rest)",
22
- version: "0.1.3",
22
+ version: "0.1.5",
23
+ annotations: {
24
+ destructiveHint: false,
25
+ openWorldHint: true,
26
+ readOnlyHint: false,
27
+ },
23
28
  type: "action",
24
29
  props: {
25
30
  ...common.props,
@@ -0,0 +1,55 @@
1
+ import googleAds from "../../google_ads.app.mjs";
2
+ import { getAdditionalFields } from "../common/props.mjs";
3
+ import {
4
+ parseObject, parseStringObject,
5
+ } from "../../common/utils.mjs";
6
+ const docLink = "https://developers.google.com/google-ads/api/reference/rpc/v22/KeywordPlanIdeaService/GenerateKeywordIdeas?transport=rest";
7
+
8
+ export default {
9
+ key: "google_ads-generate-keyword-ideas",
10
+ name: "Generate Keyword Ideas",
11
+ description: `Generate keyword ideas using the Google Ads API. [See the documentation](${docLink})`,
12
+ version: "0.0.1",
13
+ type: "action",
14
+ annotations: {
15
+ destructiveHint: false,
16
+ openWorldHint: true,
17
+ readOnlyHint: true,
18
+ },
19
+ props: {
20
+ googleAds,
21
+ accountId: {
22
+ propDefinition: [
23
+ googleAds,
24
+ "accountId",
25
+ ],
26
+ },
27
+ customerClientId: {
28
+ propDefinition: [
29
+ googleAds,
30
+ "customerClientId",
31
+ ({ accountId }) => ({
32
+ accountId,
33
+ }),
34
+ ],
35
+ optional: false,
36
+ },
37
+ additionalFields: {
38
+ ...getAdditionalFields(docLink),
39
+ optional: false,
40
+ },
41
+ },
42
+ async run({ $ }) {
43
+ const additionalFields = parseObject(parseStringObject(this.additionalFields));
44
+ const response = await this.googleAds.generateKeywordIdeas({
45
+ $,
46
+ accountId: this.accountId,
47
+ customerClientId: this.customerClientId,
48
+ data: {
49
+ ...additionalFields,
50
+ },
51
+ });
52
+ $.export("$summary", "Successfully generated keyword ideas.");
53
+ return response;
54
+ },
55
+ };
@@ -8,7 +8,12 @@ export default {
8
8
  key: "google_ads-send-offline-conversion",
9
9
  name: "Send Offline Conversion",
10
10
  description: "Send an event to Google Ads to track offline conversions. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionAction)",
11
- version: "0.0.5",
11
+ version: "0.0.7",
12
+ annotations: {
13
+ destructiveHint: false,
14
+ openWorldHint: true,
15
+ readOnlyHint: false,
16
+ },
12
17
  type: "action",
13
18
  props: {
14
19
  ...common.props,
@@ -247,5 +247,12 @@ export default {
247
247
  ...args,
248
248
  });
249
249
  },
250
+ async generateKeywordIdeas(opts = {}) {
251
+ return this._makeRequest({
252
+ method: "POST",
253
+ path: "/v22/customers/{customerClientId}:generateKeywordIdeas",
254
+ ...opts,
255
+ });
256
+ },
250
257
  },
251
258
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_ads",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Pipedream Google Ads Components",
5
5
  "main": "google_ads.app.mjs",
6
6
  "keywords": [
@@ -13,7 +13,6 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@pipedream/platform": "^3.0.3",
17
- "crypto": "^1.0.1"
16
+ "@pipedream/platform": "^3.1.1"
18
17
  }
19
18
  }
@@ -7,7 +7,7 @@ export default {
7
7
  key: "google_ads-new-campaign-created",
8
8
  name: "New Campaign Created",
9
9
  description: "Emit new event when a new campaign is created. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/GoogleAdsService/Search?transport=rest)",
10
- version: "0.0.5",
10
+ version: "0.0.6",
11
11
  type: "source",
12
12
  dedupe: "unique",
13
13
  sampleEmit,
@@ -8,7 +8,7 @@ export default {
8
8
  key: "google_ads-new-lead-form-entry",
9
9
  name: "New Lead Form Entry",
10
10
  description: "Emit new event for new leads on a Lead Form. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/GoogleAdsService/Search?transport=rest)",
11
- version: "0.0.5",
11
+ version: "0.0.6",
12
12
  type: "source",
13
13
  dedupe: "unique",
14
14
  sampleEmit,