@pipedream/google_ads 0.3.0 → 0.3.2
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.
- package/README.md +41 -0
- package/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs +1 -1
- package/actions/common/props.mjs +1 -1
- package/actions/create-customer-list/common-constants.mjs +10 -10
- package/actions/create-customer-list/create-customer-list.mjs +7 -5
- package/actions/create-report/create-report.mjs +5 -5
- package/actions/send-offline-conversion/send-offline-conversion.mjs +4 -4
- package/common/queries.mjs +1 -0
- package/google_ads.app.mjs +12 -13
- package/package.json +2 -2
- package/sources/new-campaign-created/new-campaign-created.mjs +3 -4
- package/sources/new-lead-form-entry/new-lead-form-entry.mjs +3 -3
package/README.md
CHANGED
|
@@ -18,3 +18,44 @@ and campaigns programmatically. With the API, you can automate common tasks,
|
|
|
18
18
|
such as creating and managing campaigns, adding and removing keywords, and
|
|
19
19
|
adjusting bids. You can also use the API to get information about your
|
|
20
20
|
campaigns, such as campaign stats, keyword stats, and ad performance.
|
|
21
|
+
|
|
22
|
+
## Customizing API requests with the Pipedream proxy
|
|
23
|
+
|
|
24
|
+
The Pipedream components interact with Google Ads API through Pipedream's proxy service, which handles authentication and developer token requirements.
|
|
25
|
+
|
|
26
|
+
The component accepts a standard Google Ads API request object with the following structure:
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
const googleAdsReq = {
|
|
30
|
+
method: "get|post|put|delete", // HTTP method
|
|
31
|
+
url: "/v16/...", // Google Ads API endpoint path
|
|
32
|
+
headers: {
|
|
33
|
+
Authorization: `Bearer ${this.googleAds.$auth.oauth_access_token}`,
|
|
34
|
+
},
|
|
35
|
+
data: {}, // Optional request body for POST/PUT requests
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
To make different API calls while using the proxy:
|
|
40
|
+
|
|
41
|
+
1. Modify the `url` path to match your desired Google Ads API endpoint
|
|
42
|
+
2. Update the `method` to match the required HTTP method
|
|
43
|
+
3. Add any necessary request body data in the `data` field
|
|
44
|
+
4. Include any required headers (Authorization is automatically included)
|
|
45
|
+
|
|
46
|
+
Example for a custom query:
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
const googleAdsReq = {
|
|
50
|
+
method: "post",
|
|
51
|
+
url: "/v16/customers/1234567890/googleAds:search",
|
|
52
|
+
headers: {
|
|
53
|
+
Authorization: `Bearer ${this.googleAds.$auth.oauth_access_token}`,
|
|
54
|
+
},
|
|
55
|
+
data: {
|
|
56
|
+
query: "SELECT campaign.id, campaign.name FROM campaign",
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The proxy endpoint will remain the same: `https://googleads.m.pipedream.net`
|
|
@@ -7,7 +7,7 @@ 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.
|
|
10
|
+
version: "0.1.3",
|
|
11
11
|
type: "action",
|
|
12
12
|
props: {
|
|
13
13
|
...common.props,
|
package/actions/common/props.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const DEFAULT_DOCS =
|
|
2
|
-
"https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
2
|
+
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList";
|
|
3
3
|
|
|
4
4
|
export const getAdditionalFields = (docsLink = DEFAULT_DOCS) => ({
|
|
5
5
|
type: "object",
|
|
@@ -57,7 +57,7 @@ const USER_LIST_CRM_BASED_PROPS = {
|
|
|
57
57
|
type: "string",
|
|
58
58
|
label: "App ID",
|
|
59
59
|
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/
|
|
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.",
|
|
61
61
|
optional: true,
|
|
62
62
|
},
|
|
63
63
|
};
|
|
@@ -74,7 +74,7 @@ const USER_LIST_RULE_BASED_PROPS = {
|
|
|
74
74
|
type: "object",
|
|
75
75
|
label: "Flexible Rule Customer List",
|
|
76
76
|
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/
|
|
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.",
|
|
78
78
|
optional: true,
|
|
79
79
|
},
|
|
80
80
|
};
|
|
@@ -84,7 +84,7 @@ const USER_LIST_LOGICAL_PROPS = {
|
|
|
84
84
|
type: "string[]",
|
|
85
85
|
label: "Rules",
|
|
86
86
|
description:
|
|
87
|
-
"Logical list rules that define this customer list. [See the documentation](https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
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.",
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
90
|
|
|
@@ -92,7 +92,7 @@ const USER_LIST_BASIC_PROPS = {
|
|
|
92
92
|
conversionActions: {
|
|
93
93
|
type: "string[]",
|
|
94
94
|
label: "Conversion action(s)",
|
|
95
|
-
description: "One or more [conversion actions](https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
95
|
+
description: "One or more [conversion actions](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction) to build the list with.",
|
|
96
96
|
optional: true,
|
|
97
97
|
options: async() => {
|
|
98
98
|
const {
|
|
@@ -115,7 +115,7 @@ const USER_LIST_BASIC_PROPS = {
|
|
|
115
115
|
remarketingActions: {
|
|
116
116
|
type: "string[]",
|
|
117
117
|
label: "Remarketing action(s)",
|
|
118
|
-
description: "One or more [remarketing actions](https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
118
|
+
description: "One or more [remarketing actions](https://developers.google.com/google-ads/api/rest/reference/rest/v18/RemarketingAction).",
|
|
119
119
|
optional: true,
|
|
120
120
|
options: async() => {
|
|
121
121
|
const {
|
|
@@ -198,21 +198,21 @@ export const USER_LIST_TYPE_OPTIONS = [
|
|
|
198
198
|
label: "CRM-based - a list of provided customers",
|
|
199
199
|
value: USER_LIST_TYPES.CRM_BASED,
|
|
200
200
|
docsLink:
|
|
201
|
-
"https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
201
|
+
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo",
|
|
202
202
|
props: USER_LIST_CRM_BASED_PROPS,
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
label: "Rule-Based - a customer list generated by a rule",
|
|
206
206
|
value: USER_LIST_TYPES.RULE_BASED,
|
|
207
207
|
docsLink:
|
|
208
|
-
"https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
208
|
+
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#RuleBasedUserListInfo",
|
|
209
209
|
props: USER_LIST_RULE_BASED_PROPS,
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
label: "Logical - a custom combination of customer lists",
|
|
213
213
|
value: USER_LIST_TYPES.LOGICAL,
|
|
214
214
|
docsLink:
|
|
215
|
-
"https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
215
|
+
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#LogicalUserListInfo",
|
|
216
216
|
props: USER_LIST_LOGICAL_PROPS,
|
|
217
217
|
},
|
|
218
218
|
{
|
|
@@ -220,7 +220,7 @@ export const USER_LIST_TYPE_OPTIONS = [
|
|
|
220
220
|
"Basic - a customer list targeting as a collection of conversions or remarketing actions",
|
|
221
221
|
value: USER_LIST_TYPES.BASIC,
|
|
222
222
|
docsLink:
|
|
223
|
-
"https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
223
|
+
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#BasicUserListInfo",
|
|
224
224
|
props: USER_LIST_BASIC_PROPS,
|
|
225
225
|
},
|
|
226
226
|
{
|
|
@@ -228,7 +228,7 @@ export const USER_LIST_TYPE_OPTIONS = [
|
|
|
228
228
|
"Lookalike - a list composed of customers similar to those of a configurable seed",
|
|
229
229
|
value: USER_LIST_TYPES.LOOKALIKE,
|
|
230
230
|
docsLink:
|
|
231
|
-
"https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
231
|
+
"https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#LookalikeUserListInfo",
|
|
232
232
|
props: USER_LIST_LOOKALIKE_PROPS,
|
|
233
233
|
},
|
|
234
234
|
];
|
|
@@ -14,9 +14,8 @@ export default {
|
|
|
14
14
|
...common,
|
|
15
15
|
key: "google_ads-create-customer-list",
|
|
16
16
|
name: "Create Customer List",
|
|
17
|
-
description:
|
|
18
|
-
|
|
19
|
-
version: "0.0.2",
|
|
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",
|
|
20
19
|
type: "action",
|
|
21
20
|
props: {
|
|
22
21
|
...common.props,
|
|
@@ -34,8 +33,7 @@ export default {
|
|
|
34
33
|
listType: {
|
|
35
34
|
type: "string",
|
|
36
35
|
label: "List Type",
|
|
37
|
-
description:
|
|
38
|
-
"The [type of customer list](https://developers.google.com/google-ads/api/rest/reference/rest/v16/UserList#CrmBasedUserListInfo) to create.",
|
|
36
|
+
description: "The [type of customer list](https://developers.google.com/google-ads/api/rest/reference/rest/v18/UserList#CrmBasedUserListInfo) to create.",
|
|
39
37
|
options: USER_LIST_TYPE_OPTIONS.map(({
|
|
40
38
|
label, value,
|
|
41
39
|
}) => ({
|
|
@@ -95,6 +93,10 @@ export default {
|
|
|
95
93
|
additionalProps() {
|
|
96
94
|
const { listType } = this;
|
|
97
95
|
|
|
96
|
+
if (!listType) {
|
|
97
|
+
return {};
|
|
98
|
+
}
|
|
99
|
+
|
|
98
100
|
const option = USER_LIST_TYPE_OPTIONS.find(
|
|
99
101
|
({ value }) => value === listType,
|
|
100
102
|
);
|
|
@@ -18,8 +18,8 @@ export default {
|
|
|
18
18
|
...common,
|
|
19
19
|
key: "google_ads-create-report",
|
|
20
20
|
name: "Create Report",
|
|
21
|
-
description: "Generates a report from your Google Ads data. [See the documentation](https://developers.google.com/google-ads/api/fields/
|
|
22
|
-
version: "0.1.
|
|
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",
|
|
23
23
|
type: "action",
|
|
24
24
|
props: {
|
|
25
25
|
...common.props,
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
docsAlert: {
|
|
44
44
|
type: "alert",
|
|
45
45
|
alertType: "info",
|
|
46
|
-
content: `[See the documentation](https://developers.google.com/google-ads/api/fields/
|
|
46
|
+
content: `[See the documentation](https://developers.google.com/google-ads/api/fields/v18/${value}) for more information on available fields, segments and metrics.`,
|
|
47
47
|
},
|
|
48
48
|
objectFilter: {
|
|
49
49
|
type: "string[]",
|
|
@@ -106,7 +106,7 @@ export default {
|
|
|
106
106
|
segments: {
|
|
107
107
|
type: "string[]",
|
|
108
108
|
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/
|
|
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)",
|
|
110
110
|
options: resource.segments,
|
|
111
111
|
default: [
|
|
112
112
|
"segments.date",
|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
117
117
|
metrics: {
|
|
118
118
|
type: "string[]",
|
|
119
119
|
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/
|
|
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)",
|
|
121
121
|
options: resource.metrics,
|
|
122
122
|
optional: true,
|
|
123
123
|
reloadProps: true,
|
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
...common,
|
|
8
8
|
key: "google_ads-send-offline-conversion",
|
|
9
9
|
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/
|
|
11
|
-
version: "0.0.
|
|
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",
|
|
12
12
|
type: "action",
|
|
13
13
|
props: {
|
|
14
14
|
...common.props,
|
|
@@ -20,10 +20,10 @@ export default {
|
|
|
20
20
|
type: {
|
|
21
21
|
type: "string",
|
|
22
22
|
label: "Type",
|
|
23
|
-
description: "[The type](https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
23
|
+
description: "[The type](https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction#ConversionActionType) of the conversion action.",
|
|
24
24
|
options: CONVERSION_TYPE_OPTIONS,
|
|
25
25
|
},
|
|
26
|
-
additionalFields: getAdditionalFields("https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
26
|
+
additionalFields: getAdditionalFields("https://developers.google.com/google-ads/api/rest/reference/rest/v18/ConversionAction"),
|
|
27
27
|
},
|
|
28
28
|
async run({ $ }) {
|
|
29
29
|
const {
|
package/common/queries.mjs
CHANGED
package/google_ads.app.mjs
CHANGED
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
accountId,
|
|
22
22
|
customerClientId,
|
|
23
23
|
});
|
|
24
|
-
return response?.map(({
|
|
24
|
+
return response?.filter(({ userList: { type } }) => type === "CRM_BASED")?.map(({
|
|
25
25
|
userList: {
|
|
26
26
|
id, name,
|
|
27
27
|
},
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
accountId: {
|
|
35
35
|
type: "string",
|
|
36
36
|
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/
|
|
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`",
|
|
38
38
|
async options() {
|
|
39
39
|
const response = await this.listAccessibleCustomers();
|
|
40
40
|
return response?.map(((resourceName) => ({
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
customerClientId: {
|
|
47
47
|
type: "string",
|
|
48
48
|
label: "Managed Account",
|
|
49
|
-
description: "Select a [customer client](https://developers.google.com/google-ads/api/reference/rpc/
|
|
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).",
|
|
50
50
|
useQuery: true,
|
|
51
51
|
optional: true,
|
|
52
52
|
async options({
|
|
@@ -71,7 +71,7 @@ export default {
|
|
|
71
71
|
leadFormId: {
|
|
72
72
|
type: "string",
|
|
73
73
|
label: "Lead Form ID",
|
|
74
|
-
description: "Select a [Lead Form](https://developers.google.com/google-ads/api/rest/reference/rest/
|
|
74
|
+
description: "Select a [Lead Form](https://developers.google.com/google-ads/api/rest/reference/rest/v18/Asset#LeadFormAsset) to watch for new entries.",
|
|
75
75
|
async options({
|
|
76
76
|
accountId, customerClientId,
|
|
77
77
|
}) {
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
94
94
|
},
|
|
95
95
|
methods: {
|
|
96
96
|
_baseUrl() {
|
|
97
|
-
return "https://
|
|
97
|
+
return "https://googleads.m.pipedream.net";
|
|
98
98
|
},
|
|
99
99
|
_headers(accountId) {
|
|
100
100
|
return {
|
|
@@ -121,7 +121,7 @@ export default {
|
|
|
121
121
|
}) {
|
|
122
122
|
console.log("Executing query: ", query);
|
|
123
123
|
const response = await this._makeRequest({
|
|
124
|
-
path: "/
|
|
124
|
+
path: "/v18/customers/{customerClientId}/googleAds:search",
|
|
125
125
|
method: "post",
|
|
126
126
|
data: {
|
|
127
127
|
query,
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
132
132
|
},
|
|
133
133
|
async listAccessibleCustomers() {
|
|
134
134
|
const response = await this._makeRequest({
|
|
135
|
-
path: "/
|
|
135
|
+
path: "/v18/customers:listAccessibleCustomers",
|
|
136
136
|
});
|
|
137
137
|
return response.resourceNames;
|
|
138
138
|
},
|
|
@@ -151,7 +151,7 @@ export default {
|
|
|
151
151
|
},
|
|
152
152
|
async createUserList(args) {
|
|
153
153
|
const response = await this._makeRequest({
|
|
154
|
-
path: "
|
|
154
|
+
path: "v18/customers/{customerClientId}/userLists:mutate",
|
|
155
155
|
method: "post",
|
|
156
156
|
...args,
|
|
157
157
|
});
|
|
@@ -200,7 +200,6 @@ export default {
|
|
|
200
200
|
return this.search({
|
|
201
201
|
query: QUERIES.listResources(resource, query),
|
|
202
202
|
params: {
|
|
203
|
-
pageSize: 100,
|
|
204
203
|
pageToken,
|
|
205
204
|
},
|
|
206
205
|
...args,
|
|
@@ -217,7 +216,7 @@ export default {
|
|
|
217
216
|
},
|
|
218
217
|
async createConversionAction(args) {
|
|
219
218
|
const response = await this._makeRequest({
|
|
220
|
-
path: "
|
|
219
|
+
path: "v18/customers/{customerClientId}/conversionActions:mutate",
|
|
221
220
|
method: "post",
|
|
222
221
|
...args,
|
|
223
222
|
});
|
|
@@ -228,14 +227,14 @@ export default {
|
|
|
228
227
|
}) {
|
|
229
228
|
return this._makeRequest({
|
|
230
229
|
method: "POST",
|
|
231
|
-
path: `/
|
|
230
|
+
path: `/v18/${path}:addOperations`,
|
|
232
231
|
...opts,
|
|
233
232
|
});
|
|
234
233
|
},
|
|
235
234
|
async createOfflineUserDataJob(opts = {}) {
|
|
236
235
|
return this._makeRequest({
|
|
237
236
|
method: "POST",
|
|
238
|
-
path: "/
|
|
237
|
+
path: "/v18/customers/{customerClientId}/offlineUserDataJobs:create",
|
|
239
238
|
...opts,
|
|
240
239
|
});
|
|
241
240
|
},
|
|
@@ -244,7 +243,7 @@ export default {
|
|
|
244
243
|
}) {
|
|
245
244
|
return this._makeRequest({
|
|
246
245
|
method: "POST",
|
|
247
|
-
path: `/
|
|
246
|
+
path: `/v18/${path}:run`,
|
|
248
247
|
...args,
|
|
249
248
|
});
|
|
250
249
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/google_ads",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Pipedream Google Ads Components",
|
|
5
5
|
"main": "google_ads.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^
|
|
16
|
+
"@pipedream/platform": "^3.0.3",
|
|
17
17
|
"crypto": "^1.0.1"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -6,8 +6,8 @@ export default {
|
|
|
6
6
|
...common,
|
|
7
7
|
key: "google_ads-new-campaign-created",
|
|
8
8
|
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/
|
|
10
|
-
version: "0.0.
|
|
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",
|
|
11
11
|
type: "source",
|
|
12
12
|
dedupe: "unique",
|
|
13
13
|
sampleEmit,
|
|
@@ -15,12 +15,11 @@ export default {
|
|
|
15
15
|
...common.props,
|
|
16
16
|
customerClientId: {
|
|
17
17
|
...common.props.customerClientId,
|
|
18
|
-
optional: false,
|
|
19
18
|
},
|
|
20
19
|
fields: {
|
|
21
20
|
type: "string[]",
|
|
22
21
|
label: "Extra Fields",
|
|
23
|
-
description: "Additional [campaign fields](https://developers.google.com/google-ads/api/fields/
|
|
22
|
+
description: "Additional [campaign fields](https://developers.google.com/google-ads/api/fields/v18/campaign) to emit in the event",
|
|
24
23
|
options: campaign.fields,
|
|
25
24
|
optional: true,
|
|
26
25
|
default: [
|
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
...common,
|
|
8
8
|
key: "google_ads-new-lead-form-entry",
|
|
9
9
|
name: "New Lead Form Entry",
|
|
10
|
-
description: "Emit new event for new leads on a Lead Form. [See the documentation](https://developers.google.com/google-ads/api/fields/
|
|
11
|
-
version: "0.0.
|
|
10
|
+
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)",
|
|
11
|
+
version: "0.0.4",
|
|
12
12
|
type: "source",
|
|
13
13
|
dedupe: "unique",
|
|
14
14
|
sampleEmit,
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
docsAlert: {
|
|
30
30
|
type: "alert",
|
|
31
31
|
alertType: "info",
|
|
32
|
-
content: "If needed, see Google's documentation on [submission fields](https://developers.google.com/google-ads/api/reference/rpc/
|
|
32
|
+
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).",
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
methods: {
|