@zernio/node 0.2.1041 → 0.2.1042
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 +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +7 -6
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
|
|
11449
|
-
* `INVALID_FIELD_VALUE` naming the offending field (
|
|
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;
|
|
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
|
|
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;
|
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
|
|
11449
|
-
* `INVALID_FIELD_VALUE` naming the offending field (
|
|
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;
|
|
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
|
|
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;
|
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.
|
|
39
|
+
version: "0.2.1042",
|
|
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.
|
|
8
|
+
version: "0.2.1042",
|
|
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
|
@@ -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
|
|
9927
|
-
* `INVALID_FIELD_VALUE` naming the offending field (
|
|
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;
|
|
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
|
|
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;
|