@zernio/node 0.2.994 → 0.2.995
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +15 -3
- package/src/generated/types.gen.ts +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -10902,7 +10902,7 @@ type TargetingSpec = {
|
|
|
10902
10902
|
name?: string;
|
|
10903
10903
|
}>;
|
|
10904
10904
|
/**
|
|
10905
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta
|
|
10905
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta only (TikTok behaviours are rejected with a 400).
|
|
10906
10906
|
*/
|
|
10907
10907
|
behaviors?: Array<{
|
|
10908
10908
|
id: string;
|
|
@@ -44067,7 +44067,7 @@ type CreateStandaloneAdData = {
|
|
|
44067
44067
|
address?: string;
|
|
44068
44068
|
}>;
|
|
44069
44069
|
/**
|
|
44070
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta
|
|
44070
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta only (TikTok behaviours are rejected with a 400). Each must include id.
|
|
44071
44071
|
*/
|
|
44072
44072
|
behaviors?: Array<{
|
|
44073
44073
|
id: string;
|
|
@@ -45373,7 +45373,7 @@ type SearchAdTargetingData = {
|
|
|
45373
45373
|
*/
|
|
45374
45374
|
countryCode?: string;
|
|
45375
45375
|
/**
|
|
45376
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income
|
|
45376
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` is Meta only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
45377
45377
|
*/
|
|
45378
45378
|
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize';
|
|
45379
45379
|
/**
|
|
@@ -45401,7 +45401,7 @@ type SearchAdTargetingResponse = ({
|
|
|
45401
45401
|
*/
|
|
45402
45402
|
name: string;
|
|
45403
45403
|
/**
|
|
45404
|
-
* What the result is
|
|
45404
|
+
* What the result is. Equals the requested dimension (interest, behavior, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize), or the location level for geo (country, region, city, zip, metro, ...).
|
|
45405
45405
|
*/
|
|
45406
45406
|
type: string;
|
|
45407
45407
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10902,7 +10902,7 @@ type TargetingSpec = {
|
|
|
10902
10902
|
name?: string;
|
|
10903
10903
|
}>;
|
|
10904
10904
|
/**
|
|
10905
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta
|
|
10905
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta only (TikTok behaviours are rejected with a 400).
|
|
10906
10906
|
*/
|
|
10907
10907
|
behaviors?: Array<{
|
|
10908
10908
|
id: string;
|
|
@@ -44067,7 +44067,7 @@ type CreateStandaloneAdData = {
|
|
|
44067
44067
|
address?: string;
|
|
44068
44068
|
}>;
|
|
44069
44069
|
/**
|
|
44070
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta
|
|
44070
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta only (TikTok behaviours are rejected with a 400). Each must include id.
|
|
44071
44071
|
*/
|
|
44072
44072
|
behaviors?: Array<{
|
|
44073
44073
|
id: string;
|
|
@@ -45373,7 +45373,7 @@ type SearchAdTargetingData = {
|
|
|
45373
45373
|
*/
|
|
45374
45374
|
countryCode?: string;
|
|
45375
45375
|
/**
|
|
45376
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income
|
|
45376
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` is Meta only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
45377
45377
|
*/
|
|
45378
45378
|
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize';
|
|
45379
45379
|
/**
|
|
@@ -45401,7 +45401,7 @@ type SearchAdTargetingResponse = ({
|
|
|
45401
45401
|
*/
|
|
45402
45402
|
name: string;
|
|
45403
45403
|
/**
|
|
45404
|
-
* What the result is
|
|
45404
|
+
* What the result is. Equals the requested dimension (interest, behavior, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize), or the location level for geo (country, region, city, zip, metro, ...).
|
|
45405
45405
|
*/
|
|
45406
45406
|
type: string;
|
|
45407
45407
|
/**
|
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.995",
|
|
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.995",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -11981,15 +11981,27 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
11981
11981
|
*
|
|
11982
11982
|
* - `geo`: locations, further scoped by `geoType`
|
|
11983
11983
|
* - `interest`
|
|
11984
|
-
* - `behavior
|
|
11985
|
-
*
|
|
11984
|
+
* - `behavior`: Meta-only, matched by name against Meta's fixed behaviors catalog
|
|
11985
|
+
* (e.g. `Small business owners`, `Frequent Travelers`); ids feed `TargetingSpec.behaviors`
|
|
11986
|
+
* - `income`: the household-income tiers the platform can target (Meta, TikTok, Google).
|
|
11987
|
+
* The id is the normalized tier (`top_5`, `top_10`, `top_10_25`, `top_25_50`) to pass as
|
|
11988
|
+
* `TargetingSpec.incomeTier`, never a platform segment id. Meta's tiers are US-only
|
|
11989
|
+
* ZIP-code percentiles (label and `audienceSize` come live from Meta), TikTok expresses all
|
|
11990
|
+
* four and Google only `top_10`. `q` is matched against the label, so `top` or `income`
|
|
11991
|
+
* lists every tier
|
|
11986
11992
|
* - `language`: Google-only
|
|
11987
11993
|
* - `workPosition`, `workEmployer`, `workIndustry`: the Meta-only work demographics, whose
|
|
11988
11994
|
* ids feed `TargetingSpec.workPositions`/`workEmployers`/`workIndustries`
|
|
11989
11995
|
* - `industry`, `jobFunction`, `seniority`, `companySize`: the LinkedIn-only B2B facets, whose
|
|
11990
11996
|
* URNs feed `TargetingSpec.industries`/`jobFunctions`/`seniorities`/`companySizes`
|
|
11991
11997
|
*
|
|
11992
|
-
* Availability of each dimension varies by platform
|
|
11998
|
+
* Availability of each dimension varies by platform. A dimension a platform cannot search
|
|
11999
|
+
* returns a 400 naming `dimension`; it never falls back to another dimension, and every
|
|
12000
|
+
* result's `type` is the requested dimension (or the geo level for `geo`).
|
|
12001
|
+
*
|
|
12002
|
+
* TikTok `interest` searches TikTok's interest category catalog (about 700 categories over
|
|
12003
|
+
* four levels, `path` holds the parent categories), matched by name in Zernio. The ids are
|
|
12004
|
+
* what `TargetingSpec.interests` sends to TikTok as `interest_category_ids`.
|
|
11993
12005
|
* Work industries are a fixed ~30-entry Meta catalog with no server-side query,
|
|
11994
12006
|
* so `workIndustry` matching, ranking and `limit` happen in Zernio. `language`
|
|
11995
12007
|
* is likewise a fixed, checked-in table of Google's targetable
|
|
@@ -9425,7 +9425,7 @@ export type TargetingSpec = {
|
|
|
9425
9425
|
name?: string;
|
|
9426
9426
|
}>;
|
|
9427
9427
|
/**
|
|
9428
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta
|
|
9428
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta only (TikTok behaviours are rejected with a 400).
|
|
9429
9429
|
*/
|
|
9430
9430
|
behaviors?: Array<{
|
|
9431
9431
|
id: string;
|
|
@@ -44815,7 +44815,7 @@ export type CreateStandaloneAdData = {
|
|
|
44815
44815
|
address?: string;
|
|
44816
44816
|
}>;
|
|
44817
44817
|
/**
|
|
44818
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta
|
|
44818
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior. Supported on Meta only (TikTok behaviours are rejected with a 400). Each must include id.
|
|
44819
44819
|
*/
|
|
44820
44820
|
behaviors?: Array<{
|
|
44821
44821
|
id: string;
|
|
@@ -46166,7 +46166,7 @@ export type SearchAdTargetingData = {
|
|
|
46166
46166
|
*/
|
|
46167
46167
|
countryCode?: string;
|
|
46168
46168
|
/**
|
|
46169
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income
|
|
46169
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` is Meta only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
46170
46170
|
*/
|
|
46171
46171
|
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize';
|
|
46172
46172
|
/**
|
|
@@ -46195,7 +46195,7 @@ export type SearchAdTargetingResponse = ({
|
|
|
46195
46195
|
*/
|
|
46196
46196
|
name: string;
|
|
46197
46197
|
/**
|
|
46198
|
-
* What the result is
|
|
46198
|
+
* What the result is. Equals the requested dimension (interest, behavior, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize), or the location level for geo (country, region, city, zip, metro, ...).
|
|
46199
46199
|
*/
|
|
46200
46200
|
type: string;
|
|
46201
46201
|
/**
|