@zernio/node 0.2.1041 → 0.2.1043

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
@@ -11445,8 +11445,9 @@ type method2 = 'wordpress_widget';
11445
11445
  * resolved via `GET /v1/ads/targeting/search`. A spec is therefore meaningful only
11446
11446
  * for the platform it was built against, except the portable fields (`countries`,
11447
11447
  * `ageMin`/`ageMax`, `gender`, `incomeTier`, `languages`) which carry across
11448
- * platforms. Fields a platform cannot honour are rejected at create time with
11449
- * `INVALID_FIELD_VALUE` naming the offending field (not silently dropped).
11448
+ * platforms. Fields a platform cannot honour are rejected on create, boost and
11449
+ * targeting update with `INVALID_FIELD_VALUE` naming the offending field (never
11450
+ * silently dropped).
11450
11451
  *
11451
11452
  */
11452
11453
  type TargetingSpec = {
@@ -11586,7 +11587,7 @@ type TargetingSpec = {
11586
11587
  }>;
11587
11588
  };
11588
11589
  /**
11589
- * Minimum age. Applied on Meta, TikTok and Pinterest; ignored on Google, LinkedIn and X. Each platform clamps to its own range: Meta and Pinterest effectively cap at 65 (65 = 65+), TikTok maps up to 100. Pinterest has no under-18 bucket, so an ageMin below 18 starts at 18 there.
11590
+ * Minimum age. Applied on Meta, TikTok and Pinterest; rejected with 400 on Google, LinkedIn, X and OpenAI. Each platform clamps to its own range: Meta and Pinterest effectively cap at 65 (65 = 65+), TikTok maps up to 100. Pinterest has no under-18 bucket, so an ageMin below 18 starts at 18 there.
11590
11591
  */
11591
11592
  ageMin?: number;
11592
11593
  /**
@@ -11594,7 +11595,7 @@ type TargetingSpec = {
11594
11595
  */
11595
11596
  ageMax?: number;
11596
11597
  /**
11597
- * Restrict by gender. 'all' (default) targets everyone. Applied on Meta, TikTok and Pinterest. Ignored on Google, LinkedIn and X.
11598
+ * Restrict by gender. 'all' (default) targets everyone. Applied on Meta, TikTok and Pinterest; rejected with 400 on Google, LinkedIn, X and OpenAI.
11598
11599
  */
11599
11600
  gender?: 'all' | 'male' | 'female';
11600
11601
  /**
@@ -11607,11 +11608,11 @@ type TargetingSpec = {
11607
11608
  */
11608
11609
  incomeTier?: 'top_5' | 'top_10' | 'top_10_25' | 'top_25_50';
11609
11610
  /**
11610
- * Language codes restricting the audience by language. On Meta, ISO 639-1 codes (e.g. ['en']); a bare code targets all regional variants ("en" = all English), or use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
11611
+ * Language codes restricting the audience by language. Applied on Meta and Google; rejected with 400 on TikTok, LinkedIn, Pinterest, X and OpenAI. On Meta, ISO 639-1 codes (e.g. ['en']); a bare code targets all regional variants ("en" = all English), or use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
11611
11612
  */
11612
11613
  languages?: Array<(string)>;
11613
11614
  /**
11614
- * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id.
11615
+ * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. Rejected with 400 on Google (use Demand Gen audience userInterests there) and OpenAI.
11615
11616
  */
