@zernio/node 0.2.1065 → 0.2.1066

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
@@ -39458,6 +39458,14 @@ type ListAdSetsResponse = ({
39458
39458
  * Only with `live=true`. When `platformAdSetStatus` was read from the platform; null when this row was not read live.
39459
39459
  */
39460
39460
  statusReadAt?: (string) | null;
39461
+ /**
39462
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `optimization_goal` exactly as TikTok's adgroup/get returns it now (for example ENGAGED_VIEW, ENGAGED_VIEW_FIFTEEN, CLICK, CONVERT). Absent on rows not read live and on other platforms.
39463
+ */
39464
+ optimizationGoal?: (string) | null;
39465
+ /**
39466
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
39467
+ */
39468
+ billingEvent?: (string) | null;
39461
39469
  }>;
39462
39470
  });
39463
39471
  type ListAdSetsError = (ErrorResponse | unknown);
package/dist/index.d.ts CHANGED
@@ -39458,6 +39458,14 @@ type ListAdSetsResponse = ({
39458
39458
  * Only with `live=true`. When `platformAdSetStatus` was read from the platform; null when this row was not read live.
39459
39459
  */
39460
39460
  statusReadAt?: (string) | null;
39461
+ /**
39462
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `optimization_goal` exactly as TikTok's adgroup/get returns it now (for example ENGAGED_VIEW, ENGAGED_VIEW_FIFTEEN, CLICK, CONVERT). Absent on rows not read live and on other platforms.
39463
+ */
39464
+ optimizationGoal?: (string) | null;
39465
+ /**
39466
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
39467
+ */
39468
+ billingEvent?: (string) | null;
39461
39469
  }>;
39462
39470
  });
39463
39471
  type ListAdSetsError = (ErrorResponse | unknown);
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: "@zernio/node",
39
- version: "0.2.1065",
39
+ version: "0.2.1066",
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: "@zernio/node",
8
- version: "0.2.1065",
8
+ version: "0.2.1066",
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": "@zernio/node",
3
- "version": "0.2.1065",
3
+ "version": "0.2.1066",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9775,7 +9775,9 @@ export const updateCampaignTargeting = <ThrowOnError extends boolean = false>(op
9775
9775
  * With `live=true` (which needs a `campaignId` or `adSetId` filter) each listed ad set's own
9776
9776
  * switch (`platformAdSetStatus`) is read live, for the first 20 rows; later rows keep their
9777
9777
  * synced value with `statusReadAt: null`. Live reads cover TikTok, Meta, Google and OpenAI.
9778
- * The rolled-up `status` is not re-derived by a live read.
9778
+ * The rolled-up `status` is not re-derived by a live read. On TikTok the same live read also
9779
+ * returns the ad group's applied `optimizationGoal` and `billingEvent`, as TikTok's adgroup/get
9780
+ * reports them, so you can verify the goal TikTok applied rather than the one you requested.
9779
9781
  */
9780
9782
  export const listAdSets = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListAdSetsData, ThrowOnError>) => {
9781
9783
  return (options?.client ?? client).get<ListAdSetsResponse, ListAdSetsError, ThrowOnError>({
@@ -39852,6 +39852,14 @@ export type ListAdSetsResponse = ({
39852
39852
  * Only with `live=true`. When `platformAdSetStatus` was read from the platform; null when this row was not read live.
39853
39853
  */
39854
39854
  statusReadAt?: (string) | null;
39855
+ /**
39856
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `optimization_goal` exactly as TikTok's adgroup/get returns it now (for example ENGAGED_VIEW, ENGAGED_VIEW_FIFTEEN, CLICK, CONVERT). Absent on rows not read live and on other platforms.
39857
+ */
39858
+ optimizationGoal?: (string) | null;
39859
+ /**
39860
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
39861
+ */
39862
+ billingEvent?: (string) | null;
39855
39863
  }>;
39856
39864
  });
39857
39865