@getlatedev/node 0.2.1360 → 0.2.1361

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 CHANGED
@@ -4014,7 +4014,7 @@ type AdTracking = {
4014
4014
  value: string;
4015
4015
  }>;
4016
4016
  /**
4017
- * POST /v1/ads/create on Meta and Google only. Every ad created there carries `zrn=<platform ad id>` on its landing URL so orders and events tied to the landing URL map back to the ad. Meta: `{ key: zrn, value: '{{ad.id}}' }` is appended after your `urlTags`, which are sent unchanged; a `zrn` key you send yourself is kept. Skipped for lead forms, call ads, `existingCreativeId` and app promotion. Google (Display and Search): the ad's `final_url_suffix` becomes the suffix it would inherit (ad group, campaign or account) plus `&zrn={creative}`, so your account and campaign UTMs still apply; if that suffix cannot be read or Google rejects it, the ad is created untagged. Existing ads are never changed. Set `false` to create the ad with no Zernio tag.
4017
+ * POST /v1/ads/create on Meta and Google only. Every ad created there carries `zrn=<platform ad id>` on its landing URL so orders and events tied to the landing URL map back to the ad. Meta: `{ key: zrn, value: '{{ad.id}}' }` is appended after your `urlTags`, which are sent unchanged; a `zrn` key you send yourself is kept. Skipped for lead forms, call ads, `existingCreativeId` and app promotion. Google (Display and Search): the ad's `final_url_suffix` is set to `zrn={creative}` only when the ad inherits no suffix from its ad group, campaign or account; when one exists the ad is left untouched (your suffix keeps applying) and attribution uses the click's `gclid`. If the inherited suffix cannot be read or Google rejects the tag, the ad is created untagged. Existing ads are never changed. Set `false` to create the ad with no Zernio tag.
4018
4018
  */
4019
4019
  zernioTag?: boolean;
4020
4020
  };
@@ -56826,6 +56826,26 @@ type ListEventsResponse = ({
56826
56826
  hasEmail?: boolean;
56827
56827
  hasPhone?: boolean;
56828
56828
  hasExternalId?: boolean;
56829
+ /**
56830
+ * The ad behind the event, when Zernio can name it. Google: from the click behind `clickIds.gclid` (synced daily from Google Ads click_view for clicks up to 14 days before the event; gbraid/wbraid clicks are not resolved). Meta: from the `zrn` ad id, for Meta ads Zernio holds. `null` otherwise.
56831
+ */
56832
+ ad?: {
56833
+ platform?: 'googleads' | 'metaads';
56834
+ /**
56835
+ * Google Ads customer id (Google only).
56836
+ */
56837
+ customerId?: string;
56838
+ campaignId?: (string) | null;
56839
+ /**
56840
+ * Google only.
56841
+ */
56842
+ adGroupId?: (string) | null;
56843
+ /**
56844
+ * Meta only.
56845
+ */
56846
+ adSetId?: (string) | null;
56847
+ adId?: (string) | null;
56848
+ } | null;
56829
56849
  }>;
56830
56850
  /**
56831
56851
  * Pass as `cursor` to get the next page; `null` on the last page.
package/dist/index.d.ts CHANGED
@@ -4014,7 +4014,7 @@ type AdTracking = {
4014
4014
  value: string;
4015
4015
  }>;
4016
4016
  /**
4017
- * POST /v1/ads/create on Meta and Google only. Every ad created there carries `zrn=<platform ad id>` on its landing URL so orders and events tied to the landing URL map back to the ad. Meta: `{ key: zrn, value: '{{ad.id}}' }` is appended after your `urlTags`, which are sent unchanged; a `zrn` key you send yourself is kept. Skipped for lead forms, call ads, `existingCreativeId` and app promotion. Google (Display and Search): the ad's `final_url_suffix` becomes the suffix it would inherit (ad group, campaign or account) plus `&zrn={creative}`, so your account and campaign UTMs still apply; if that suffix cannot be read or Google rejects it, the ad is created untagged. Existing ads are never changed. Set `false` to create the ad with no Zernio tag.
4017
+ * POST /v1/ads/create on Meta and Google only. Every ad created there carries `zrn=<platform ad id>` on its landing URL so orders and events tied to the landing URL map back to the ad. Meta: `{ key: zrn, value: '{{ad.id}}' }` is appended after your `urlTags`, which are sent unchanged; a `zrn` key you send yourself is kept. Skipped for lead forms, call ads, `existingCreativeId` and app promotion. Google (Display and Search): the ad's `final_url_suffix` is set to `zrn={creative}` only when the ad inherits no suffix from its ad group, campaign or account; when one exists the ad is left untouched (your suffix keeps applying) and attribution uses the click's `gclid`. If the inherited suffix cannot be read or Google rejects the tag, the ad is created untagged. Existing ads are never changed. Set `false` to create the ad with no Zernio tag.
4018
4018
  */
4019
4019
  zernioTag?: boolean;
4020
4020
  };
