Skip to content

Commit 4e64451

Browse files
authored
Merging pull request #18224
* updates * package.json * pnpm-lock.yaml * updates
1 parent 71a52a1 commit 4e64451

File tree

12 files changed

+43
-44
lines changed

12 files changed

+43
-44
lines changed

components/google_ads/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The component accepts a standard Google Ads API request object with the followin
2828
```javascript
2929
const googleAdsReq = {
3030
method: "get|post|put|delete", // HTTP method
31-
url: "/v18/...", // Google Ads API endpoint path
31+
url: "/v21/...", // Google Ads API endpoint path
3232
headers: {
3333
Authorization: `Bearer ${this.googleAds.$auth.oauth_access_token}`,
3434
},

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.3",
10+
version: "0.1.4",
1111
type: "action",
1212
props: {
1313
...common.props,

components/google_ads/actions/common/props.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DEFAULT_DOCS =
2-
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList";
2+
"https://developers.google.com/google-ads/api/reference/rpc/v21/UserList";
33

44
export const getAdditionalFields = (docsLink = DEFAULT_DOCS) => ({
55
type: "object",

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const USER_LIST_CRM_BASED_PROPS = {
5757
type: "string",
5858
label: "App ID",
5959
description:
60-
"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.",
60+
"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.",
6161
optional: true,
6262
},
6363
};
@@ -74,7 +74,7 @@ const USER_LIST_RULE_BASED_PROPS = {
7474
type: "object",
7575
label: "Flexible Rule Customer List",
7676
description:
77-
"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.",
77+
"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.",
7878
optional: true,
7979
},
8080
};
@@ -84,15 +84,15 @@ const USER_LIST_LOGICAL_PROPS = {
8484
type: "string[]",
8585
label: "Rules",
8686
description:
87-
"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.",
87+
"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.",
8888
},
8989
};
9090

9191
const USER_LIST_BASIC_PROPS = {
9292
conversionActions: {
9393
type: "string[]",
9494
label: "Conversion action(s)",
95-
description: "One or more [conversion actions](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction) to build the list with.",
95+
description: "One or more [conversion actions](https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionAction) to build the list with.",
9696
optional: true,
9797
options: async() => {
9898
const {
@@ -115,7 +115,7 @@ const USER_LIST_BASIC_PROPS = {
115115
remarketingActions: {
116116
type: "string[]",
117117
label: "Remarketing action(s)",
118-
description: "One or more [remarketing actions](https://developers.google.com/google-ads/api/rest/reference/rest/v18/RemarketingAction).",
118+
description: "One or more [remarketing actions](https://developers.google.com/google-ads/api/reference/rpc/v21/RemarketingAction).",
119119
optional: true,
120120
options: async() => {
121121
const {
@@ -198,37 +198,37 @@ export const USER_LIST_TYPE_OPTIONS = [
198198
label: "CRM-based - a list of provided customers",
199199
value: USER_LIST_TYPES.CRM_BASED,
200200
docsLink:
201-
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo",
201+
"https://developers.google.com/google-ads/api/reference/rpc/v21/CrmBasedUserListInfo",
202202
props: USER_LIST_CRM_BASED_PROPS,
203203
},
204204
{
205205
label: "Rule-Based - a customer list generated by a rule",
206206
value: USER_LIST_TYPES.RULE_BASED,
207207
docsLink:
208-
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#RuleBasedUserListInfo",
208+
"https://developers.google.com/google-ads/api/reference/rpc/v21/RuleBasedUserListInfo",
209209
props: USER_LIST_RULE_BASED_PROPS,
210210
},
211211
{
212212
label: "Logical - a custom combination of customer lists",
213213
value: USER_LIST_TYPES.LOGICAL,
214214
docsLink:
215-
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#LogicalUserListInfo",
215+
"https://developers.google.com/google-ads/api/reference/rpc/v21/LogicalUserListInfo",
216216
props: USER_LIST_LOGICAL_PROPS,
217217
},
218218
{
219219
label:
220220
"Basic - a customer list targeting as a collection of conversions or remarketing actions",
221221
value: USER_LIST_TYPES.BASIC,
222222
docsLink:
223-
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#BasicUserListInfo",
223+
"https://developers.google.com/google-ads/api/reference/rpc/v21/BasicUserListInfo",
224224
props: USER_LIST_BASIC_PROPS,
225225
},
226226
{
227227
label:
228228
"Lookalike - a list composed of customers similar to those of a configurable seed",
229229
value: USER_LIST_TYPES.LOOKALIKE,
230230
docsLink:
231-
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#LookalikeUserListInfo",
231+
"https://developers.google.com/google-ads/api/reference/rpc/v21/LookalikeUserListInfo",
232232
props: USER_LIST_LOOKALIKE_PROPS,
233233
},
234234
];

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export default {
1414
...common,
1515
key: "google_ads-create-customer-list",
1616
name: "Create Customer List",
17-
description: "Create a new customer list in Google Ads. [See the documentation](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList)",
18-
version: "0.0.4",
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",
1919
type: "action",
2020
props: {
2121
...common.props,
@@ -33,7 +33,7 @@ export default {
3333
listType: {
3434
type: "string",
3535
label: "List Type",
36-
description: "The [type of customer list](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo) to create.",
36+
description: "The [type of customer list](https://developers.google.com/google-ads/api/reference/rpc/v21/CrmBasedUserListInfo) to create.",
3737
options: USER_LIST_TYPE_OPTIONS.map(({
3838
label, value,
3939
}) => ({

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export default {
1818
...common,
1919
key: "google_ads-create-report",
2020
name: "Create Report",
21-
description: "Generates a report from your Google Ads data. [See the documentation](https://developers.google.com/google-ads/api/fields/v18/overview)",
22-
version: "0.1.2",
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",
2323
type: "action",
2424
props: {
2525
...common.props,
@@ -43,7 +43,7 @@ export default {
4343
docsAlert: {
4444
type: "alert",
4545
alertType: "info",
46-
content: `[See the documentation](https://developers.google.com/google-ads/api/fields/v18/${value}) for more information on available fields, segments and metrics.`,
46+
content: `[See the documentation](https://developers.google.com/google-ads/api/fields/v21/${value}) for more information on available fields, segments and metrics.`,
4747
},
4848
objectFilter: {
4949
type: "string[]",
@@ -106,7 +106,7 @@ export default {
106106
segments: {
107107
type: "string[]",
108108
label: "Segments",
109-
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)",
109+
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)",
110110
options: resource.segments,
111111
default: [
112112
"segments.date",
@@ -117,7 +117,7 @@ export default {
117117
metrics: {
118118
type: "string[]",
119119
label: "Metrics",
120-
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)",
120+
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)",
121121
options: resource.metrics,
122122
optional: true,
123123
reloadProps: true,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export default {
77
...common,
88
key: "google_ads-send-offline-conversion",
99
name: "Send Offline Conversion",
10-
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)",
11-
version: "0.0.4",
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",
1212
type: "action",
1313
props: {
1414
...common.props,
@@ -20,10 +20,10 @@ export default {
2020
type: {
2121
type: "string",
2222
label: "Type",
23-
description: "[The type](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction#ConversionActionType) of the conversion action.",
23+
description: "[The type](https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionActionTypeEnum.ConversionActionType) of the conversion action.",
2424
options: CONVERSION_TYPE_OPTIONS,
2525
},
26-
additionalFields: getAdditionalFields("https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction"),
26+
additionalFields: getAdditionalFields("https://developers.google.com/google-ads/api/reference/rpc/v21/ConversionAction"),
2727
},
2828
async run({ $ }) {
2929
const {

components/google_ads/google_ads.app.mjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
accountId: {
3535
type: "string",
3636
label: "Use Google Ads As",
37-
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`",
37+
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`",
3838
async options() {
3939
const response = await this.listAccessibleCustomers();
4040
return response?.map(((resourceName) => ({
@@ -46,7 +46,7 @@ export default {
4646
customerClientId: {
4747
type: "string",
4848
label: "Managed Account",
49-
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).",
49+
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).",
5050
useQuery: true,
5151
optional: true,
5252
async options({
@@ -71,7 +71,7 @@ export default {
7171
leadFormId: {
7272
type: "string",
7373
label: "Lead Form ID",
74-
description: "Select a [Lead Form](https://developers.google.com/google-ads/api/rest/reference/rest/v18/Asset#LeadFormAsset) to watch for new entries.",
74+
description: "Select a [Lead Form](https://developers.google.com/google-ads/api/reference/rpc/v21/LeadFormAsset) to watch for new entries.",
7575
async options({
7676
accountId, customerClientId,
7777
}) {
@@ -121,7 +121,7 @@ export default {
121121
}) {
122122
console.log("Executing query: ", query);
123123
const response = await this._makeRequest({
124-
path: "/v18/customers/{customerClientId}/googleAds:search",
124+
path: "/v21/customers/{customerClientId}/googleAds:search",
125125
method: "post",
126126
data: {
127127
query,
@@ -132,7 +132,7 @@ export default {
132132
},
133133
async listAccessibleCustomers() {
134134
const response = await this._makeRequest({
135-
path: "/v18/customers:listAccessibleCustomers",
135+
path: "/v21/customers:listAccessibleCustomers",
136136
});
137137
return response.resourceNames;
138138
},
@@ -151,7 +151,7 @@ export default {
151151
},
152152
async createUserList(args) {
153153
const response = await this._makeRequest({
154-
path: "v18/customers/{customerClientId}/userLists:mutate",
154+
path: "/v21/customers/{customerClientId}/userLists:mutate",
155155
method: "post",
156156
...args,
157157
});
@@ -216,7 +216,7 @@ export default {
216216
},
217217
async createConversionAction(args) {
218218
const response = await this._makeRequest({
219-
path: "v18/customers/{customerClientId}/conversionActions:mutate",
219+
path: "/v21/customers/{customerClientId}/conversionActions:mutate",
220220
method: "post",
221221
...args,
222222
});
@@ -227,14 +227,14 @@ export default {
227227
}) {
228228
return this._makeRequest({
229229
method: "POST",
230-
path: `/v18/${path}:addOperations`,
230+
path: `/v21/${path}:addOperations`,
231231
...opts,
232232
});
233233
},
234234
async createOfflineUserDataJob(opts = {}) {
235235
return this._makeRequest({
236236
method: "POST",
237-
path: "/v18/customers/{customerClientId}/offlineUserDataJobs:create",
237+
path: "/v21/customers/{customerClientId}/offlineUserDataJobs:create",
238238
...opts,
239239
});
240240
},
@@ -243,7 +243,7 @@ export default {
243243
}) {
244244
return this._makeRequest({
245245
method: "POST",
246-
path: `/v18/${path}:run`,
246+
path: `/v21/${path}:run`,
247247
...args,
248248
});
249249
},

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.2",
3+
"version": "0.3.3",
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default {
66
...common,
77
key: "google_ads-new-campaign-created",
88
name: "New Campaign Created",
9-
description: "Emit new event when a new campaign is created. [See the documentation](https://developers.google.com/google-ads/api/fields/v18/campaign)",
10-
version: "0.0.4",
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",
1111
type: "source",
1212
dedupe: "unique",
1313
sampleEmit,
@@ -19,7 +19,7 @@ export default {
1919
fields: {
2020
type: "string[]",
2121
label: "Extra Fields",
22-
description: "Additional [campaign fields](https://developers.google.com/google-ads/api/fields/v18/campaign) to emit in the event",
22+
description: "Additional [campaign fields](https://developers.google.com/google-ads/api/fields/v21/campaign) to emit in the event",
2323
options: campaign.fields,
2424
optional: true,
2525
default: [

0 commit comments

Comments
 (0)