@getlatedev/node 0.2.1342 → 0.2.1344
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 +30 -8
- package/dist/index.d.ts +30 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +30 -8
package/dist/index.d.mts
CHANGED
|
@@ -8491,6 +8491,16 @@ type ErrorResponse = {
|
|
|
8491
8491
|
* unrelated code (e.g. 1487194 on the creative), so branch on `code`, not on
|
|
8492
8492
|
* `platformError`.
|
|
8493
8493
|
*
|
|
8494
|
+
* When Meta refuses a write because the Facebook user behind the connection's token
|
|
8495
|
+
* lacks the Advertise permission on the ad account (Meta subcode 2490585, 2490591 or 4841020 on
|
|
8496
|
+
* the write, or a code 200 refusal such as 1487194 whose cleanup deletes Meta refused
|
|
8497
|
+
* with 2490591 or 4841020), any Meta ads write answers 403 `insufficient_permissions`.
|
|
8498
|
+
* Meta may still accept the campaign and ad set and refuse only the ad. The message
|
|
8499
|
+
* names the ad account, asks for the Advertise or Manage permission on it (or a token
|
|
8500
|
+
* granted `ads_management`, by reconnecting), lists the objects left behind and ends
|
|
8501
|
+
* with Meta's `error_user_title`, `error_user_msg` and subcode; the raw error stays in
|
|
8502
|
+
* `platformError`.
|
|
8503
|
+
*
|
|
8494
8504
|
*/
|
|
8495
8505
|
details?: {
|
|
8496
8506
|
/**
|
|
@@ -50998,10 +51008,20 @@ type BoostPostData = {
|
|
|
50998
51008
|
* with the objective Meta derives from `goal`, not with the objective used
|
|
50999
51009
|
* by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
|
|
51000
51010
|
* "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
|
|
51001
|
-
* `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values
|
|
51002
|
-
*
|
|
51003
|
-
* `OUTCOME_ENGAGEMENT
|
|
51004
|
-
*
|
|
51011
|
+
* `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values.
|
|
51012
|
+
* `POST_ENGAGEMENT` with `goal: engagement` opts the boost into objective
|
|
51013
|
+
* `OUTCOME_ENGAGEMENT` with `destination_type` `ON_POST`, exactly as
|
|
51014
|
+
* `metaObjective: OUTCOME_ENGAGEMENT` does (sending both is the same request).
|
|
51015
|
+
* `POST_ENGAGEMENT` returns 400 with any other `goal`, with `leadGenFormId`, or
|
|
51016
|
+
* with a `CALL_NOW` or messaging `callToAction`. With `adSetId` the ad joins an
|
|
51017
|
+
* existing ad set and `optimizationGoal` is not read. Under
|
|
51018
|
+
* `OUTCOME_ENGAGEMENT` the ad runs on the post itself, so `destinationType`
|
|
51019
|
+
* is a 400 (messaging CTAs excepted) and `optimizationGoal` must be
|
|
51020
|
+
* `POST_ENGAGEMENT` or `REACH`; anything else is a 400 (Meta no longer
|
|
51021
|
+
* offers `IMPRESSIONS` there, while a plain engagement boost on
|
|
51022
|
+
* `OUTCOME_AWARENESS` still accepts it). The created ad reports the objective
|
|
51023
|
+
* and optimization goal Meta runs it with in `platformObjective` and
|
|
51024
|
+
* `optimizationGoal` (on `adSetId`, those of the existing ad set).
|
|
51005
51025
|
*
|
|
51006
51026
|
*/
|
|
51007
51027
|
optimizationGoal?: string;
|
|
@@ -51009,10 +51029,12 @@ type BoostPostData = {
|
|
|
51009
51029
|
* Meta only, with `goal: engagement` and without `adSetId` (400 otherwise).
|
|
51010
51030
|
* `OUTCOME_ENGAGEMENT` creates the campaign with objective `OUTCOME_ENGAGEMENT`
|
|
51011
51031
|
* and the ad set with `optimization_goal` `POST_ENGAGEMENT` (unless
|
|
51012
|
-
* `optimizationGoal` is set) and `destination_type` `ON_POST
|
|
51013
|
-
*
|
|
51014
|
-
*
|
|
51015
|
-
*
|
|
51032
|
+
* `optimizationGoal` is set) and `destination_type` `ON_POST`, the shape Ads
|
|
51033
|
+
* Manager uses to boost an existing post. `optimizationGoal: POST_ENGAGEMENT`
|
|
51034
|
+
* selects the same objective, so the two may be sent together. `destinationType`
|
|
51035
|
+
* returns 400 (messaging CTAs excepted) and `optimizationGoal` must be
|
|
51036
|
+
* `POST_ENGAGEMENT` or `REACH` (400 otherwise). When both are
|
|
51037
|
+
* omitted, an engagement boost keeps `OUTCOME_AWARENESS` with `REACH`. Returns 400 with `leadGenFormId` or with a `callToAction` whose objective
|
|
51016
51038
|
* is not `OUTCOME_ENGAGEMENT` (`CALL_NOW`); messaging CTAs keep their own
|
|
51017
51039
|
* `CONVERSATIONS` ad set. Verified against Meta on Facebook posts; Instagram posts
|
|
51018
51040
|
* are accepted but not yet verified.
|
package/dist/index.d.ts
CHANGED
|
@@ -8491,6 +8491,16 @@ type ErrorResponse = {
|
|
|
8491
8491
|
* unrelated code (e.g. 1487194 on the creative), so branch on `code`, not on
|
|
8492
8492
|
* `platformError`.
|
|
8493
8493
|
*
|
|
8494
|
+
* When Meta refuses a write because the Facebook user behind the connection's token
|
|
8495
|
+
* lacks the Advertise permission on the ad account (Meta subcode 2490585, 2490591 or 4841020 on
|
|
8496
|
+
* the write, or a code 200 refusal such as 1487194 whose cleanup deletes Meta refused
|
|
8497
|
+
* with 2490591 or 4841020), any Meta ads write answers 403 `insufficient_permissions`.
|
|
8498
|
+
* Meta may still accept the campaign and ad set and refuse only the ad. The message
|
|
8499
|
+
* names the ad account, asks for the Advertise or Manage permission on it (or a token
|
|
8500
|
+
* granted `ads_management`, by reconnecting), lists the objects left behind and ends
|
|
8501
|
+
* with Meta's `error_user_title`, `error_user_msg` and subcode; the raw error stays in
|
|
8502
|
+
* `platformError`.
|
|
8503
|
+
*
|
|
8494
8504
|
*/
|
|
8495
8505
|
details?: {
|
|
8496
8506
|
/**
|
|
@@ -50998,10 +51008,20 @@ type BoostPostData = {
|
|
|
50998
51008
|
* with the objective Meta derives from `goal`, not with the objective used
|
|
50999
51009
|
* by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
|
|
51000
51010
|
* "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
|
|
51001
|
-
* `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values
|
|
51002
|
-
*
|
|
51003
|
-
* `OUTCOME_ENGAGEMENT
|
|
51004
|
-
*
|
|
51011
|
+
* `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values.
|
|
51012
|
+
* `POST_ENGAGEMENT` with `goal: engagement` opts the boost into objective
|
|
51013
|
+
* `OUTCOME_ENGAGEMENT` with `destination_type` `ON_POST`, exactly as
|
|
51014
|
+
* `metaObjective: OUTCOME_ENGAGEMENT` does (sending both is the same request).
|
|
51015
|
+
* `POST_ENGAGEMENT` returns 400 with any other `goal`, with `leadGenFormId`, or
|
|
51016
|
+
* with a `CALL_NOW` or messaging `callToAction`. With `adSetId` the ad joins an
|
|
51017
|
+
* existing ad set and `optimizationGoal` is not read. Under
|
|
51018
|
+
* `OUTCOME_ENGAGEMENT` the ad runs on the post itself, so `destinationType`
|
|
51019
|
+
* is a 400 (messaging CTAs excepted) and `optimizationGoal` must be
|
|
51020
|
+
* `POST_ENGAGEMENT` or `REACH`; anything else is a 400 (Meta no longer
|
|
51021
|
+
* offers `IMPRESSIONS` there, while a plain engagement boost on
|
|
51022
|
+
* `OUTCOME_AWARENESS` still accepts it). The created ad reports the objective
|
|
51023
|
+
* and optimization goal Meta runs it with in `platformObjective` and
|
|
51024
|
+
* `optimizationGoal` (on `adSetId`, those of the existing ad set).
|
|
51005
51025
|
*
|
|
51006
51026
|
*/
|
|
51007
51027
|
optimizationGoal?: string;
|
|
@@ -51009,10 +51029,12 @@ type BoostPostData = {
|
|
|
51009
51029
|
* Meta only, with `goal: engagement` and without `adSetId` (400 otherwise).
|
|
51010
51030
|
* `OUTCOME_ENGAGEMENT` creates the campaign with objective `OUTCOME_ENGAGEMENT`
|
|
51011
51031
|
* and the ad set with `optimization_goal` `POST_ENGAGEMENT` (unless
|
|
51012
|
-
* `optimizationGoal` is set) and `destination_type` `ON_POST
|
|
51013
|
-
*
|
|
51014
|
-
*
|
|
51015
|
-
*
|
|
51032
|
+
* `optimizationGoal` is set) and `destination_type` `ON_POST`, the shape Ads
|
|
51033
|
+
* Manager uses to boost an existing post. `optimizationGoal: POST_ENGAGEMENT`
|
|
51034
|
+
* selects the same objective, so the two may be sent together. `destinationType`
|
|
51035
|
+
* returns 400 (messaging CTAs excepted) and `optimizationGoal` must be
|
|
51036
|
+
* `POST_ENGAGEMENT` or `REACH` (400 otherwise). When both are
|
|
51037
|
+
* omitted, an engagement boost keeps `OUTCOME_AWARENESS` with `REACH`. Returns 400 with `leadGenFormId` or with a `callToAction` whose objective
|
|
51016
51038
|
* is not `OUTCOME_ENGAGEMENT` (`CALL_NOW`); messaging CTAs keep their own
|
|
51017
51039
|
* `CONVERSATIONS` ad set. Verified against Meta on Facebook posts; Instagram posts
|
|
51018
51040
|
* are accepted but not yet verified.
|
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.1344",
|
|
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.1344",
|
|
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
|
@@ -6643,6 +6643,16 @@ export type ErrorResponse = {
|
|
|
6643
6643
|
* unrelated code (e.g. 1487194 on the creative), so branch on `code`, not on
|
|
6644
6644
|
* `platformError`.
|
|
6645
6645
|
*
|
|
6646
|
+
* When Meta refuses a write because the Facebook user behind the connection's token
|
|
6647
|
+
* lacks the Advertise permission on the ad account (Meta subcode 2490585, 2490591 or 4841020 on
|
|
6648
|
+
* the write, or a code 200 refusal such as 1487194 whose cleanup deletes Meta refused
|
|
6649
|
+
* with 2490591 or 4841020), any Meta ads write answers 403 `insufficient_permissions`.
|
|
6650
|
+
* Meta may still accept the campaign and ad set and refuse only the ad. The message
|
|
6651
|
+
* names the ad account, asks for the Advertise or Manage permission on it (or a token
|
|
6652
|
+
* granted `ads_management`, by reconnecting), lists the objects left behind and ends
|
|
6653
|
+
* with Meta's `error_user_title`, `error_user_msg` and subcode; the raw error stays in
|
|
6654
|
+
* `platformError`.
|
|
6655
|
+
*
|
|
6646
6656
|
*/
|
|
6647
6657
|
details?: {
|
|
6648
6658
|
/**
|
|
@@ -51942,10 +51952,20 @@ export type BoostPostData = {
|
|
|
51942
51952
|
* with the objective Meta derives from `goal`, not with the objective used
|
|
51943
51953
|
* by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
|
|
51944
51954
|
* "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
|
|
51945
|
-
* `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values
|
|
51946
|
-
*
|
|
51947
|
-
* `OUTCOME_ENGAGEMENT
|
|
51948
|
-
*
|
|
51955
|
+
* `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values.
|
|
51956
|
+
* `POST_ENGAGEMENT` with `goal: engagement` opts the boost into objective
|
|
51957
|
+
* `OUTCOME_ENGAGEMENT` with `destination_type` `ON_POST`, exactly as
|
|
51958
|
+
* `metaObjective: OUTCOME_ENGAGEMENT` does (sending both is the same request).
|
|
51959
|
+
* `POST_ENGAGEMENT` returns 400 with any other `goal`, with `leadGenFormId`, or
|
|
51960
|
+
* with a `CALL_NOW` or messaging `callToAction`. With `adSetId` the ad joins an
|
|
51961
|
+
* existing ad set and `optimizationGoal` is not read. Under
|
|
51962
|
+
* `OUTCOME_ENGAGEMENT` the ad runs on the post itself, so `destinationType`
|
|
51963
|
+
* is a 400 (messaging CTAs excepted) and `optimizationGoal` must be
|
|
51964
|
+
* `POST_ENGAGEMENT` or `REACH`; anything else is a 400 (Meta no longer
|
|
51965
|
+
* offers `IMPRESSIONS` there, while a plain engagement boost on
|
|
51966
|
+
* `OUTCOME_AWARENESS` still accepts it). The created ad reports the objective
|
|
51967
|
+
* and optimization goal Meta runs it with in `platformObjective` and
|
|
51968
|
+
* `optimizationGoal` (on `adSetId`, those of the existing ad set).
|
|
51949
51969
|
*
|
|
51950
51970
|
*/
|
|
51951
51971
|
optimizationGoal?: string;
|
|
@@ -51953,10 +51973,12 @@ export type BoostPostData = {
|
|
|
51953
51973
|
* Meta only, with `goal: engagement` and without `adSetId` (400 otherwise).
|
|
51954
51974
|
* `OUTCOME_ENGAGEMENT` creates the campaign with objective `OUTCOME_ENGAGEMENT`
|
|
51955
51975
|
* and the ad set with `optimization_goal` `POST_ENGAGEMENT` (unless
|
|
51956
|
-
* `optimizationGoal` is set) and `destination_type` `ON_POST
|
|
51957
|
-
*
|
|
51958
|
-
*
|
|
51959
|
-
*
|
|
51976
|
+
* `optimizationGoal` is set) and `destination_type` `ON_POST`, the shape Ads
|
|
51977
|
+
* Manager uses to boost an existing post. `optimizationGoal: POST_ENGAGEMENT`
|
|
51978
|
+
* selects the same objective, so the two may be sent together. `destinationType`
|
|
51979
|
+
* returns 400 (messaging CTAs excepted) and `optimizationGoal` must be
|
|
51980
|
+
* `POST_ENGAGEMENT` or `REACH` (400 otherwise). When both are
|
|
51981
|
+
* omitted, an engagement boost keeps `OUTCOME_AWARENESS` with `REACH`. Returns 400 with `leadGenFormId` or with a `callToAction` whose objective
|
|
51960
51982
|
* is not `OUTCOME_ENGAGEMENT` (`CALL_NOW`); messaging CTAs keep their own
|
|
51961
51983
|
* `CONVERSATIONS` ad set. Verified against Meta on Facebook posts; Instagram posts
|
|
51962
51984
|
* are accepted but not yet verified.
|