@getlatedev/node 0.2.1758 → 0.2.1759
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/index.d.mts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -3
- package/src/generated/types.gen.ts +8 -4
package/dist/index.d.mts
CHANGED
|
@@ -79107,11 +79107,11 @@ type SendConversionsError = (unknown | ErrorResponse);
|
|
|
79107
79107
|
type AdjustConversionsData = {
|
|
79108
79108
|
body: {
|
|
79109
79109
|
/**
|
|
79110
|
-
* SocialAccount ID. Must be a `googleads` or `
|
|
79110
|
+
* SocialAccount ID. Must be a `googleads`, `impact` or `microsoftads` account.
|
|
79111
79111
|
*/
|
|
79112
79112
|
accountId: string;
|
|
79113
79113
|
/**
|
|
79114
|
-
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact.
|
|
79114
|
+
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact; `accounts/{adAccountId}/conversionGoals/{goalId}` on Microsoft Ads.
|
|
79115
79115
|
*/
|
|
79116
79116
|
destinationId: string;
|
|
79117
79117
|
adjustments: Array<{
|
|
@@ -79129,9 +79129,13 @@ type AdjustConversionsData = {
|
|
|
79129
79129
|
*/
|
|
79130
79130
|
gclid?: string;
|
|
79131
79131
|
/**
|
|
79132
|
-
* The original conversion's time, unix seconds. Required when identifying by `gclid`.
|
|
79132
|
+
* The original conversion's time, unix seconds. Required when identifying by `gclid` or `msclkid`.
|
|
79133
79133
|
*/
|
|
79134
79134
|
conversionTime?: number;
|
|
79135
|
+
/**
|
|
79136
|
+
* Microsoft Ads only, and required there. The click ID the conversion was sent with. Pair with `conversionTime`.
|
|
79137
|
+
*/
|
|
79138
|
+
msclkid?: string;
|
|
79135
79139
|
/**
|
|
79136
79140
|
* RESTATEMENT only. The corrected TOTAL conversion value.
|
|
79137
79141
|
*/
|
|
@@ -79155,7 +79159,7 @@ type AdjustConversionsData = {
|
|
|
79155
79159
|
};
|
|
79156
79160
|
};
|
|
79157
79161
|
type AdjustConversionsResponse = ({
|
|
79158
|
-
platform?: 'googleads' | 'impact';
|
|
79162
|
+
platform?: 'googleads' | 'impact' | 'microsoftads';
|
|
79159
79163
|
/**
|
|
79160
79164
|
* Adjustments accepted by the platform.
|
|
79161
79165
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -79107,11 +79107,11 @@ type SendConversionsError = (unknown | ErrorResponse);
|
|
|
79107
79107
|
type AdjustConversionsData = {
|
|
79108
79108
|
body: {
|
|
79109
79109
|
/**
|
|
79110
|
-
* SocialAccount ID. Must be a `googleads` or `
|
|
79110
|
+
* SocialAccount ID. Must be a `googleads`, `impact` or `microsoftads` account.
|
|
79111
79111
|
*/
|
|
79112
79112
|
accountId: string;
|
|
79113
79113
|
/**
|
|
79114
|
-
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact.
|
|
79114
|
+
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact; `accounts/{adAccountId}/conversionGoals/{goalId}` on Microsoft Ads.
|
|
79115
79115
|
*/
|
|
79116
79116
|
destinationId: string;
|
|
79117
79117
|
adjustments: Array<{
|
|
@@ -79129,9 +79129,13 @@ type AdjustConversionsData = {
|
|
|
79129
79129
|
*/
|
|
79130
79130
|
gclid?: string;
|
|
79131
79131
|
/**
|
|
79132
|
-
* The original conversion's time, unix seconds. Required when identifying by `gclid`.
|
|
79132
|
+
* The original conversion's time, unix seconds. Required when identifying by `gclid` or `msclkid`.
|
|
79133
79133
|
*/
|
|
79134
79134
|
conversionTime?: number;
|
|
79135
|
+
/**
|
|
79136
|
+
* Microsoft Ads only, and required there. The click ID the conversion was sent with. Pair with `conversionTime`.
|
|
79137
|
+
*/
|
|
79138
|
+
msclkid?: string;
|
|
79135
79139
|
/**
|
|
79136
79140
|
* RESTATEMENT only. The corrected TOTAL conversion value.
|
|
79137
79141
|
*/
|
|
@@ -79155,7 +79159,7 @@ type AdjustConversionsData = {
|
|
|
79155
79159
|
};
|
|
79156
79160
|
};
|
|
79157
79161
|
type AdjustConversionsResponse = ({
|
|
79158
|
-
platform?: 'googleads' | 'impact';
|
|
79162
|
+
platform?: 'googleads' | 'impact' | 'microsoftads';
|
|
79159
79163
|
/**
|
|
79160
79164
|
* Adjustments accepted by the platform.
|
|
79161
79165
|
*/
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1759",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1759",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -21220,11 +21220,11 @@ export const sendConversions = <ThrowOnError extends boolean = false>(options: O
|
|
|
21220
21220
|
|
|
21221
21221
|
/**
|
|
21222
21222
|
* Adjust uploaded conversions
|
|
21223
|
-
* Retracts, restates the value of, or enhances conversions you already sent to Google Ads or
|
|
21223
|
+
* Retracts, restates the value of, or enhances conversions you already sent to Google Ads, Impact or a Microsoft Ads offline conversion goal, for refunds or late customer data. To change Zernio's stored event too, and every platform at once, use `PATCH` or `DELETE /v1/events/{eventId}`.
|
|
21224
21224
|
*
|
|
21225
21225
|
* It adjusts conversions previously uploaded via `POST /v1/ads/conversions`: retract them, restate their value, or enhance them with first-party data. Requires the Ads add-on.
|
|
21226
21226
|
*
|
|
21227
|
-
* ### Google Ads and
|
|
21227
|
+
* ### Google Ads, Impact and Microsoft Ads only
|
|
21228
21228
|
*
|
|
21229
21229
|
* Google handles adjustments through the classic Google Ads API (`ConversionAdjustmentUploadService`). The Data Manager `ingestEvents` path used for sending conversions is ingest-only.
|
|
21230
21230
|
*
|
|
@@ -21234,6 +21234,11 @@ export const sendConversions = <ThrowOnError extends boolean = false>(options: O
|
|
|
21234
21234
|
* - The action is found by the `destinationId` event type and `orderId`: the `platformData.order_id` the conversion was sent with, or its `eventId` when it had none.
|
|
21235
21235
|
* - Impact applies changes asynchronously and refuses them on its side past the action's locking date.
|
|
21236
21236
|
*
|
|
21237
|
+
* On Microsoft Ads (`ApplyOfflineConversionAdjustments`), only offline conversion goals take changes; a UET tag refuses them:
|
|
21238
|
+
*
|
|
21239
|
+
* - `RETRACTION` retracts the conversion and `RESTATEMENT` sets its new value. Microsoft has no `ENHANCEMENT`.
|
|
21240
|
+
* - Microsoft has no order id: send `msclkid` and `conversionTime`, the click id and time the conversion was sent with.
|
|
21241
|
+
*
|
|
21237
21242
|
* Other platforms have no equivalent, so this endpoint returns `405` for them.
|
|
21238
21243
|
*
|
|
21239
21244
|
* ### Adjustment types
|
|
@@ -21248,10 +21253,11 @@ export const sendConversions = <ThrowOnError extends boolean = false>(options: O
|
|
|
21248
21253
|
*
|
|
21249
21254
|
* - `orderId`: the transaction ID you sent as `eventId` on the original conversion. Recommended, and **required** for `ENHANCEMENT`.
|
|
21250
21255
|
* - `gclid` + `conversionTime`: the click ID and the original conversion's time (unix seconds). Not available for `ENHANCEMENT`.
|
|
21256
|
+
* - `msclkid` + `conversionTime`: the only key on Microsoft Ads.
|
|
21251
21257
|
*
|
|
21252
21258
|
* ### Other fields
|
|
21253
21259
|
*
|
|
21254
|
-
* - `destinationId` is the same value you send to `POST /v1/ads/conversions`: the conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`,
|
|
21260
|
+
* - `destinationId` is the same value you send to `POST /v1/ads/conversions`: the conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`, `<program id>:<event type id>` on Impact, and `accounts/{adAccountId}/conversionGoals/{goalId}` on Microsoft Ads.
|
|
21255
21261
|
* - PII in `user` is hashed with SHA-256 server-side (Gmail-specific normalization included). Send plaintext.
|
|
21256
21262
|
* - Times are unix seconds; we convert to Google's required `yyyy-MM-dd HH:mm:ss+00:00` format.
|
|
21257
21263
|
*
|
|
@@ -81049,11 +81049,11 @@ export type SendConversionsError = (unknown | ErrorResponse);
|
|
|
81049
81049
|
export type AdjustConversionsData = {
|
|
81050
81050
|
body: {
|
|
81051
81051
|
/**
|
|
81052
|
-
* SocialAccount ID. Must be a `googleads` or `
|
|
81052
|
+
* SocialAccount ID. Must be a `googleads`, `impact` or `microsoftads` account.
|
|
81053
81053
|
*/
|
|
81054
81054
|
accountId: string;
|
|
81055
81055
|
/**
|
|
81056
|
-
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact.
|
|
81056
|
+
* Conversion action resource name on Google, e.g. `customers/1234567890/conversionActions/987654321`; `<program id>:<event type id>` on Impact; `accounts/{adAccountId}/conversionGoals/{goalId}` on Microsoft Ads.
|
|
81057
81057
|
*/
|
|
81058
81058
|
destinationId: string;
|
|
81059
81059
|
adjustments: Array<{
|
|
@@ -81071,9 +81071,13 @@ export type AdjustConversionsData = {
|
|
|
81071
81071
|
*/
|
|
81072
81072
|
gclid?: string;
|
|
81073
81073
|
/**
|
|
81074
|
-
* The original conversion's time, unix seconds. Required when identifying by `gclid`.
|
|
81074
|
+
* The original conversion's time, unix seconds. Required when identifying by `gclid` or `msclkid`.
|
|
81075
81075
|
*/
|
|
81076
81076
|
conversionTime?: number;
|
|
81077
|
+
/**
|
|
81078
|
+
* Microsoft Ads only, and required there. The click ID the conversion was sent with. Pair with `conversionTime`.
|
|
81079
|
+
*/
|
|
81080
|
+
msclkid?: string;
|
|
81077
81081
|
/**
|
|
81078
81082
|
* RESTATEMENT only. The corrected TOTAL conversion value.
|
|
81079
81083
|
*/
|
|
@@ -81098,7 +81102,7 @@ export type AdjustConversionsData = {
|
|
|
81098
81102
|
};
|
|
81099
81103
|
|
|
81100
81104
|
export type AdjustConversionsResponse = ({
|
|
81101
|
-
platform?: 'googleads' | 'impact';
|
|
81105
|
+
platform?: 'googleads' | 'impact' | 'microsoftads';
|
|
81102
81106
|
/**
|
|
81103
81107
|
* Adjustments accepted by the platform.
|
|
81104
81108
|
*/
|