@@ -56826,6 +56826,26 @@ type ListEventsResponse = ({
56826
56826
  hasEmail?: boolean;
56827
56827
  hasPhone?: boolean;
56828
56828
  hasExternalId?: boolean;
56829
+ /**
56830
+ * The ad behind the event, when Zernio can name it. Google: from the click behind `clickIds.gclid` (synced daily from Google Ads click_view for clicks up to 14 days before the event; gbraid/wbraid clicks are not resolved). Meta: from the `zrn` ad id, for Meta ads Zernio holds. `null` otherwise.
56831
+ */
56832
+ ad?: {
56833
+ platform?: 'googleads' | 'metaads';
56834
+ /**
56835
+ * Google Ads customer id (Google only).
56836
+ */
56837
+ customerId?: string;
56838
+ campaignId?: (string) | null;
56839
+ /**
56840
+ * Google only.
56841
+ */
56842
+ adGroupId?: (string) | null;
56843
+ /**
56844
+ * Meta only.
56845
+ */
56846
+ adSetId?: (string) | null;
56847
+ adId?: (string) | null;
56848
+ } | null;
56829
56849
  }>;
56830
56850
  /**
56831
56851
  * Pass as `cursor` to get the next page; `null` on the last page.
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.1360",
39
+ version: "0.2.1361",
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.1360",
8
+ version: "0.2.1361",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1360",
3
+ "version": "0.2.1361",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1917,7 +1917,7 @@ export type AdTracking = {
1917
1917
  value: string;
1918
1918
  }>;
1919
1919
  /**
1920
- * POST /v1/ads/create on Meta and Google only. Every ad created there carries `zrn=<platform ad id>` on its landing URL so orders and events tied to the landing URL map back to the ad. Meta: `{ key: zrn, value: '{{ad.id}}' }` is appended after your `urlTags`, which are sent unchanged; a `zrn` key you send yourself is kept. Skipped for lead forms, call ads, `existingCreativeId` and app promotion. Google (Display and Search): the ad's `final_url_suffix` becomes the suffix it would inherit (ad group, campaign or account) plus `&zrn={creative}`, so your account and campaign UTMs still apply; if that suffix cannot be read or Google rejects it, the ad is created untagged. Existing ads are never changed. Set `false` to create the ad with no Zernio tag.
1920
+ * POST /v1/ads/create on Meta and Google only. Every ad created there carries `zrn=<platform ad id>` on its landing URL so orders and events tied to the landing URL map back to the ad. Meta: `{ key: zrn, value: '{{ad.id}}' }` is appended after your `urlTags`, which are sent unchanged; a `zrn` key you send yourself is kept. Skipped for lead forms, call ads, `existingCreativeId` and app promotion. Google (Display and Search): the ad's `final_url_suffix` is set to `zrn={creative}` only when the ad inherits no suffix from its ad group, campaign or account; when one exists the ad is left untouched (your suffix keeps applying) and attribution uses the click's `gclid`. If the inherited suffix cannot be read or Google rejects the tag, the ad is created untagged. Existing ads are never changed. Set `false` to create the ad with no Zernio tag.
1921
1921
  */
1922
1922
  zernioTag?: boolean;
1923
1923
  };
@@ -58068,6 +58068,26 @@ export type ListEventsResponse = ({
58068
58068
  hasEmail?: boolean;
58069
58069
  hasPhone?: boolean;
58070
58070
  hasExternalId?: boolean;
58071
+ /**
58072
+ * The ad behind the event, when Zernio can name it. Google: from the click behind `clickIds.gclid` (synced daily from Google Ads click_view for clicks up to 14 days before the event; gbraid/wbraid clicks are not resolved). Meta: from the `zrn` ad id, for Meta ads Zernio holds. `null` otherwise.
58073
+ */
58074
+ ad?: {
58075
+ platform?: 'googleads' | 'metaads';
58076
+ /**
58077
+ * Google Ads customer id (Google only).
58078
+ */
58079
+ customerId?: string;
58080
+ campaignId?: (string) | null;
58081
+ /**
58082
+ * Google only.
58083
+ */
58084
+ adGroupId?: (string) | null;
58085
+ /**
58086
+ * Meta only.
58087
+ */
58088
+ adSetId?: (string) | null;
58089
+ adId?: (string) | null;
58090
+ } | null;
58071
58091
  }>;
58072
58092
  /**
58073
58093
  * Pass as `cursor` to get the next page; `null` on the last page.