@zernio/node 0.2.780 → 0.2.782

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
@@ -32714,7 +32714,7 @@ type CreateAdCampaignData = {
32714
32714
  isSkadnetworkAttribution?: boolean;
32715
32715
  promotedObject?: AdPromotedObject;
32716
32716
  /**
32717
- * Meta only. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. SKAdNetwork app promotion requires AUCTION.
32717
+ * Meta only. OMIT on non-Meta platforms (Google Ads, etc.): any value is rejected with a 400. On Meta the server applies AUCTION when omitted, so it does not need to be sent; RESERVED = Reach & Frequency. SKAdNetwork app promotion requires AUCTION.
32718
32718
  */
32719
32719
  buyingType?: 'AUCTION' | 'RESERVED';
32720
32720
  /**
@@ -37190,9 +37190,13 @@ type BoostPostData = {
37190
37190
  /**
37191
37191
  * TikTok-only on this endpoint. The pixel a Website Conversion ad group
37192
37192
  * optimizes toward, so a Spark Ad built from an existing organic post can
37193
- * optimize for a conversion instead of only engagement or traffic. Required
37194
- * when `goal` is `conversions`; ignored on every other goal, because only a
37195
- * WEB_CONVERSIONS ad group accepts these fields.
37193
+ * optimize for a conversion instead of only engagement or traffic.
37194
+ *
37195
+ * Required when `goal` is `conversions`, and BOTH fields are required:
37196
+ * TikTok refuses a conversion ad group with no pixel ("Please select a
37197
+ * pixel") and equally one that has a pixel but no event ("Select a pixel
37198
+ * event."), because the event is what the ad group optimizes toward. Ignored
37199
+ * on every other goal, since only a WEB_CONVERSIONS ad group accepts them.
37196
37200
  *
37197
37201
  * Combine freely with `platformPostId` + `sparkAuthCode`: the pixel lives on
37198
37202
  * the ad group and the Spark item on the creative, so they never conflict.
@@ -37202,11 +37206,11 @@ type BoostPostData = {
37202
37206
  /**
37203
37207
  * TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you.
37204
37208
  */
37205
- pixelId?: string;
37209
+ pixelId: string;
37206
37210
  /**
37207
- * Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. Omit to let TikTok optimize for the ad group default.
37211
+ * Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. The event must already exist on that pixel, or TikTok rejects the ad group.
37208
37212
  */
37209
- customEventType?: string;
37213
+ customEventType: string;
37210
37214
  };
37211
37215
  /**
37212
37216
  * Legal entity that benefits from the ad. Required when targeting EU users
package/dist/index.d.ts CHANGED
@@ -32714,7 +32714,7 @@ type CreateAdCampaignData = {
32714
32714
  isSkadnetworkAttribution?: boolean;
32715
32715
  promotedObject?: AdPromotedObject;
32716
32716
  /**
32717
- * Meta only. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. SKAdNetwork app promotion requires AUCTION.
32717
+ * Meta only. OMIT on non-Meta platforms (Google Ads, etc.): any value is rejected with a 400. On Meta the server applies AUCTION when omitted, so it does not need to be sent; RESERVED = Reach & Frequency. SKAdNetwork app promotion requires AUCTION.
32718
32718
  */
32719
32719
  buyingType?: 'AUCTION' | 'RESERVED';
32720
32720
  /**
@@ -37190,9 +37190,13 @@ type BoostPostData = {
37190
37190
  /**
37191
37191
  * TikTok-only on this endpoint. The pixel a Website Conversion ad group
37192
37192
  * optimizes toward, so a Spark Ad built from an existing organic post can
37193
- * optimize for a conversion instead of only engagement or traffic. Required
37194
- * when `goal` is `conversions`; ignored on every other goal, because only a
37195
- * WEB_CONVERSIONS ad group accepts these fields.
37193
+ * optimize for a conversion instead of only engagement or traffic.
37194
+ *
37195
+ * Required when `goal` is `conversions`, and BOTH fields are required:
37196
+ * TikTok refuses a conversion ad group with no pixel ("Please select a
37197
+ * pixel") and equally one that has a pixel but no event ("Select a pixel
37198
+ * event."), because the event is what the ad group optimizes toward. Ignored
37199
+ * on every other goal, since only a WEB_CONVERSIONS ad group accepts them.
37196
37200
  *
37197
37201
  * Combine freely with `platformPostId` + `sparkAuthCode`: the pixel lives on
37198
37202
  * the ad group and the Spark item on the creative, so they never conflict.
@@ -37202,11 +37206,11 @@ type BoostPostData = {
37202
37206
  /**
37203
37207
  * TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you.
37204
37208
  */
