@getlatedev/node 0.2.1343 → 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 CHANGED
@@ -51008,10 +51008,20 @@ type BoostPostData = {
51008
51008
  * with the objective Meta derives from `goal`, not with the objective used
51009
51009
  * by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
51010
51010
  * "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
51011
- * `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values, and
51012
- * rejects `POST_ENGAGEMENT` (that value is only valid under
51013
- * `OUTCOME_ENGAGEMENT`, which create uses for the same goal name, and
51014
- * which `metaObjective` selects on a boost).
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).
51015
51025
  *
51016
51026
  */
51017
51027
  optimizationGoal?: string;
@@ -51019,10 +51029,12 @@ type BoostPostData = {
51019
51029
  * Meta only, with `goal: engagement` and without `adSetId` (400 otherwise).
51020
51030
  * `OUTCOME_ENGAGEMENT` creates the campaign with objective `OUTCOME_ENGAGEMENT`
51021
51031
  * and the ad set with `optimization_goal` `POST_ENGAGEMENT` (unless
51022
- * `optimizationGoal` is set) and `destination_type` `ON_POST` (unless
51023
- * `destinationType` is set), the shape Ads Manager uses to boost an existing
51024
- * post. When omitted, an engagement boost keeps `OUTCOME_AWARENESS` with
51025
- * `REACH`. Returns 400 with `leadGenFormId` or with a `callToAction` whose objective
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
51026
51038
  * is not `OUTCOME_ENGAGEMENT` (`CALL_NOW`); messaging CTAs keep their own
51027
51039
  * `CONVERSATIONS` ad set. Verified against Meta on Facebook posts; Instagram posts
51028
51040
  * are accepted but not yet verified.
package/dist/index.d.ts CHANGED
@@ -51008,10 +51008,20 @@ type BoostPostData = {
51008
51008
  * with the objective Meta derives from `goal`, not with the objective used
51009
51009
  * by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
51010
51010
  * "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
51011
- * `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values, and
51012
- * rejects `POST_ENGAGEMENT` (that value is only valid under
51013
- * `OUTCOME_ENGAGEMENT`, which create uses for the same goal name, and
51014
- * which `metaObjective` selects on a boost).
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).
51015
51025
  *
51016
51026
  */
51017
51027
  optimizationGoal?: string;
@@ -51019,10 +51029,12 @@ type BoostPostData = {
51019
51029
  * Meta only, with `goal: engagement` and without `adSetId` (400 otherwise).
51020
51030
  * `OUTCOME_ENGAGEMENT` creates the campaign with objective `OUTCOME_ENGAGEMENT`
51021
51031
  * and the ad set with `optimization_goal` `POST_ENGAGEMENT` (unless
51022
- * `optimizationGoal` is set) and `destination_type` `ON_POST` (unless
51023
- * `destinationType` is set), the shape Ads Manager uses to boost an existing
51024
- * post. When omitted, an engagement boost keeps `OUTCOME_AWARENESS` with
51025
- * `REACH`. Returns 400 with `leadGenFormId` or with a `callToAction` whose objective
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
51026
51038
  * is not `OUTCOME_ENGAGEMENT` (`CALL_NOW`); messaging CTAs keep their own
51027
51039
  * `CONVERSATIONS` ad set. Verified against Meta on Facebook posts; Instagram posts
51028
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.1343",
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.1343",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1343",
3
+ "version": "0.2.1344",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -51952,10 +51952,20 @@ export type BoostPostData = {
51952
51952
  * with the objective Meta derives from `goal`, not with the objective used
51953
51953
  * by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
51954
51954
  * "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
51955
- * `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values, and
51956
- * rejects `POST_ENGAGEMENT` (that value is only valid under
51957
- * `OUTCOME_ENGAGEMENT`, which create uses for the same goal name, and
51958
- * which `metaObjective` selects on a boost).
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).
51959
51969
  *
51960
51970
  */
51961
51971
  optimizationGoal?: string;
@@ -51963,10 +51973,12 @@ export type BoostPostData = {
51963
51973
  * Meta only, with `goal: engagement` and without `adSetId` (400 otherwise).
51964
51974
  * `OUTCOME_ENGAGEMENT` creates the campaign with objective `OUTCOME_ENGAGEMENT`
51965
51975
  * and the ad set with `optimization_goal` `POST_ENGAGEMENT` (unless
51966
- * `optimizationGoal` is set) and `destination_type` `ON_POST` (unless
51967
- * `destinationType` is set), the shape Ads Manager uses to boost an existing
51968
- * post. When omitted, an engagement boost keeps `OUTCOME_AWARENESS` with
51969
- * `REACH`. Returns 400 with `leadGenFormId` or with a `callToAction` whose objective
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
51970
51982
  * is not `OUTCOME_ENGAGEMENT` (`CALL_NOW`); messaging CTAs keep their own
51971
51983
  * `CONVERSATIONS` ad set. Verified against Meta on Facebook posts; Instagram posts
51972
51984
  * are accepted but not yet verified.