11616
11617
  interests?: Array<{
11617
11618
  id: string;
@@ -20336,8 +20337,11 @@ type ConnectAdsData = {
20336
20337
  /**
20337
20338
  * Existing SocialAccount ID. Required for `twitter` (X Ads). Optional for `tiktok`:
20338
20339
  * omit to enter ads-only mode (no TikTok posting account linked; ad creation uses
20339
- * a Brand Identity instead of a TT_USER). Ignored for same-token (`facebook`,
20340
- * `instagram`, `linkedin`, `pinterest`) and standalone (`googleads`) platforms.
20340
+ * a Brand Identity instead of a TT_USER). For same-token platforms (`facebook`,
20341
+ * `instagram`, `linkedin`, `pinterest`) it picks which posting account the ads
20342
+ * connection uses when the profile holds several of that platform; with one it can
20343
+ * be omitted, and an id that names no active account of the platform on the profile
20344
+ * is ignored. Ignored for standalone platforms (`googleads`).
20341
20345
  *
20342
20346
  */
20343
20347
  accountId?: string;
package/dist/index.d.ts CHANGED
@@ -11445,8 +11445,9 @@ type method2 = 'wordpress_widget';
11445
11445
  * resolved via `GET /v1/ads/targeting/search`. A spec is therefore meaningful only
11446
11446
  * for the platform it was built against, except the portable fields (`countries`,
11447
11447
  * `ageMin`/`ageMax`, `gender`, `incomeTier`, `languages`) which carry across
11448
- * platforms. Fields a platform cannot honour are rejected at create time with
11449
- * `INVALID_FIELD_VALUE` naming the offending field (not silently dropped).
11448
+ * platforms. Fields a platform cannot honour are rejected on create, boost and
11449
+ * targeting update with `INVALID_FIELD_VALUE` naming the offending field (never
11450
+ * silently dropped).
11450
11451
  *
11451
11452
  */
11452
11453
  type TargetingSpec = {
@@ -11586,7 +11587,7 @@ type TargetingSpec = {
11586
11587
  }>;
11587
11588
  };
11588
11589
  /**
11589
- * Minimum age. Applied on Meta, TikTok and Pinterest; ignored on Google, LinkedIn and X. Each platform clamps to its own range: Meta and Pinterest effectively cap at 65 (65 = 65+), TikTok maps up to 100. Pinterest has no under-18 bucket, so an ageMin below 18 starts at 18 there.
11590
+ * Minimum age. Applied on Meta, TikTok and Pinterest; rejected with 400 on Google, LinkedIn, X and OpenAI. Each platform clamps to its own range: Meta and Pinterest effectively cap at 65 (65 = 65+), TikTok maps up to 100. Pinterest has no under-18 bucket, so an ageMin below 18 starts at 18 there.
11590
11591
  */
11591
11592
  ageMin?: number;
11592
11593
  /**
@@ -11594,7 +11595,7 @@ type TargetingSpec = {
11594
11595
  */
11595
11596
  ageMax?: number;
11596
11597
  /**
11597
- * Restrict by gender. 'all' (default) targets everyone. Applied on Meta, TikTok and Pinterest. Ignored on Google, LinkedIn and X.
11598
+ * Restrict by gender. 'all' (default) targets everyone. Applied on Meta, TikTok and Pinterest; rejected with 400 on Google, LinkedIn, X and OpenAI.
11598
11599
  */
11599
11600
  gender?: 'all' | 'male' | 'female';
11600
11601
  /**
@@ -11607,11 +11608,11 @@ type TargetingSpec = {
11607
11608
  */
11608
11609
  incomeTier?: 'top_5' | 'top_10' | 'top_10_25' | 'top_25_50';
11609
11610
  /**
11610
- * Language codes restricting the audience by language. On Meta, ISO 639-1 codes (e.g. ['en']); a bare code targets all regional variants ("en" = all English), or use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
11611
+ * Language codes restricting the audience by language. Applied on Meta and Google; rejected with 400 on TikTok, LinkedIn, Pinterest, X and OpenAI. On Meta, ISO 639-1 codes (e.g. ['en']); a bare code targets all regional variants ("en" = all English), or use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
11611
11612
  */
11612
11613
  languages?: Array<(string)>;
11613
11614
  /**
11614
- * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id.
11615
+ * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. Rejected with 400 on Google (use Demand Gen audience userInterests there) and OpenAI.
11615
11616
  */
11616
11617
  interests?: Array<{
11617
11618
  id: string;
@@ -20336,8 +20337,11 @@ type ConnectAdsData = {
20336
20337
  /**
20337
20338
  * Existing SocialAccount ID. Required for `twitter` (X Ads). Optional for `tiktok`:
20338
20339
  * omit to enter ads-only mode (no TikTok posting account linked; ad creation uses
20339
- * a Brand Identity instead of a TT_USER). Ignored for same-token (`facebook`,
20340
- * `instagram`, `linkedin`, `pinterest`) and standalone (`googleads`) platforms.
20340
+ * a Brand Identity instead of a TT_USER). For same-token platforms (`facebook`,
20341
+ * `instagram`, `linkedin`, `pinterest`) it picks which posting account the ads
20342
+ * connection uses when the profile holds several of that platform; with one it can
20343
+ * be omitted, and an id that names no active account of the platform on the profile
20344
+ * is ignored. Ignored for standalone platforms (`googleads`).
20341
20345
  *
20342
20346
  */
20343
20347
  accountId?: string;
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.1041",
39
+ version: "0.2.1043",
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.1041",
8
+ version: "0.2.1043",
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.1041",
3
+ "version": "0.2.1043",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9923,8 +9923,9 @@ export type method2 = 'wordpress_widget';
9923
9923
  * resolved via `GET /v1/ads/targeting/search`. A spec is therefore meaningful only
9924
9924
  * for the platform it was built against, except the portable fields (`countries`,
9925
9925
  * `ageMin`/`ageMax`, `gender`, `incomeTier`, `languages`) which carry across
9926
- * platforms. Fields a platform cannot honour are rejected at create time with
9927
- * `INVALID_FIELD_VALUE` naming the offending field (not silently dropped).
9926
+ * platforms. Fields a platform cannot honour are rejected on create, boost and
9927
+ * targeting update with `INVALID_FIELD_VALUE` naming the offending field (never
9928
+ * silently dropped).
9928
9929
  *
9929
9930
  */
9930
9931
  export type TargetingSpec = {
@@ -10064,7 +10065,7 @@ export type TargetingSpec = {
10064
10065
  }>;
10065
10066
  };
10066
10067
  /**
10067
- * Minimum age. Applied on Meta, TikTok and Pinterest; ignored on Google, LinkedIn and X. Each platform clamps to its own range: Meta and Pinterest effectively cap at 65 (65 = 65+), TikTok maps up to 100. Pinterest has no under-18 bucket, so an ageMin below 18 starts at 18 there.
10068
+ * Minimum age. Applied on Meta, TikTok and Pinterest; rejected with 400 on Google, LinkedIn, X and OpenAI. Each platform clamps to its own range: Meta and Pinterest effectively cap at 65 (65 = 65+), TikTok maps up to 100. Pinterest has no under-18 bucket, so an ageMin below 18 starts at 18 there.
10068
10069
  */
10069
10070
  ageMin?: number;
10070
10071
  /**
@@ -10072,7 +10073,7 @@ export type TargetingSpec = {
10072
10073
  */
10073
10074
  ageMax?: number;
10074
10075
  /**
10075
- * Restrict by gender. 'all' (default) targets everyone. Applied on Meta, TikTok and Pinterest. Ignored on Google, LinkedIn and X.
10076
+ * Restrict by gender. 'all' (default) targets everyone. Applied on Meta, TikTok and Pinterest; rejected with 400 on Google, LinkedIn, X and OpenAI.
10076
10077
  */
10077
10078
  gender?: 'all' | 'male' | 'female';
10078
10079
  /**
@@ -10085,11 +10086,11 @@ export type TargetingSpec = {
10085
10086
  */
10086
10087
  incomeTier?: 'top_5' | 'top_10' | 'top_10_25' | 'top_25_50';
10087
10088
  /**
10088
- * Language codes restricting the audience by language. On Meta, ISO 639-1 codes (e.g. ['en']); a bare code targets all regional variants ("en" = all English), or use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
10089
+ * Language codes restricting the audience by language. Applied on Meta and Google; rejected with 400 on TikTok, LinkedIn, Pinterest, X and OpenAI. On Meta, ISO 639-1 codes (e.g. ['en']); a bare code targets all regional variants ("en" = all English), or use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
10089
10090
  */
10090
10091
  languages?: Array<(string)>;
10091
10092
  /**
10092
- * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id.
10093
+ * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. Rejected with 400 on Google (use Demand Gen audience userInterests there) and OpenAI.
10093
10094
  */
10094
10095
  interests?: Array<{
10095
10096
  id: string;
@@ -19270,8 +19271,11 @@ export type ConnectAdsData = {
19270
19271
  /**
19271
19272
  * Existing SocialAccount ID. Required for `twitter` (X Ads). Optional for `tiktok`:
19272
19273
  * omit to enter ads-only mode (no TikTok posting account linked; ad creation uses
19273
- * a Brand Identity instead of a TT_USER). Ignored for same-token (`facebook`,
19274
- * `instagram`, `linkedin`, `pinterest`) and standalone (`googleads`) platforms.
19274
+ * a Brand Identity instead of a TT_USER). For same-token platforms (`facebook`,
19275
+ * `instagram`, `linkedin`, `pinterest`) it picks which posting account the ads
19276
+ * connection uses when the profile holds several of that platform; with one it can
19277
+ * be omitted, and an id that names no active account of the platform on the profile
19278
+ * is ignored. Ignored for standalone platforms (`googleads`).
19275
19279
  *
19276
19280
  */
19277
19281
  accountId?: string;