37205
- pixelId?: string;
37209
+ pixelId: string;
37206
37210
  /**
37207
- * Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. Omit to let TikTok optimize for the ad group default.
37211
+ * Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. The event must already exist on that pixel, or TikTok rejects the ad group.
37208
37212
  */
37209
- customEventType?: string;
37213
+ customEventType: string;
37210
37214
  };
37211
37215
  /**
37212
37216
  * Legal entity that benefits from the ad. Required when targeting EU users
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.780",
39
+ version: "0.2.782",
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.780",
8
+ version: "0.2.782",
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.780",
3
+ "version": "0.2.782",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4227,7 +4227,7 @@ export const replyToInboxPost = <ThrowOnError extends boolean = false>(options:
4227
4227
 
4228
4228
  /**
4229
4229
  * Delete comment
4230
- * Delete a comment on a post. Supported by Facebook, Instagram, Bluesky, Reddit, YouTube, and LinkedIn.
4230
+ * Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only).
4231
4231
  * Requires accountId and commentId query parameters.
4232
4232
  *
4233
4233
  */
@@ -33031,7 +33031,7 @@ export type CreateAdCampaignData = {
33031
33031
  isSkadnetworkAttribution?: boolean;
33032
33032
  promotedObject?: AdPromotedObject;
33033
33033
  /**
33034
- * Meta only. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. SKAdNetwork app promotion requires AUCTION.
33034
+ * Meta only. OMIT on non-Meta platforms (Google Ads, etc.): any value is rejected with a 400. On Meta the server applies AUCTION when omitted, so it does not need to be sent; RESERVED = Reach & Frequency. SKAdNetwork app promotion requires AUCTION.
33035
33035
  */
33036
33036
  buyingType?: 'AUCTION' | 'RESERVED';
33037
33037
  /**
@@ -37813,9 +37813,13 @@ export type BoostPostData = {
37813
37813
  /**
37814
37814
  * TikTok-only on this endpoint. The pixel a Website Conversion ad group
37815
37815
  * optimizes toward, so a Spark Ad built from an existing organic post can
37816
- * optimize for a conversion instead of only engagement or traffic. Required
37817
- * when `goal` is `conversions`; ignored on every other goal, because only a
37818
- * WEB_CONVERSIONS ad group accepts these fields.
37816
+ * optimize for a conversion instead of only engagement or traffic.
37817
+ *
37818
+ * Required when `goal` is `conversions`, and BOTH fields are required:
37819
+ * TikTok refuses a conversion ad group with no pixel ("Please select a
37820
+ * pixel") and equally one that has a pixel but no event ("Select a pixel
37821
+ * event."), because the event is what the ad group optimizes toward. Ignored
37822
+ * on every other goal, since only a WEB_CONVERSIONS ad group accepts them.
37819
37823
  *
37820
37824
  * Combine freely with `platformPostId` + `sparkAuthCode`: the pixel lives on
37821
37825
  * the ad group and the Spark item on the creative, so they never conflict.
@@ -37825,11 +37829,11 @@ export type BoostPostData = {
37825
37829
  /**
37826
37830
  * TikTok Pixel. Either the numeric pixel id or the alphanumeric pixel code from Events Manager, which is resolved for you.
37827
37831
  */
37828
- pixelId?: string;
37832
+ pixelId: string;
37829
37833
  /**
37830
- * Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. Omit to let TikTok optimize for the ad group default.
37834
+ * Optimization event, as a TikTok optimization_event code (e.g. ON_WEB_ORDER, SHOPPING, FORM) or the exact event name shown in Events Manager, which is resolved to its code. The event must already exist on that pixel, or TikTok rejects the ad group.
37831
37835
  */
37832
- customEventType?: string;
37836
+ customEventType: string;
37833
37837
  };
37834
37838
  /**
37835
37839
  * Legal entity that benefits from the ad. Required when targeting EU users