@segment/action-destinations 3.345.2 → 3.345.7-staging
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/dist/destinations/accoil-analytics/postToAccoil/generated-types.d.ts +5 -0
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js +3 -0
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js.map +1 -0
- package/dist/destinations/accoil-analytics/postToAccoil/index.d.ts +5 -0
- package/dist/destinations/accoil-analytics/postToAccoil/index.js +28 -0
- package/dist/destinations/accoil-analytics/postToAccoil/index.js.map +1 -0
- package/dist/destinations/attentive/customEvents/generated-types.d.ts +14 -0
- package/dist/destinations/attentive/customEvents/generated-types.js +3 -0
- package/dist/destinations/attentive/customEvents/generated-types.js.map +1 -0
- package/dist/destinations/attentive/customEvents/index.d.ts +5 -0
- package/dist/destinations/attentive/customEvents/index.js +124 -0
- package/dist/destinations/attentive/customEvents/index.js.map +1 -0
- package/dist/destinations/attentive/customEvents/types.d.ts +15 -0
- package/dist/destinations/attentive/customEvents/types.js +3 -0
- package/dist/destinations/attentive/customEvents/types.js.map +1 -0
- package/dist/destinations/attentive/generated-types.d.ts +3 -0
- package/dist/destinations/attentive/generated-types.js +3 -0
- package/dist/destinations/attentive/generated-types.js.map +1 -0
- package/dist/destinations/attentive/index.d.ts +4 -0
- package/dist/destinations/attentive/index.js +54 -0
- package/dist/destinations/attentive/index.js.map +1 -0
- package/dist/destinations/braze/createAliasV2.types.d.ts +5 -0
- package/dist/destinations/braze/createAliasV2.types.js +3 -0
- package/dist/destinations/braze/createAliasV2.types.js.map +1 -0
- package/dist/destinations/braze/identifyUserV2.types.d.ts +8 -0
- package/dist/destinations/braze/identifyUserV2.types.js +3 -0
- package/dist/destinations/braze/identifyUserV2.types.js.map +1 -0
- package/dist/destinations/campaign-manager-360/common-fields.d.ts +3 -0
- package/dist/destinations/campaign-manager-360/common-fields.js +306 -0
- package/dist/destinations/campaign-manager-360/common-fields.js.map +1 -0
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.d.ts +45 -0
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js +3 -0
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js.map +1 -0
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.d.ts +5 -0
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.js +86 -0
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.js.map +1 -0
- package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.d.ts +50 -0
- package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.js +3 -0
- package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.js.map +1 -0
- package/dist/destinations/campaign-manager-360/conversionUpload/index.d.ts +5 -0
- package/dist/destinations/campaign-manager-360/conversionUpload/index.js +131 -0
- package/dist/destinations/campaign-manager-360/conversionUpload/index.js.map +1 -0
- package/dist/destinations/campaign-manager-360/generated-types.d.ts +5 -0
- package/dist/destinations/campaign-manager-360/generated-types.js +3 -0
- package/dist/destinations/campaign-manager-360/generated-types.js.map +1 -0
- package/dist/destinations/campaign-manager-360/index.d.ts +4 -0
- package/dist/destinations/campaign-manager-360/index.js +63 -0
- package/dist/destinations/campaign-manager-360/index.js.map +1 -0
- package/dist/destinations/campaign-manager-360/types.d.ts +116 -0
- package/dist/destinations/campaign-manager-360/types.js +23 -0
- package/dist/destinations/campaign-manager-360/types.js.map +1 -0
- package/dist/destinations/campaign-manager-360/utils.d.ts +21 -0
- package/dist/destinations/campaign-manager-360/utils.js +175 -0
- package/dist/destinations/campaign-manager-360/utils.js.map +1 -0
- package/dist/destinations/drip/identify/index.js +1 -1
- package/dist/destinations/drip/identify/index.js.map +1 -1
- package/dist/destinations/drip/index.js +1 -1
- package/dist/destinations/drip/index.js.map +1 -1
- package/dist/destinations/first-party-dv360/addToList/generated-types.d.ts +2 -0
- package/dist/destinations/first-party-dv360/addToList/generated-types.js +3 -0
- package/dist/destinations/first-party-dv360/addToList/generated-types.js.map +1 -0
- package/dist/destinations/first-party-dv360/addToList/index.d.ts +5 -0
- package/dist/destinations/first-party-dv360/addToList/index.js +11 -0
- package/dist/destinations/first-party-dv360/addToList/index.js.map +1 -0
- package/dist/destinations/first-party-dv360/addToList.types.d.ts +9 -0
- package/dist/destinations/first-party-dv360/addToList.types.js +3 -0
- package/dist/destinations/first-party-dv360/addToList.types.js.map +1 -0
- package/dist/destinations/google-enhanced-conversions/functions.js +6 -2
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/userList/index.js +2 -1
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/dynamic-fields.d.ts +5 -0
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js +112 -0
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/event-completion.d.ts +3 -0
- package/dist/destinations/hubspot/customEvent/event-completion.js +17 -0
- package/dist/destinations/hubspot/customEvent/event-completion.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/functions/dynamic-field-functions.js +1 -1
- package/dist/destinations/hubspot/customEvent/functions/dynamic-field-functions.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/schema-functions.d.ts +3 -0
- package/dist/destinations/hubspot/customEvent/schema-functions.js +30 -0
- package/dist/destinations/hubspot/customEvent/schema-functions.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/utils.d.ts +14 -0
- package/dist/destinations/hubspot/customEvent/utils.js +303 -0
- package/dist/destinations/hubspot/customEvent/utils.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/validation-functions.d.ts +3 -0
- package/dist/destinations/hubspot/customEvent/validation-functions.js +66 -0
- package/dist/destinations/hubspot/customEvent/validation-functions.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/validation.d.ts +3 -0
- package/dist/destinations/hubspot/customEvent/validation.js +66 -0
- package/dist/destinations/hubspot/customEvent/validation.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/association-functions.d.ts +5 -0
- package/dist/destinations/hubspot/upsertObject/association-functions.js +136 -0
- package/dist/destinations/hubspot/upsertObject/association-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/cache-functions.d.ts +3 -0
- package/dist/destinations/hubspot/upsertObject/cache-functions.js +20 -0
- package/dist/destinations/hubspot/upsertObject/cache-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.d.ts +7 -0
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.js +222 -0
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-association-functions.d.ts +5 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-association-functions.js +136 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-association-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-properties-functions.d.ts +4 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-properties-functions.js +159 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-properties-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-record-functions.d.ts +4 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-record-functions.js +100 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-record-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/schema-functions.d.ts +3 -0
- package/dist/destinations/hubspot/upsertObject/schema-functions.js +80 -0
- package/dist/destinations/hubspot/upsertObject/schema-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/send-from-record-functions.d.ts +4 -0
- package/dist/destinations/hubspot/upsertObject/send-from-record-functions.js +100 -0
- package/dist/destinations/hubspot/upsertObject/send-from-record-functions.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/utils.d.ts +13 -0
- package/dist/destinations/hubspot/upsertObject/utils.js +547 -0
- package/dist/destinations/hubspot/upsertObject/utils.js.map +1 -0
- package/dist/destinations/hubspot/upsertObject/validation-functions.d.ts +2 -0
- package/dist/destinations/hubspot/upsertObject/validation-functions.js +67 -0
- package/dist/destinations/hubspot/upsertObject/validation-functions.js.map +1 -0
- package/dist/destinations/klaviyo/addProfileToList/index.js +10 -1
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +22 -4
- package/dist/destinations/klaviyo/functions.js +130 -8
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/properties.js +2 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/index.js +12 -2
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfileFromList/index.js +10 -1
- package/dist/destinations/klaviyo/removeProfileFromList/index.js.map +1 -1
- package/dist/destinations/klaviyo/subscribeProfile/index.js +2 -1
- package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +23 -3
- package/dist/destinations/klaviyo/types.js.map +1 -1
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js +2 -1
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/index.js +43 -19
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/responsys/shared_properties.d.ts +3 -0
- package/dist/destinations/responsys/shared_properties.js +19 -0
- package/dist/destinations/responsys/shared_properties.js.map +1 -0
- package/dist/destinations/rokt-audiences/constants.js +1 -1
- package/dist/destinations/rokt-audiences/constants.js.map +1 -1
- package/dist/destinations/rokt-audiences/generated-types.d.ts +3 -1
- package/dist/destinations/rokt-audiences/index.js +26 -10
- package/dist/destinations/rokt-audiences/index.js.map +1 -1
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/custom-audience-operations.d.ts +2 -1
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/custom-audience-operations.js +4 -3
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/custom-audience-operations.js.map +1 -1
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/index.js +4 -4
- package/dist/destinations/rokt-audiences/upsertCustomAudiences/index.js.map +1 -1
- package/dist/destinations/s3/client.d.ts +2 -1
- package/dist/destinations/s3/client.js +31 -1
- package/dist/destinations/s3/client.js.map +1 -1
- package/dist/destinations/s3/functions.d.ts +2 -1
- package/dist/destinations/s3/functions.js +14 -22
- package/dist/destinations/s3/functions.js.map +1 -1
- package/dist/destinations/s3/index.js +1 -1
- package/dist/destinations/s3/syncAudienceToS3/generated-types.d.ts +53 -0
- package/dist/destinations/s3/syncAudienceToS3/generated-types.js +3 -0
- package/dist/destinations/s3/syncAudienceToS3/generated-types.js.map +1 -0
- package/dist/destinations/s3/syncAudienceToS3/index.d.ts +5 -0
- package/dist/destinations/s3/syncAudienceToS3/index.js +22 -0
- package/dist/destinations/s3/syncAudienceToS3/index.js.map +1 -0
- package/dist/destinations/s3/syncEventsToS3/generated-types.d.ts +44 -0
- package/dist/destinations/s3/syncEventsToS3/generated-types.js +3 -0
- package/dist/destinations/s3/syncEventsToS3/generated-types.js.map +1 -0
- package/dist/destinations/s3/syncEventsToS3/index.d.ts +5 -0
- package/dist/destinations/s3/syncEventsToS3/index.js +19 -0
- package/dist/destinations/s3/syncEventsToS3/index.js.map +1 -0
- package/dist/destinations/s3/syncToS3.types.d.ts +44 -0
- package/dist/destinations/s3/syncToS3.types.js +3 -0
- package/dist/destinations/s3/syncToS3.types.js.map +1 -0
- package/dist/destinations/salesforce/lead/index.js +9 -0
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js +17 -1
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js +17 -1
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/constants.d.ts +1 -0
- package/dist/destinations/sendgrid-audiences/constants.js +2 -1
- package/dist/destinations/sendgrid-audiences/constants.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/dynamic-fields.d.ts +4 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/dynamic-fields.js +33 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/dynamic-fields.js.map +1 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/fields.js +117 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/fields.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/generated-types.d.ts +13 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/index.js +8 -0
- package/dist/destinations/sendgrid-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/utils.js +16 -1
- package/dist/destinations/sendgrid-audiences/syncAudience/utils.js.map +1 -1
- package/dist/destinations/sendgrid-audiences/types.d.ts +11 -0
- package/dist/destinations/singlestore/sendData/generated-types.d.ts +2 -0
- package/dist/destinations/singlestore/sendData/generated-types.js +3 -0
- package/dist/destinations/singlestore/sendData/generated-types.js.map +1 -0
- package/dist/destinations/singlestore/sendData/index.d.ts +5 -0
- package/dist/destinations/singlestore/sendData/index.js +65 -0
- package/dist/destinations/singlestore/sendData/index.js.map +1 -0
- package/dist/destinations/singlestore/utils.d.ts +0 -0
- package/dist/destinations/singlestore/utils.js +2 -0
- package/dist/destinations/singlestore/utils.js.map +1 -0
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +6 -3
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/forwardProfile/functions.js +11 -0
- package/dist/destinations/stackadapt-audiences/forwardProfile/functions.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/index.js +29 -0
- package/dist/destinations/stackadapt-audiences/index.js.map +1 -1
- package/dist/destinations/twilio-messaging/generated-types.d.ts +6 -0
- package/dist/destinations/twilio-messaging/generated-types.js +3 -0
- package/dist/destinations/twilio-messaging/generated-types.js.map +1 -0
- package/dist/destinations/twilio-messaging/index.d.ts +4 -0
- package/dist/destinations/twilio-messaging/index.js +61 -0
- package/dist/destinations/twilio-messaging/index.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/constants.d.ts +45 -0
- package/dist/destinations/twilio-messaging/sendMessage/constants.js +99 -0
- package/dist/destinations/twilio-messaging/sendMessage/constants.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.d.ts +11 -0
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js +209 -0
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.d.ts +2 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.js +261 -0
- package/dist/destinations/twilio-messaging/sendMessage/fields.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.d.ts +24 -0
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.js +3 -0
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/index.d.ts +5 -0
- package/dist/destinations/twilio-messaging/sendMessage/index.js +42 -0
- package/dist/destinations/twilio-messaging/sendMessage/index.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/types.d.ts +34 -0
- package/dist/destinations/twilio-messaging/sendMessage/types.js +3 -0
- package/dist/destinations/twilio-messaging/sendMessage/types.js.map +1 -0
- package/dist/destinations/twilio-messaging/sendMessage/utils.d.ts +6 -0
- package/dist/destinations/twilio-messaging/sendMessage/utils.js +154 -0
- package/dist/destinations/twilio-messaging/sendMessage/utils.js.map +1 -0
- package/dist/destinations/webhook-extensible/index.js +39 -11
- package/dist/destinations/webhook-extensible/index.js.map +1 -1
- package/dist/destinations/webhook-extensible/types.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonFields = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
exports.commonFields = {
|
|
7
|
+
floodlightConfigurationId: {
|
|
8
|
+
label: 'Floodlight Configuration ID',
|
|
9
|
+
description: 'The Floodlight configuration ID associated with the conversion. Overrides the default Floodlight Configuration ID defined in Settings.',
|
|
10
|
+
type: 'string',
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
floodlightActivityId: {
|
|
14
|
+
label: 'Floodlight Activity ID',
|
|
15
|
+
description: 'The Floodlight activity ID associated with the conversion. Overrides the default Floodlight Activity ID defined in Settings.',
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
encryptionInfo: {
|
|
20
|
+
label: 'Encryption Info',
|
|
21
|
+
description: 'The encryption information associated with the conversion. Required if Encrypted User ID or Encryption User ID Candidates fields are populated.',
|
|
22
|
+
type: 'object',
|
|
23
|
+
required: false,
|
|
24
|
+
properties: {
|
|
25
|
+
encryptionEntityId: {
|
|
26
|
+
label: 'Encryption Entity ID',
|
|
27
|
+
description: 'The encryption entity ID. This should match the encryption type configuration for ad serving or Data Transfer.',
|
|
28
|
+
type: 'string',
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
31
|
+
encryptionEntityType: {
|
|
32
|
+
label: 'Encryption Entity Type',
|
|
33
|
+
description: 'The encryption entity type. This should match the encryption type configuration for ad serving or Data Transfer.',
|
|
34
|
+
type: 'string',
|
|
35
|
+
required: true,
|
|
36
|
+
choices: utils_1.getEntityTypeChoices()
|
|
37
|
+
},
|
|
38
|
+
encryptionSource: {
|
|
39
|
+
label: 'Encryption Source',
|
|
40
|
+
description: 'The encryption source. This should match the encryption type configuration for ad serving or Data Transfer.',
|
|
41
|
+
type: 'string',
|
|
42
|
+
required: true,
|
|
43
|
+
choices: utils_1.getSources()
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
userDetails: {
|
|
48
|
+
label: 'User Details',
|
|
49
|
+
description: 'User details associated with the conversion.',
|
|
50
|
+
type: 'object',
|
|
51
|
+
required: false,
|
|
52
|
+
properties: {
|
|
53
|
+
email: {
|
|
54
|
+
label: 'Email',
|
|
55
|
+
description: "The user's email address. If unhashed, Segment will hash before sending to Campaign Manager 360.",
|
|
56
|
+
type: 'string',
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
phone: {
|
|
60
|
+
label: 'Phone',
|
|
61
|
+
description: "The user's phone number. If unhashed, Segment will hash before sending to Campaign Manager 360.",
|
|
62
|
+
type: 'string',
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
firstName: {
|
|
66
|
+
label: 'First Name',
|
|
67
|
+
description: 'First name of the user. If unhashed, Segment will hash before sending to Campaign Manager 360.',
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
lastName: {
|
|
72
|
+
label: 'Last Name',
|
|
73
|
+
description: 'Last name of the user. If unhashed, Segment will hash before sending to Campaign Manager 360.',
|
|
74
|
+
type: 'string',
|
|
75
|
+
required: false
|
|
76
|
+
},
|
|
77
|
+
streetAddress: {
|
|
78
|
+
label: 'Street Address',
|
|
79
|
+
description: 'The street address of the user. If unhashed, Segment will hash before sending to Campaign Manager 360.',
|
|
80
|
+
type: 'string',
|
|
81
|
+
required: false
|
|
82
|
+
},
|
|
83
|
+
city: {
|
|
84
|
+
label: 'City',
|
|
85
|
+
description: "The user's city",
|
|
86
|
+
type: 'string',
|
|
87
|
+
required: false
|
|
88
|
+
},
|
|
89
|
+
state: {
|
|
90
|
+
label: 'State',
|
|
91
|
+
description: "The user's state",
|
|
92
|
+
type: 'string',
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
postalCode: {
|
|
96
|
+
label: 'Postal Code',
|
|
97
|
+
description: "The user's postal code",
|
|
98
|
+
type: 'string',
|
|
99
|
+
required: false
|
|
100
|
+
},
|
|
101
|
+
countryCode: {
|
|
102
|
+
label: 'Country Code',
|
|
103
|
+
description: "2-letter country code in ISO-3166-1 alpha-2 of the user's address.",
|
|
104
|
+
type: 'string',
|
|
105
|
+
required: false
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
default: {
|
|
109
|
+
email: {
|
|
110
|
+
'@if': {
|
|
111
|
+
exists: { '@path': '$.traits.email' },
|
|
112
|
+
then: { '@path': '$.traits.email' },
|
|
113
|
+
else: { '@path': '$.context.traits.email' }
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
phone: {
|
|
117
|
+
'@if': {
|
|
118
|
+
exists: { '@path': '$.traits.phone' },
|
|
119
|
+
then: { '@path': '$.traits.phone' },
|
|
120
|
+
else: { '@path': '$.context.traits.phone' }
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
firstName: {
|
|
124
|
+
'@if': {
|
|
125
|
+
exists: { '@path': '$.traits.first_name' },
|
|
126
|
+
then: { '@path': '$.traits.first_name' },
|
|
127
|
+
else: { '@path': '$.context.traits.first_name' }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
lastName: {
|
|
131
|
+
'@if': {
|
|
132
|
+
exists: { '@path': '$.traits.last_name' },
|
|
133
|
+
then: { '@path': '$.traits.last_name' },
|
|
134
|
+
else: { '@path': '$.context.traits.last_name' }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
streetAddress: {
|
|
138
|
+
'@if': {
|
|
139
|
+
exists: { '@path': '$.traits.address.street' },
|
|
140
|
+
then: { '@path': '$.traits.address.street' },
|
|
141
|
+
else: { '@path': '$.context.traits.address.street' }
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
city: {
|
|
145
|
+
'@if': {
|
|
146
|
+
exists: { '@path': '$.traits.address.city' },
|
|
147
|
+
then: { '@path': '$.traits.address.city' },
|
|
148
|
+
else: { '@path': '$.context.traits.address.city' }
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
state: {
|
|
152
|
+
'@if': {
|
|
153
|
+
exists: { '@path': '$.traits.address.state' },
|
|
154
|
+
then: { '@path': '$.traits.address.state' },
|
|
155
|
+
else: { '@path': '$.context.traits.address.state' }
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
postalCode: {
|
|
159
|
+
'@if': {
|
|
160
|
+
exists: { '@path': '$.traits.address.postal_code' },
|
|
161
|
+
then: { '@path': '$.traits.address.postal_code' },
|
|
162
|
+
else: { '@path': '$.context.traits.address.postal_code' }
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
countryCode: {
|
|
166
|
+
'@if': {
|
|
167
|
+
exists: { '@path': '$.traits.address.country' },
|
|
168
|
+
then: { '@path': '$.traits.address.country' },
|
|
169
|
+
else: { '@path': '$.context.traits.address.country' }
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
timestamp: {
|
|
175
|
+
label: 'Timestamp (ISO-8601)',
|
|
176
|
+
description: 'The timestamp of the conversion in a ISO-8601 string.',
|
|
177
|
+
type: 'string',
|
|
178
|
+
required: true,
|
|
179
|
+
default: {
|
|
180
|
+
'@path': '$.timestamp'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
value: {
|
|
184
|
+
label: 'Value',
|
|
185
|
+
description: 'The value of the conversion.',
|
|
186
|
+
type: 'number',
|
|
187
|
+
required: true,
|
|
188
|
+
default: {
|
|
189
|
+
'@if': {
|
|
190
|
+
exists: { '@path': '$.properties.total' },
|
|
191
|
+
then: { '@path': '$.properties.total' },
|
|
192
|
+
else: { '@path': '$.properties.revenue' }
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
quantity: {
|
|
197
|
+
label: 'Quantity',
|
|
198
|
+
description: 'The quantity of the conversion.',
|
|
199
|
+
type: 'string',
|
|
200
|
+
required: true,
|
|
201
|
+
default: {
|
|
202
|
+
'@path': '$.quantity'
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
ordinal: {
|
|
206
|
+
label: 'Ordinal',
|
|
207
|
+
description: 'The ordinal of the conversion. Use this field to control how conversions of the same user and day are de-duplicated.',
|
|
208
|
+
type: 'string',
|
|
209
|
+
required: true
|
|
210
|
+
},
|
|
211
|
+
limitAdTracking: {
|
|
212
|
+
label: 'Limit Ad Tracking',
|
|
213
|
+
description: 'Whether Limit Ad Tracking is enabled. When set to true, the conversion will be used for reporting but not targeting. This will prevent remarketing.',
|
|
214
|
+
type: 'boolean',
|
|
215
|
+
required: false,
|
|
216
|
+
default: false
|
|
217
|
+
},
|
|
218
|
+
childDirectedTreatment: {
|
|
219
|
+
label: 'Child Directed Treatment',
|
|
220
|
+
description: 'Whether this particular request may come from a user under the age of 13, under COPPA compliance.',
|
|
221
|
+
type: 'boolean',
|
|
222
|
+
required: false,
|
|
223
|
+
default: false
|
|
224
|
+
},
|
|
225
|
+
nonPersonalizedAd: {
|
|
226
|
+
label: 'Non-Personalized Ad',
|
|
227
|
+
description: 'Whether the conversion was for a non personalized ad.',
|
|
228
|
+
type: 'boolean',
|
|
229
|
+
required: false,
|
|
230
|
+
default: true
|
|
231
|
+
},
|
|
232
|
+
treatmentForUnderage: {
|
|
233
|
+
label: 'Treatment For Underage',
|
|
234
|
+
description: "Whether this particular request may come from a user under the age of 16 (may differ by country), under compliance with the European Union's General Data Protection Regulation (GDPR).",
|
|
235
|
+
type: 'boolean',
|
|
236
|
+
required: false,
|
|
237
|
+
default: false
|
|
238
|
+
},
|
|
239
|
+
adUserDataConsent: {
|
|
240
|
+
label: 'Ad User Data Consent',
|
|
241
|
+
description: 'The user data consent status for the conversion.',
|
|
242
|
+
type: 'string',
|
|
243
|
+
required: false,
|
|
244
|
+
choices: [
|
|
245
|
+
{ label: types_1.ConsentType.GRANTED, value: types_1.ConsentType.GRANTED },
|
|
246
|
+
{ label: types_1.ConsentType.DENIED, value: types_1.ConsentType.DENIED }
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
merchantId: {
|
|
250
|
+
label: 'Cart Data Merchant ID',
|
|
251
|
+
description: 'The Merchant Center ID where the items are uploaded. Required if the cart data is provided.',
|
|
252
|
+
type: 'string',
|
|
253
|
+
required: false
|
|
254
|
+
},
|
|
255
|
+
merchantFeedLabel: {
|
|
256
|
+
label: 'Cart Data Merchant Feed Label',
|
|
257
|
+
description: 'The feed labels associated with the feed where your items are uploaded. Required if the cart data is provided. For more information, please refer to https://support.google.com/merchants/answer/12453549.',
|
|
258
|
+
type: 'string',
|
|
259
|
+
required: false
|
|
260
|
+
},
|
|
261
|
+
merchantFeedLanguage: {
|
|
262
|
+
label: 'Cart Data Merchant Feed Language',
|
|
263
|
+
description: 'The language associated with the feed where your items are uploaded. Use ISO 639-1 language codes. This field is needed only when item IDs are not unique across multiple Merchant Center feeds.',
|
|
264
|
+
type: 'string',
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
cartDataItems: {
|
|
268
|
+
label: 'Cart Data Items',
|
|
269
|
+
description: 'The items in the cart.',
|
|
270
|
+
type: 'object',
|
|
271
|
+
multiple: true,
|
|
272
|
+
required: false,
|
|
273
|
+
additionalProperties: false,
|
|
274
|
+
properties: {
|
|
275
|
+
itemId: {
|
|
276
|
+
label: 'Item ID',
|
|
277
|
+
description: 'The item ID associated with the conversion.',
|
|
278
|
+
type: 'string',
|
|
279
|
+
required: true
|
|
280
|
+
},
|
|
281
|
+
quantity: {
|
|
282
|
+
label: 'Quantity',
|
|
283
|
+
description: 'The quantity of the item.',
|
|
284
|
+
type: 'number',
|
|
285
|
+
required: true
|
|
286
|
+
},
|
|
287
|
+
unitPrice: {
|
|
288
|
+
label: 'Value',
|
|
289
|
+
description: 'The value of the item.',
|
|
290
|
+
type: 'number',
|
|
291
|
+
required: true
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
default: {
|
|
295
|
+
'@arrayPath': [
|
|
296
|
+
'$.properties.products',
|
|
297
|
+
{
|
|
298
|
+
itemId: { '@path': '$.product_id' },
|
|
299
|
+
quantity: { '@path': '$.quantity' },
|
|
300
|
+
unitPrice: { '@path': '$.price' }
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
//# sourceMappingURL=common-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-fields.js","sourceRoot":"","sources":["../../../src/destinations/campaign-manager-360/common-fields.ts"],"names":[],"mappings":";;;AAEA,mCAAqC;AACrC,mCAAwD;AAE3C,QAAA,YAAY,GAAyC;IAChE,yBAAyB,EAAE;QACzB,KAAK,EAAE,6BAA6B;QACpC,WAAW,EACT,wIAAwI;QAC1I,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,oBAAoB,EAAE;QACpB,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,8HAA8H;QAChI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,cAAc,EAAE;QACd,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,iJAAiJ;QAC9J,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE;YACV,kBAAkB,EAAE;gBAClB,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EACT,gHAAgH;gBAClH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,oBAAoB,EAAE;gBACpB,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EACT,kHAAkH;gBACpH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,4BAAoB,EAAE;aAChC;YACD,gBAAgB,EAAE;gBAChB,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EACT,6GAA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generated-types.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
requiredId: {
|
|
3
|
+
gclid?: string;
|
|
4
|
+
dclid?: string;
|
|
5
|
+
encryptedUserId?: string;
|
|
6
|
+
mobileDeviceId?: string;
|
|
7
|
+
matchId?: string;
|
|
8
|
+
impressionId?: string;
|
|
9
|
+
};
|
|
10
|
+
floodlightConfigurationId?: string;
|
|
11
|
+
floodlightActivityId?: string;
|
|
12
|
+
encryptionInfo?: {
|
|
13
|
+
encryptionEntityId: string;
|
|
14
|
+
encryptionEntityType: string;
|
|
15
|
+
encryptionSource: string;
|
|
16
|
+
};
|
|
17
|
+
userDetails?: {
|
|
18
|
+
email?: string;
|
|
19
|
+
phone?: string;
|
|
20
|
+
firstName?: string;
|
|
21
|
+
lastName?: string;
|
|
22
|
+
streetAddress?: string;
|
|
23
|
+
city?: string;
|
|
24
|
+
state?: string;
|
|
25
|
+
postalCode?: string;
|
|
26
|
+
countryCode?: string;
|
|
27
|
+
};
|
|
28
|
+
timestamp: string;
|
|
29
|
+
value: number;
|
|
30
|
+
quantity: string;
|
|
31
|
+
ordinal: string;
|
|
32
|
+
limitAdTracking?: boolean;
|
|
33
|
+
childDirectedTreatment?: boolean;
|
|
34
|
+
nonPersonalizedAd?: boolean;
|
|
35
|
+
treatmentForUnderage?: boolean;
|
|
36
|
+
adUserDataConsent?: string;
|
|
37
|
+
merchantId?: string;
|
|
38
|
+
merchantFeedLabel?: string;
|
|
39
|
+
merchantFeedLanguage?: string;
|
|
40
|
+
cartDataItems?: {
|
|
41
|
+
itemId: string;
|
|
42
|
+
quantity: number;
|
|
43
|
+
unitPrice: number;
|
|
44
|
+
}[];
|
|
45
|
+
}
|
package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("../utils");
|
|
4
|
+
const common_fields_1 = require("../common-fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Conversion Adjustment Upload',
|
|
7
|
+
description: "Adjust an conversion in Campaign Manager 360.",
|
|
8
|
+
fields: {
|
|
9
|
+
requiredId: {
|
|
10
|
+
label: 'Required ID',
|
|
11
|
+
description: 'A user identifier record the conversion against. Exactly one of Google Click ID, Display Click ID, Encrypted User ID, Mobile Device ID, Match ID, Impression ID or Encrypted User ID Candidates must be provided.',
|
|
12
|
+
type: 'object',
|
|
13
|
+
required: true,
|
|
14
|
+
properties: {
|
|
15
|
+
gclid: {
|
|
16
|
+
label: 'Google Click ID',
|
|
17
|
+
description: 'The Google Click ID (gclid) associated with the conversion.',
|
|
18
|
+
type: 'string',
|
|
19
|
+
required: false
|
|
20
|
+
},
|
|
21
|
+
dclid: {
|
|
22
|
+
label: 'Display Click ID',
|
|
23
|
+
description: 'The Display Click ID (dclid) associated with the conversion.',
|
|
24
|
+
type: 'string',
|
|
25
|
+
required: false
|
|
26
|
+
},
|
|
27
|
+
encryptedUserId: {
|
|
28
|
+
label: 'Encrypted User ID',
|
|
29
|
+
description: "The encrypted user ID associated with the conversion. If this field is set then 'Encryption Entity ID', 'Encryption Entity Type' and 'Encryption Source' should also be specified.",
|
|
30
|
+
type: 'string',
|
|
31
|
+
required: false
|
|
32
|
+
},
|
|
33
|
+
mobileDeviceId: {
|
|
34
|
+
label: 'Mobile Device ID',
|
|
35
|
+
description: 'The mobile device ID associated with the conversion.',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: false,
|
|
38
|
+
default: {
|
|
39
|
+
'@path': '$.context.device.id'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
matchId: {
|
|
43
|
+
label: 'Match ID',
|
|
44
|
+
description: 'The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight.',
|
|
45
|
+
type: 'string',
|
|
46
|
+
required: false
|
|
47
|
+
},
|
|
48
|
+
impressionId: {
|
|
49
|
+
label: 'Impression ID',
|
|
50
|
+
description: 'The impression ID associated with the conversion.',
|
|
51
|
+
type: 'string',
|
|
52
|
+
required: false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
default: {
|
|
56
|
+
gclid: {
|
|
57
|
+
'@if': {
|
|
58
|
+
exists: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
59
|
+
then: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
60
|
+
else: { '@path': '$.properties.gclid' }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
dclid: {
|
|
64
|
+
'@if': {
|
|
65
|
+
exists: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
66
|
+
then: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
67
|
+
else: { '@path': '$.properties.dclid' }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
encryptedUserId: { '@path': '$.userId' },
|
|
71
|
+
mobileDeviceId: { '@path': '$.context.device.id' },
|
|
72
|
+
matchId: { '@path': '$.properties.matchId' },
|
|
73
|
+
impressionId: { '@path': '$.properties.impressionId' }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
...common_fields_1.commonFields
|
|
77
|
+
},
|
|
78
|
+
perform: async (request, { settings, payload, auth }) => {
|
|
79
|
+
return await utils_1.send(request, settings, [payload], true, auth);
|
|
80
|
+
},
|
|
81
|
+
performBatch: async (request, { settings, payload, auth }) => {
|
|
82
|
+
return await utils_1.send(request, settings, payload, true, auth);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
exports.default = action;
|
|
86
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionAdjustmentUpload/index.ts"],"names":[],"mappings":";;AAGA,oCAA+B;AAC/B,oDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EACN;QACE,UAAU,EAAE;YACV,KAAK,EAAE,aAAa;YACpB,WAAW,EACT,mNAAmN;YACrN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,KAAK,EAAE,iBAAiB;oBACxB,WAAW,EAAE,6DAA6D;oBAC1E,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,kBAAkB;oBACzB,WAAW,EAAE,8DAA8D;oBAC3E,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,eAAe,EAAE;oBACf,KAAK,EAAE,mBAAmB;oBAC1B,WAAW,EAAE,oLAAoL;oBACjM,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,cAAc,EAAE;oBACd,KAAK,EAAE,kBAAkB;oBACzB,WAAW,EAAE,sDAAsD;oBACnE,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,qBAAqB;qBAC/B;iBACF;gBACD,OAAO,EAAE;oBACP,KAAK,EAAE,UAAU;oBACjB,WAAW,EACT,8IAA8I;oBAChJ,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;gBACD,YAAY,EAAE;oBACZ,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,mDAAmD;oBAChE,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;iBAChB;aACF;YACD,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,MAA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|
|
8
|
+
dclid?: string;
|
|
9
|
+
encryptedUserId?: string;
|
|
10
|
+
mobileDeviceId?: string;
|
|
11
|
+
matchId?: string;
|
|
12
|
+
impressionId?: string;
|
|
13
|
+
encryptedUserIdCandidates?: string;
|
|
14
|
+
};
|
|
15
|
+
floodlightConfigurationId?: string;
|
|
16
|
+
floodlightActivityId?: string;
|
|
17
|
+
encryptionInfo?: {
|
|
18
|
+
encryptionEntityId: string;
|
|
19
|
+
encryptionEntityType: string;
|
|
20
|
+
encryptionSource: string;
|
|
21
|
+
};
|
|
22
|
+
userDetails?: {
|
|
23
|
+
email?: string;
|
|
24
|
+
phone?: string;
|
|
25
|
+
firstName?: string;
|
|
26
|
+
lastName?: string;
|
|
27
|
+
streetAddress?: string;
|
|
28
|
+
city?: string;
|
|
29
|
+
state?: string;
|
|
30
|
+
postalCode?: string;
|
|
31
|
+
countryCode?: string;
|
|
32
|
+
};
|
|
33
|
+
timestamp: string;
|
|
34
|
+
value: number;
|
|
35
|
+
quantity: string;
|
|
36
|
+
ordinal: string;
|
|
37
|
+
limitAdTracking?: boolean;
|
|
38
|
+
childDirectedTreatment?: boolean;
|
|
39
|
+
nonPersonalizedAd?: boolean;
|
|
40
|
+
treatmentForUnderage?: boolean;
|
|
41
|
+
adUserDataConsent?: string;
|
|
42
|
+
merchantId?: string;
|
|
43
|
+
merchantFeedLabel?: string;
|
|
44
|
+
merchantFeedLanguage?: string;
|
|
45
|
+
cartDataItems?: {
|
|
46
|
+
itemId: string;
|
|
47
|
+
quantity: number;
|
|
48
|
+
unitPrice: number;
|
|
49
|
+
}[];
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionUpload/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("../utils");
|
|
4
|
+
const common_fields_1 = require("../common-fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Conversion Upload',
|
|
7
|
+
description: 'Send a conversion to Campaign Manager 360.',
|
|
8
|
+
fields: {
|
|
9
|
+
customVariables: {
|
|
10
|
+
label: 'Custom Variables',
|
|
11
|
+
description: 'Custom variables associated with the conversion.',
|
|
12
|
+
type: 'object',
|
|
13
|
+
multiple: true,
|
|
14
|
+
required: false,
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
properties: {
|
|
17
|
+
type: {
|
|
18
|
+
label: 'Type',
|
|
19
|
+
description: 'The type of the custom variable.',
|
|
20
|
+
type: 'string',
|
|
21
|
+
allowNull: false,
|
|
22
|
+
required: true,
|
|
23
|
+
choices: utils_1.getCustomVarTypeChoices()
|
|
24
|
+
},
|
|
25
|
+
value: {
|
|
26
|
+
label: 'Value',
|
|
27
|
+
description: 'The value of the custom variable.',
|
|
28
|
+
type: 'string',
|
|
29
|
+
allowNull: false,
|
|
30
|
+
required: true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
default: {
|
|
34
|
+
'@arrayPath': [
|
|
35
|
+
'$.properties.customVariables',
|
|
36
|
+
{
|
|
37
|
+
type: {
|
|
38
|
+
'@path': '$.type'
|
|
39
|
+
},
|
|
40
|
+
value: {
|
|
41
|
+
'@path': '$.value'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
requiredId: {
|
|
48
|
+
label: 'Required ID',
|
|
49
|
+
description: 'A user identifier record the conversion against. Exactly one of Google Click ID, Display Click ID, Encrypted User ID, Mobile Device ID, Match ID, Impression ID or Encrypted User ID Candidates must be provided.',
|
|
50
|
+
type: 'object',
|
|
51
|
+
required: true,
|
|
52
|
+
properties: {
|
|
53
|
+
gclid: {
|
|
54
|
+
label: 'Google Click ID',
|
|
55
|
+
description: 'The Google Click ID (gclid) associated with the conversion.',
|
|
56
|
+
type: 'string',
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
dclid: {
|
|
60
|
+
label: 'Display Click ID',
|
|
61
|
+
description: 'The Display Click ID (dclid) associated with the conversion.',
|
|
62
|
+
type: 'string',
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
encryptedUserId: {
|
|
66
|
+
label: 'Encrypted User ID',
|
|
67
|
+
description: "The encrypted user ID associated with the conversion. If this field is set then 'Encryption Entity ID', 'Encryption Entity Type' and 'Encryption Source' should also be specified.",
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
mobileDeviceId: {
|
|
72
|
+
label: 'Mobile Device ID',
|
|
73
|
+
description: 'The mobile device ID associated with the conversion.',
|
|
74
|
+
type: 'string',
|
|
75
|
+
required: false,
|
|
76
|
+
default: {
|
|
77
|
+
'@path': '$.context.device.id'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
matchId: {
|
|
81
|
+
label: 'Match ID',
|
|
82
|
+
description: 'The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight.',
|
|
83
|
+
type: 'string',
|
|
84
|
+
required: false
|
|
85
|
+
},
|
|
86
|
+
impressionId: {
|
|
87
|
+
label: 'Impression ID',
|
|
88
|
+
description: 'The impression ID associated with the conversion.',
|
|
89
|
+
type: 'string',
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
92
|
+
encryptedUserIdCandidates: {
|
|
93
|
+
label: 'Encrypted User ID Candidates',
|
|
94
|
+
description: 'A comma separated list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with INVALID_ARGUMENT error. When set, `encryptionInfo` should also be specified.',
|
|
95
|
+
type: 'string',
|
|
96
|
+
required: false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
default: {
|
|
100
|
+
gclid: {
|
|
101
|
+
'@if': {
|
|
102
|
+
exists: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
103
|
+
then: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
104
|
+
else: { '@path': '$.properties.gclid' }
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
dclid: {
|
|
108
|
+
'@if': {
|
|
109
|
+
exists: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
110
|
+
then: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
111
|
+
else: { '@path': '$.properties.dclid' }
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
encryptedUserId: { '@path': '$.userId' },
|
|
115
|
+
mobileDeviceId: { '@path': '$.context.device.id' },
|
|
116
|
+
matchId: { '@path': '$.properties.matchId' },
|
|
117
|
+
impressionId: { '@path': '$.properties.impressionId' },
|
|
118
|
+
encryptedUserIdCandidates: { '@path': '$.properties.encryptedUserIdCandidates' }
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
...common_fields_1.commonFields
|
|
122
|
+
},
|
|
123
|
+
perform: async (request, { settings, payload, auth }) => {
|
|
124
|
+
return await utils_1.send(request, settings, [payload], false, auth);
|
|
125
|
+
},
|
|
126
|
+
performBatch: async (request, { settings, payload, auth }) => {
|
|
127
|
+
return await utils_1.send(request, settings, payload, false, auth);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
exports.default = action;
|
|
131
|
+
//# sourceMappingURL=index.js.map
|