Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "google_ads-add-contact-to-list-by-email",
name: "Add Contact to Customer List by Email",
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)",
version: "0.1.5",
version: "0.1.6",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
key: "google_ads-create-customer-list",
name: "Create Customer List",
description: "Create a new customer list in Google Ads. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/UserList)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
key: "google_ads-create-report",
name: "Create Report",
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)",
version: "0.1.4",
version: "0.1.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import common from "../common/common.mjs";
import { getAdditionalFields } from "../common/props.mjs";
import {
parseObject, parseStringObject,
} from "../../common/utils.mjs";
const docLink = "https://developers.google.com/google-ads/api/reference/rpc/v22/KeywordPlanIdeaService/GenerateKeywordIdeas?transport=rest";

export default {
key: "google-ads-generate-keyword-ideas",
name: "Generate Keyword Ideas",
description: `Generate keyword ideas using the Google Ads API. [See the documentation](${docLink})`,
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
props: {
...common.props,
additionalFields: getAdditionalFields(docLink),
},
async run({ $ }) {
const additionalFields = parseObject(parseStringObject(this.additionalFields));
const response = await this.googleAds.generateKeywordIdeas({
$,
accountId: this.accountId,
customerClientId: this.customerClientId,
data: {
...additionalFields,
},
});
$.export("$summary", "Successfully generated keyword ideas.");
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "google_ads-send-offline-conversion",
name: "Send Offline Conversion",
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)",
version: "0.0.6",
version: "0.0.7",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
7 changes: 7 additions & 0 deletions components/google_ads/google_ads.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,12 @@ export default {
...args,
});
},
async generateKeywordIdeas(opts = {}) {
return this._makeRequest({
method: "POST",
path: "/v22/customers/{customerClientId}:generateKeywordIdeas",
...opts,
});
},
},
};
2 changes: 1 addition & 1 deletion components/google_ads/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/google_ads",
"version": "0.3.3",
"version": "0.4.0",
"description": "Pipedream Google Ads Components",
"main": "google_ads.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
key: "google_ads-new-campaign-created",
name: "New Campaign Created",
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)",
version: "0.0.5",
version: "0.0.6",
type: "source",
dedupe: "unique",
sampleEmit,
props: {
...common.props,
customerClientId: {

Check warning on line 16 in components/google_ads/sources/new-campaign-created/new-campaign-created.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop customerClientId must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 16 in components/google_ads/sources/new-campaign-created/new-campaign-created.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop customerClientId must have a label. See https://pipedream.com/docs/components/guidelines/#props
...common.props.customerClientId,
},
fields: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
key: "google_ads-new-lead-form-entry",
name: "New Lead Form Entry",
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)",
version: "0.0.5",
version: "0.0.6",
type: "source",
dedupe: "unique",
sampleEmit,
Expand All @@ -26,7 +26,7 @@
})),
],
},
docsAlert: {

Check warning on line 29 in components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop docsAlert must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 29 in components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop docsAlert must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "If needed, see Google's documentation on [submission fields](https://developers.google.com/google-ads/api/reference/rpc/v21/LeadFormSubmissionField) and [custom submission fields](https://developers.google.com/google-ads/api/reference/rpc/v21/CustomLeadFormSubmissionField).",
Expand Down
Loading