@getlatedev/node 0.2.1293 → 0.2.1294
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -3
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -51607,7 +51607,7 @@ type SearchAdTargetingData = {
|
|
|
51607
51607
|
*/
|
|
51608
51608
|
limit?: number;
|
|
51609
51609
|
/**
|
|
51610
|
-
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `
|
|
51610
|
+
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior`, `workIndustry` and `interestSuggestion` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
|
|
51611
51611
|
*/
|
|
51612
51612
|
locale?: string;
|
|
51613
51613
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -51607,7 +51607,7 @@ type SearchAdTargetingData = {
|
|
|
51607
51607
|
*/
|
|
51608
51608
|
limit?: number;
|
|
51609
51609
|
/**
|
|
51610
|
-
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `
|
|
51610
|
+
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior`, `workIndustry` and `interestSuggestion` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
|
|
51611
51611
|
*/
|
|
51612
51612
|
locale?: string;
|
|
51613
51613
|
/**
|
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1294",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1294",
|
|
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
|
@@ -13726,8 +13726,10 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13726
13726
|
* comma-separated (`NBA,Michael Jordan`) or, for names that contain a comma, a JSON array of
|
|
13727
13727
|
* strings (`["Earth, Wind & Fire","Yoga"]`, URL-encoded). A `q` starting with `[` is always read as
|
|
13728
13728
|
* JSON. A `q` with no name or malformed JSON returns 400 naming `q`. Meta also suggests behaviors
|
|
13729
|
-
* and demographics; Zernio keeps only interests
|
|
13730
|
-
*
|
|
13729
|
+
* and demographics; Zernio keeps only interests, so every id goes in `TargetingSpec.interests`, like
|
|
13730
|
+
* `interest` results. Zernio classifies them with a Meta call pinned to `en_US` (ids whose `path`
|
|
13731
|
+
* starts with `Interests`). Without `locale` results are in English; with another `locale`, a second
|
|
13732
|
+
* call in that locale returns the same interests with localized names and `path`. Zernio asks Meta for three
|
|
13731
13733
|
* times `limit` (at most 100) before filtering, so fewer than `limit` results can come back. Meta
|
|
13732
13734
|
* weights the first name heavily: a multi-name `q` mostly returns suggestions for the first one
|
|
13733
13735
|
* - `behavior`: Meta, TikTok and LinkedIn, matched by name; ids feed `TargetingSpec.behaviors`.
|
|
@@ -13856,7 +13858,7 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13856
13858
|
*
|
|
13857
13859
|
* Meta language: Meta matches `q` against names in one language and returns names and `path` in
|
|
13858
13860
|
* that language. Pass `locale` (e.g. `pl_PL`) to choose it. Without `locale`, the `behavior` and
|
|
13859
|
-
* `workIndustry` catalogs are in `en_US`, and `interest`, `
|
|
13861
|
+
* `workIndustry` catalogs and `interestSuggestion` are in `en_US`, and `interest`, `geo`, `workPosition`
|
|
13860
13862
|
* and `workEmployer` follow the language of the Facebook user who connected the account (so a
|
|
13861
13863
|
* Russian-language Facebook user gets Russian paths, and Polish names need `locale=pl_PL`).
|
|
13862
13864
|
* A non-English `behavior` or `workIndustry` query without `locale` never matches, so pass the
|
|
@@ -52554,7 +52554,7 @@ export type SearchAdTargetingData = {
|
|
|
52554
52554
|
*/
|
|
52555
52555
|
limit?: number;
|
|
52556
52556
|
/**
|
|
52557
|
-
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `
|
|
52557
|
+
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior`, `workIndustry` and `interestSuggestion` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
|
|
52558
52558
|
*/
|
|
52559
52559
|
locale?: string;
|
|
52560
52560
|
/**
|