@getlatedev/node 0.2.1376 → 0.2.1377
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 +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +24 -2
package/dist/index.d.mts
CHANGED
|
@@ -57935,9 +57935,31 @@ type EstimateAdReachData = {
|
|
|
57935
57935
|
*/
|
|
57936
57936
|
adAccountId: string;
|
|
57937
57937
|
/**
|
|
57938
|
-
* The targeting spec to estimate. Same shape used by POST /v1/ads/create.
|
|
57938
|
+
* The targeting spec to estimate. Same shape used by POST /v1/ads/create. Required unless `rawTargeting` is sent; with `rawTargeting` it can be omitted or minimal.
|
|
57939
57939
|
*/
|
|
57940
|
-
spec
|
|
57940
|
+
spec?: (TargetingSpec);
|
|
57941
|
+
/**
|
|
57942
|
+
* Meta only. A Meta-native targeting spec (snake_case: `geo_locations`, `age_min`,
|
|
57943
|
+
* `flexible_spec`, `excluded_custom_audiences`, `user_os`, ...), the same field
|
|
57944
|
+
* `POST /v1/ads/create` accepts, so the estimate covers the exact audience the ad
|
|
57945
|
+
* set will use. For layered targeting, send `flexible_spec` here: entries AND
|
|
57946
|
+
* together, ids inside one entry OR.
|
|
57947
|
+
*
|
|
57948
|
+
* It uses the same merge rules as `POST /v1/ads/create`: rawTargeting is the BASE
|
|
57949
|
+
* layer and `spec`, converted to Meta's wire shape, is merged on top key by key,
|
|
57950
|
+
* with `spec` winning on collision. The merge goes one level deep inside
|
|
57951
|
+
* `geo_locations` and `excluded_geo_locations` (spec sub-keys win, raw-only
|
|
57952
|
+
* sub-keys such as `location_types` survive). Array values (`flexible_spec`, ...)
|
|
57953
|
+
* are replaced as a whole key when `spec` builds them, never element-merged, so
|
|
57954
|
+
* `spec.interests` or `spec.behaviors` replace a raw `flexible_spec`. The result is
|
|
57955
|
+
* sent to Meta `delivery_estimate` as `targeting_spec`.
|
|
57956
|
+
*
|
|
57957
|
+
* Sending it for an account on another platform returns 400 naming `rawTargeting`.
|
|
57958
|
+
*
|
|
57959
|
+
*/
|
|
57960
|
+
rawTargeting?: {
|
|
57961
|
+
[key: string]: unknown;
|
|
57962
|
+
};
|
|
57941
57963
|
/**
|
|
57942
57964
|
* Optional. The optimization goal the estimate should assume (platform's
|
|
57943
57965
|
* own vocabulary, e.g. Meta `REACH`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`).
|
package/dist/index.d.ts
CHANGED
|
@@ -57935,9 +57935,31 @@ type EstimateAdReachData = {
|
|
|
57935
57935
|
*/
|
|
57936
57936
|
adAccountId: string;
|
|
57937
57937
|
/**
|
|
57938
|
-
* The targeting spec to estimate. Same shape used by POST /v1/ads/create.
|
|
57938
|
+
* The targeting spec to estimate. Same shape used by POST /v1/ads/create. Required unless `rawTargeting` is sent; with `rawTargeting` it can be omitted or minimal.
|
|
57939
57939
|
*/
|
|
57940
|
-
spec
|
|
57940
|
+
spec?: (TargetingSpec);
|
|
57941
|
+
/**
|
|
57942
|
+
* Meta only. A Meta-native targeting spec (snake_case: `geo_locations`, `age_min`,
|
|
57943
|
+
* `flexible_spec`, `excluded_custom_audiences`, `user_os`, ...), the same field
|
|
57944
|
+
* `POST /v1/ads/create` accepts, so the estimate covers the exact audience the ad
|
|
57945
|
+
* set will use. For layered targeting, send `flexible_spec` here: entries AND
|
|
57946
|
+
* together, ids inside one entry OR.
|
|
57947
|
+
*
|
|
57948
|
+
* It uses the same merge rules as `POST /v1/ads/create`: rawTargeting is the BASE
|
|
57949
|
+
* layer and `spec`, converted to Meta's wire shape, is merged on top key by key,
|
|
57950
|
+
* with `spec` winning on collision. The merge goes one level deep inside
|
|
57951
|
+
* `geo_locations` and `excluded_geo_locations` (spec sub-keys win, raw-only
|
|
57952
|
+
* sub-keys such as `location_types` survive). Array values (`flexible_spec`, ...)
|
|
57953
|
+
* are replaced as a whole key when `spec` builds them, never element-merged, so
|
|
57954
|
+
* `spec.interests` or `spec.behaviors` replace a raw `flexible_spec`. The result is
|
|
57955
|
+
* sent to Meta `delivery_estimate` as `targeting_spec`.
|
|
57956
|
+
*
|
|
57957
|
+
* Sending it for an account on another platform returns 400 naming `rawTargeting`.
|
|
57958
|
+
*
|
|
57959
|
+
*/
|
|
57960
|
+
rawTargeting?: {
|
|
57961
|
+
[key: string]: unknown;
|
|
57962
|
+
};
|
|
57941
57963
|
/**
|
|
57942
57964
|
* Optional. The optimization goal the estimate should assume (platform's
|
|
57943
57965
|
* own vocabulary, e.g. Meta `REACH`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`).
|
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.1377",
|
|
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.1377",
|
|
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
|
@@ -59162,9 +59162,31 @@ export type EstimateAdReachData = {
|
|
|
59162
59162
|
*/
|
|
59163
59163
|
adAccountId: string;
|
|
59164
59164
|
/**
|
|
59165
|
-
* The targeting spec to estimate. Same shape used by POST /v1/ads/create.
|
|
59165
|
+
* The targeting spec to estimate. Same shape used by POST /v1/ads/create. Required unless `rawTargeting` is sent; with `rawTargeting` it can be omitted or minimal.
|
|
59166
59166
|
*/
|
|
59167
|
-
spec
|
|
59167
|
+
spec?: (TargetingSpec);
|
|
59168
|
+
/**
|
|
59169
|
+
* Meta only. A Meta-native targeting spec (snake_case: `geo_locations`, `age_min`,
|
|
59170
|
+
* `flexible_spec`, `excluded_custom_audiences`, `user_os`, ...), the same field
|
|
59171
|
+
* `POST /v1/ads/create` accepts, so the estimate covers the exact audience the ad
|
|
59172
|
+
* set will use. For layered targeting, send `flexible_spec` here: entries AND
|
|
59173
|
+
* together, ids inside one entry OR.
|
|
59174
|
+
*
|
|
59175
|
+
* It uses the same merge rules as `POST /v1/ads/create`: rawTargeting is the BASE
|
|
59176
|
+
* layer and `spec`, converted to Meta's wire shape, is merged on top key by key,
|
|
59177
|
+
* with `spec` winning on collision. The merge goes one level deep inside
|
|
59178
|
+
* `geo_locations` and `excluded_geo_locations` (spec sub-keys win, raw-only
|
|
59179
|
+
* sub-keys such as `location_types` survive). Array values (`flexible_spec`, ...)
|
|
59180
|
+
* are replaced as a whole key when `spec` builds them, never element-merged, so
|
|
59181
|
+
* `spec.interests` or `spec.behaviors` replace a raw `flexible_spec`. The result is
|
|
59182
|
+
* sent to Meta `delivery_estimate` as `targeting_spec`.
|
|
59183
|
+
*
|
|
59184
|
+
* Sending it for an account on another platform returns 400 naming `rawTargeting`.
|
|
59185
|
+
*
|
|
59186
|
+
*/
|
|
59187
|
+
rawTargeting?: {
|
|
59188
|
+
[key: string]: unknown;
|
|
59189
|
+
};
|
|
59168
59190
|
/**
|
|
59169
59191
|
* Optional. The optimization goal the estimate should assume (platform's
|
|
59170
59192
|
* own vocabulary, e.g. Meta `REACH`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`).
|