diff --git a/components/google_ads/README.md b/components/google_ads/README.md index bb809836fb400..6f178e61aa5a1 100644 --- a/components/google_ads/README.md +++ b/components/google_ads/README.md @@ -28,7 +28,7 @@ The component accepts a standard Google Ads API request object with the followin ```javascript const googleAdsReq = { method: "get|post|put|delete", // HTTP method - url: "/v18/...", // Google Ads API endpoint path + url: "/v21/...", // Google Ads API endpoint path headers: { Authorization: `Bearer ${this.googleAds.$auth.oauth_access_token}`, }, diff --git a/components/google_ads/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs b/components/google_ads/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs index 0f21076d0d2dd..c5a48569642bb 100644 --- a/components/google_ads/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs +++ b/components/google_ads/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs @@ -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.3", + version: "0.1.4", type: "action", props: { ...common.props, diff --git a/components/google_ads/actions/common/props.mjs b/components/google_ads/actions/common/props.mjs index b8f744f4b31f2..4d01e78cbd4bf 100644 --- a/components/google_ads/actions/common/props.mjs +++ b/components/google_ads/actions/common/props.mjs @@ -1,5 +1,5 @@ const DEFAULT_DOCS = - "https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList"; + "https://developers.google.com/google-ads/api/reference/rpc/v21/UserList"; export const getAdditionalFields = (docsLink = DEFAULT_DOCS) => ({ type: "object", diff --git a/components/google_ads/actions/create-customer-list/common-constants.mjs b/components/google_ads/actions/create-customer-list/common-constants.mjs index 96a44d1f8d4e6..9343275ff767e 100644 --- a/components/google_ads/actions/create-customer-list/common-constants.mjs +++ b/components/google_ads/actions/create-customer-list/common-constants.mjs @@ -57,7 +57,7 @@ const USER_LIST_CRM_BASED_PROPS = { type: "string", label: "App ID", description: - "A string that uniquely identifies a mobile application from which the data was collected. [See the documentation](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo) for more details.", + "A string that uniquely identifies a mobile application from which the data was collected. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/CrmBasedUserListInfo) for more details.", optional: true, }, }; @@ -74,7 +74,7 @@ const USER_LIST_RULE_BASED_PROPS = { type: "object", label: "Flexible Rule Customer List", description: - "Flexible rule representation of visitors with one or multiple actions. [See the documentation](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#FlexibleRuleUserListInfo) on how to build this object. Values will be parsed as JSON where applicable.", + "Flexible rule representation of visitors with one or multiple actions. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/FlexibleRuleUserListInfo) on how to build this object. Values will be parsed as JSON where applicable.", optional: true, }, }; @@ -84,7 +84,7 @@ const USER_LIST_LOGICAL_PROPS = { type: "string[]", label: "Rules", description: - "Logical list rules that define this customer list. [See the documentation](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#UserListLogicalRuleInfo) on how to build each object. Values will be parsed as JSON where applicable.", + "Logical list rules that define this customer list. [See the documentation](https://developers.google.com/google-ads/api/reference/rpc/v21/UserListLogicalRuleInfo) on how to build each object. Values will be parsed as JSON where applicable.", }, }; @@ -92,7 +92,7 @@ const USER_LIST_BASIC_PROPS = { conversionActions: { type: "string[]", label: "Conversion action(s)", - description: "One or more [conversion actions](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction) to build the list with.", + description: "One or more [conversion actions](https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionAction) to build the list with.", optional: true, options: async() => { const { @@ -115,7 +115,7 @@ const USER_LIST_BASIC_PROPS = { remarketingActions: { type: "string[]", label: "Remarketing action(s)", - description: "One or more [remarketing actions](https://developers.google.com/google-ads/api/rest/reference/rest/v18/RemarketingAction).", + description: "One or more [remarketing actions](https://developers.google.com/google-ads/api/reference/rpc/v21/RemarketingAction).", optional: true, options: async() => { const { @@ -198,21 +198,21 @@ export const USER_LIST_TYPE_OPTIONS = [ label: "CRM-based - a list of provided customers", value: USER_LIST_TYPES.CRM_BASED, docsLink: - "https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo", + "https://developers.google.com/google-ads/api/reference/rpc/v21/CrmBasedUserListInfo", props: USER_LIST_CRM_BASED_PROPS, }, { label: "Rule-Based - a customer list generated by a rule", value: USER_LIST_TYPES.RULE_BASED, docsLink: - "https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#RuleBasedUserListInfo", + "https://developers.google.com/google-ads/api/reference/rpc/v21/RuleBasedUserListInfo", props: USER_LIST_RULE_BASED_PROPS, }, { label: "Logical - a custom combination of customer lists", value: USER_LIST_TYPES.LOGICAL, docsLink: - "https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#LogicalUserListInfo", + "https://developers.google.com/google-ads/api/reference/rpc/v21/LogicalUserListInfo", props: USER_LIST_LOGICAL_PROPS, }, { @@ -220,7 +220,7 @@ export const USER_LIST_TYPE_OPTIONS = [ "Basic - a customer list targeting as a collection of conversions or remarketing actions", value: USER_LIST_TYPES.BASIC, docsLink: - "https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#BasicUserListInfo", + "https://developers.google.com/google-ads/api/reference/rpc/v21/BasicUserListInfo", props: USER_LIST_BASIC_PROPS, }, { @@ -228,7 +228,7 @@ export const USER_LIST_TYPE_OPTIONS = [ "Lookalike - a list composed of customers similar to those of a configurable seed", value: USER_LIST_TYPES.LOOKALIKE, docsLink: - "https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#LookalikeUserListInfo", + "https://developers.google.com/google-ads/api/reference/rpc/v21/LookalikeUserListInfo", props: USER_LIST_LOOKALIKE_PROPS, }, ]; diff --git a/components/google_ads/actions/create-customer-list/create-customer-list.mjs b/components/google_ads/actions/create-customer-list/create-customer-list.mjs index 729c86dd5c6c1..5ddf1647cacb3 100644 --- a/components/google_ads/actions/create-customer-list/create-customer-list.mjs +++ b/components/google_ads/actions/create-customer-list/create-customer-list.mjs @@ -14,8 +14,8 @@ export default { ...common, 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/rest/reference/rest/v18/UserList)", - version: "0.0.4", + 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.5", type: "action", props: { ...common.props, @@ -33,7 +33,7 @@ export default { listType: { type: "string", label: "List Type", - description: "The [type of customer list](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo) to create.", + description: "The [type of customer list](https://developers.google.com/google-ads/api/reference/rpc/v21/CrmBasedUserListInfo) to create.", options: USER_LIST_TYPE_OPTIONS.map(({ label, value, }) => ({ diff --git a/components/google_ads/actions/create-report/create-report.mjs b/components/google_ads/actions/create-report/create-report.mjs index 2044354d2bc9c..6b8f40310dd68 100644 --- a/components/google_ads/actions/create-report/create-report.mjs +++ b/components/google_ads/actions/create-report/create-report.mjs @@ -18,8 +18,8 @@ export default { ...common, 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/fields/v18/overview)", - version: "0.1.2", + 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.3", type: "action", props: { ...common.props, @@ -43,7 +43,7 @@ export default { docsAlert: { type: "alert", alertType: "info", - content: `[See the documentation](https://developers.google.com/google-ads/api/fields/v18/${value}) for more information on available fields, segments and metrics.`, + content: `[See the documentation](https://developers.google.com/google-ads/api/fields/v21/${value}) for more information on available fields, segments and metrics.`, }, objectFilter: { type: "string[]", @@ -106,7 +106,7 @@ export default { segments: { type: "string[]", label: "Segments", - description: "Select any segments you want to include in your report. See the documentation [here](https://developers.google.com/google-ads/api/fields/v18/segments)", + description: "Select any segments you want to include in your report. See the documentation [here](https://developers.google.com/google-ads/api/reference/rpc/v21/Segments)", options: resource.segments, default: [ "segments.date", @@ -117,7 +117,7 @@ export default { metrics: { type: "string[]", label: "Metrics", - description: "Select any metrics you want to include in your report. See the documentation [here](https://developers.google.com/google-ads/api/fields/v18/metrics)", + description: "Select any metrics you want to include in your report. See the documentation [here](https://developers.google.com/google-ads/api/reference/rpc/v21/Metrics)", options: resource.metrics, optional: true, reloadProps: true, diff --git a/components/google_ads/actions/send-offline-conversion/send-offline-conversion.mjs b/components/google_ads/actions/send-offline-conversion/send-offline-conversion.mjs index 1895949ff0892..e125dccee3ac3 100644 --- a/components/google_ads/actions/send-offline-conversion/send-offline-conversion.mjs +++ b/components/google_ads/actions/send-offline-conversion/send-offline-conversion.mjs @@ -7,8 +7,8 @@ export default { ...common, key: "google_ads-send-offline-conversion", name: "Send Offline Conversion", - description: "Send an event from to Google Ads to track offline conversions. [See the documentation](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction)", - version: "0.0.4", + 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.5", type: "action", props: { ...common.props, @@ -20,10 +20,10 @@ export default { type: { type: "string", label: "Type", - description: "[The type](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction#ConversionActionType) of the conversion action.", + description: "[The type](https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionActionTypeEnum.ConversionActionType) of the conversion action.", options: CONVERSION_TYPE_OPTIONS, }, - additionalFields: getAdditionalFields("https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction"), + additionalFields: getAdditionalFields("https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionAction"), }, async run({ $ }) { const { diff --git a/components/google_ads/google_ads.app.mjs b/components/google_ads/google_ads.app.mjs index c8da4631e1a13..3b8edefdab9e4 100644 --- a/components/google_ads/google_ads.app.mjs +++ b/components/google_ads/google_ads.app.mjs @@ -34,7 +34,7 @@ export default { accountId: { type: "string", label: "Use Google Ads As", - description: "Select an account from the list of [customers directly accessible by the authenticated user](https://developers.google.com/google-ads/api/rest/reference/rest/v18/customers/listAccessibleCustomers). This is usually a **Manager Account**, used as `login-customer-id`", + description: "Select an account from the list of [customers directly accessible by the authenticated user](https://developers.google.com/google-ads/api/reference/rpc/v21/CustomerService/ListAccessibleCustomers?transport=rest). This is usually a **Manager Account**, used as `login-customer-id`", async options() { const response = await this.listAccessibleCustomers(); return response?.map(((resourceName) => ({ @@ -46,7 +46,7 @@ export default { customerClientId: { type: "string", label: "Managed Account", - description: "Select a [customer client](https://developers.google.com/google-ads/api/reference/rpc/v18/CustomerClient) from the list of [customers linked to the selected account](https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy).", + description: "Select a [customer client](https://developers.google.com/google-ads/api/reference/rpc/v21/CustomerClient) from the list of [customers linked to the selected account](https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy).", useQuery: true, optional: true, async options({ @@ -71,7 +71,7 @@ export default { leadFormId: { type: "string", label: "Lead Form ID", - description: "Select a [Lead Form](https://developers.google.com/google-ads/api/rest/reference/rest/v18/Asset#LeadFormAsset) to watch for new entries.", + description: "Select a [Lead Form](https://developers.google.com/google-ads/api/reference/rpc/v21/LeadFormAsset) to watch for new entries.", async options({ accountId, customerClientId, }) { @@ -121,7 +121,7 @@ export default { }) { console.log("Executing query: ", query); const response = await this._makeRequest({ - path: "/v18/customers/{customerClientId}/googleAds:search", + path: "/v21/customers/{customerClientId}/googleAds:search", method: "post", data: { query, @@ -132,7 +132,7 @@ export default { }, async listAccessibleCustomers() { const response = await this._makeRequest({ - path: "/v18/customers:listAccessibleCustomers", + path: "/v21/customers:listAccessibleCustomers", }); return response.resourceNames; }, @@ -151,7 +151,7 @@ export default { }, async createUserList(args) { const response = await this._makeRequest({ - path: "v18/customers/{customerClientId}/userLists:mutate", + path: "/v21/customers/{customerClientId}/userLists:mutate", method: "post", ...args, }); @@ -216,7 +216,7 @@ export default { }, async createConversionAction(args) { const response = await this._makeRequest({ - path: "v18/customers/{customerClientId}/conversionActions:mutate", + path: "/v21/customers/{customerClientId}/conversionActions:mutate", method: "post", ...args, }); @@ -227,14 +227,14 @@ export default { }) { return this._makeRequest({ method: "POST", - path: `/v18/${path}:addOperations`, + path: `/v21/${path}:addOperations`, ...opts, }); }, async createOfflineUserDataJob(opts = {}) { return this._makeRequest({ method: "POST", - path: "/v18/customers/{customerClientId}/offlineUserDataJobs:create", + path: "/v21/customers/{customerClientId}/offlineUserDataJobs:create", ...opts, }); }, @@ -243,7 +243,7 @@ export default { }) { return this._makeRequest({ method: "POST", - path: `/v18/${path}:run`, + path: `/v21/${path}:run`, ...args, }); }, diff --git a/components/google_ads/package.json b/components/google_ads/package.json index 7f5d6a4d61edd..5d4d4c1fd0344 100644 --- a/components/google_ads/package.json +++ b/components/google_ads/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/google_ads", - "version": "0.3.2", + "version": "0.3.3", "description": "Pipedream Google Ads Components", "main": "google_ads.app.mjs", "keywords": [ diff --git a/components/google_ads/sources/new-campaign-created/new-campaign-created.mjs b/components/google_ads/sources/new-campaign-created/new-campaign-created.mjs index 18078f3f1af76..59cf8f492133d 100644 --- a/components/google_ads/sources/new-campaign-created/new-campaign-created.mjs +++ b/components/google_ads/sources/new-campaign-created/new-campaign-created.mjs @@ -6,8 +6,8 @@ export default { ...common, 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/fields/v18/campaign)", - version: "0.0.4", + 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", type: "source", dedupe: "unique", sampleEmit, @@ -19,7 +19,7 @@ export default { fields: { type: "string[]", label: "Extra Fields", - description: "Additional [campaign fields](https://developers.google.com/google-ads/api/fields/v18/campaign) to emit in the event", + description: "Additional [campaign fields](https://developers.google.com/google-ads/api/fields/v21/campaign) to emit in the event", options: campaign.fields, optional: true, default: [ diff --git a/components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs b/components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs index 87d6a4bdc69c9..b46e79b79c4b6 100644 --- a/components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs +++ b/components/google_ads/sources/new-lead-form-entry/new-lead-form-entry.mjs @@ -7,8 +7,8 @@ export default { ...common, 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/fields/v18/lead_form_submission_data)", - version: "0.0.4", + 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", type: "source", dedupe: "unique", sampleEmit, @@ -29,7 +29,7 @@ export default { docsAlert: { type: "alert", alertType: "info", - content: "If needed, see Google's documentation on [submission fields](https://developers.google.com/google-ads/api/reference/rpc/v18/LeadFormSubmissionField) and [custom submission fields](https://developers.google.com/google-ads/api/reference/rpc/v18/CustomLeadFormSubmissionField).", + 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).", }, }, methods: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 89318847ae0a6..24279feedc74d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -439,8 +439,7 @@ importers: specifier: ^3.0.0 version: 3.0.3 - components/afosto: - specifiers: {} + components/afosto: {} components/aftership: dependencies: