Skip to content

Commit 38b54ae

Browse files
authored
Google Ads Generate Keyword Ideas (#18977)
* generate-keyword-ideas * versions * fix key * update
1 parent c72c2e0 commit 38b54ae

File tree

9 files changed

+69
-7
lines changed

9 files changed

+69
-7
lines changed

components/google_ads/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "google_ads-add-contact-to-list-by-email",
88
name: "Add Contact to Customer List by Email",
99
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.5",
10+
version: "0.1.6",
1111
annotations: {
1212
destructiveHint: true,
1313
openWorldHint: true,

components/google_ads/actions/create-customer-list/create-customer-list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
key: "google_ads-create-customer-list",
1616
name: "Create Customer List",
1717
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.6",
18+
version: "0.0.7",
1919
annotations: {
2020
destructiveHint: false,
2121
openWorldHint: true,

components/google_ads/actions/create-report/create-report.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
key: "google_ads-create-report",
2020
name: "Create Report",
2121
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.4",
22+
version: "0.1.5",
2323
annotations: {
2424
destructiveHint: false,
2525
openWorldHint: true,
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
};

components/google_ads/actions/send-offline-conversion/send-offline-conversion.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "google_ads-send-offline-conversion",
99
name: "Send Offline Conversion",
1010
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.6",
11+
version: "0.0.7",
1212
annotations: {
1313
destructiveHint: false,
1414
openWorldHint: true,

components/google_ads/google_ads.app.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,12 @@ export default {
247247
...args,
248248
});
249249
},
250+
async generateKeywordIdeas(opts = {}) {
251+
return this._makeRequest({
252+
method: "POST",
253+
path: "/v22/customers/{customerClientId}:generateKeywordIdeas",
254+
...opts,
255+
});
256+
},
250257
},
251258
};

components/google_ads/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/google_ads",
3-
"version": "0.3.3",
3+
"version": "0.4.0",
44
"description": "Pipedream Google Ads Components",
55
"main": "google_ads.app.mjs",
66
"keywords": [

components/google_ads/sources/new-campaign-created/new-campaign-created.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "google_ads-new-campaign-created",
88
name: "New Campaign Created",
99
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",
1111
type: "source",
1212
dedupe: "unique",
1313
sampleEmit,

components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "google_ads-new-lead-form-entry",
99
name: "New Lead Form Entry",
1010
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",
1212
type: "source",
1313
dedupe: "unique",
1414
sampleEmit,

0 commit comments

Comments
 (0)