@zernio/node 0.2.103 → 0.2.105

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
@@ -1360,9 +1360,13 @@ type BusinessCenter = {
1360
1360
  */
1361
1361
  name?: string;
1362
1362
  /**
1363
- * Number of advertisers (ad accounts) reachable under this BC for the calling token
1363
+ * Number of advertisers reachable under this BC for the calling token.
1364
+ * `null` when the BC asset walk returned empty or failed (typical for
1365
+ * agency apps without full BC asset read scope) — distinct from `0`,
1366
+ * which would imply the BC genuinely has no advertisers.
1367
+ *
1364
1368
  */
1365
- advertiserCount?: number;
1369
+ advertiserCount?: (number) | null;
1366
1370
  };
1367
1371
  /**
1368
1372
  * A single conversion event to relay to the ad platform. All PII fields
@@ -12942,6 +12946,9 @@ type BoostPostData = {
12942
12946
  targeting?: {
12943
12947
  ageMin?: number;
12944
12948
  ageMax?: number;
12949
+ /**
12950
+ * ISO country codes. Required for TikTok boosts (TikTok's ad group requires location_ids); optional on other platforms.
12951
+ */
12945
12952
  countries?: Array<(string)>;
12946
12953
  /**
12947
12954
  * Interest objects from /v1/ads/interests. Each must include id and name.
@@ -13068,7 +13075,7 @@ type CreateStandaloneAdData = {
13068
13075
  */
13069
13076
  body?: string;
13070
13077
  /**
13071
- * Required on legacy + attach shapes. Meta only.
13078
+ * Required on legacy + attach shapes for Meta. Honoured on TikTok too — passes through to the Spark Ad creative's `call_to_action`. Ignored by other platforms.
13072
13079
  */
13073
13080
  callToAction?: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE';
13074
13081
  /**
package/dist/index.d.ts CHANGED
@@ -1360,9 +1360,13 @@ type BusinessCenter = {
1360
1360
  */
1361
1361
  name?: string;
1362
1362
  /**
1363
- * Number of advertisers (ad accounts) reachable under this BC for the calling token
1363
+ * Number of advertisers reachable under this BC for the calling token.
1364
+ * `null` when the BC asset walk returned empty or failed (typical for
1365
+ * agency apps without full BC asset read scope) — distinct from `0`,
1366
+ * which would imply the BC genuinely has no advertisers.
1367
+ *
1364
1368
  */
1365
- advertiserCount?: number;
1369
+ advertiserCount?: (number) | null;
1366
1370
  };
1367
1371
  /**
1368
1372
  * A single conversion event to relay to the ad platform. All PII fields
@@ -12942,6 +12946,9 @@ type BoostPostData = {
12942
12946
  targeting?: {
12943
12947
  ageMin?: number;
12944
12948
  ageMax?: number;
12949
+ /**
12950
+ * ISO country codes. Required for TikTok boosts (TikTok's ad group requires location_ids); optional on other platforms.
12951
+ */
12945
12952
  countries?: Array<(string)>;
12946
12953
  /**
12947
12954
  * Interest objects from /v1/ads/interests. Each must include id and name.
@@ -13068,7 +13075,7 @@ type CreateStandaloneAdData = {
13068
13075
  */
13069
13076
  body?: string;
13070
13077
  /**
13071
- * Required on legacy + attach shapes. Meta only.
13078
+ * Required on legacy + attach shapes for Meta. Honoured on TikTok too — passes through to the Spark Ad creative's `call_to_action`. Ignored by other platforms.
13072
13079
  */
13073
13080
  callToAction?: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE';
13074
13081
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.103",
3
+ "version": "0.2.105",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -781,9 +781,13 @@ export type BusinessCenter = {
781
781
  */
782
782
  name?: string;
783
783
  /**
784
- * Number of advertisers (ad accounts) reachable under this BC for the calling token
784
+ * Number of advertisers reachable under this BC for the calling token.
785
+ * `null` when the BC asset walk returned empty or failed (typical for
786
+ * agency apps without full BC asset read scope) — distinct from `0`,
787
+ * which would imply the BC genuinely has no advertisers.
788
+ *
785
789
  */
786
- advertiserCount?: number;
790
+ advertiserCount?: (number) | null;
787
791
  };
788
792
 
789
793
  /**
@@ -13273,6 +13277,9 @@ export type BoostPostData = {
13273
13277
  targeting?: {
13274
13278
  ageMin?: number;
13275
13279
  ageMax?: number;
13280
+ /**
13281
+ * ISO country codes. Required for TikTok boosts (TikTok's ad group requires location_ids); optional on other platforms.
13282
+ */
13276
13283
  countries?: Array<(string)>;
13277
13284
  /**
13278
13285
  * Interest objects from /v1/ads/interests. Each must include id and name.
@@ -13402,7 +13409,7 @@ export type CreateStandaloneAdData = {
13402
13409
  */
13403
13410
  body?: string;
13404
13411
  /**
13405
- * Required on legacy + attach shapes. Meta only.
13412
+ * Required on legacy + attach shapes for Meta. Honoured on TikTok too — passes through to the Spark Ad creative's `call_to_action`. Ignored by other platforms.
13406
13413
  */
13407
13414
  callToAction?: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE';
13408
13415
  /**