@getlatedev/node 0.2.1343 → 0.2.1345
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 +22 -10
- package/dist/index.d.ts +22 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +22 -10
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
|
|
51012
|
-
*
|
|
51013
|
-
* `OUTCOME_ENGAGEMENT
|
|
51014
|
-
*
|
|
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
|
|
51023
|
-
*
|
|
51024
|
-
*
|
|
51025
|
-
*
|
|
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.
|
|
@@ -51230,11 +51242,11 @@ type CreateStandaloneAdData = {
|
|
|
51230
51242
|
adAccountId: string;
|
|
51231
51243
|
name: string;
|
|
51232
51244
|
/**
|
|
51233
|
-
* Meta and
|
|
51245
|
+
* Meta, Reddit and Google. Exact campaign name. Overrides the default `<name> - Campaign`. Ignored when the request joins an existing campaign or ad set. Google: no line breaks and at most 255 characters, checked before calling Google; names are unique in the Google Ads account, and on Search and Display a taken name is a 400 naming this field.
|
|
51234
51246
|
*/
|
|
51235
51247
|
campaignName?: string;
|
|
51236
51248
|
/**
|
|
51237
|
-
* Meta and
|
|
51249
|
+
* Meta, Reddit and Google (the ad group). Exact ad set name. Overrides the default `<name> - Ad Set` (Google Search and Display: `<name> - Ad Group`). Ignored when the request joins an existing ad set (`adSetId`). Google Search and Display only, also on `existingCampaignId`, where the new ad group's name is returned as `adSetName`; no line breaks, at most 255 characters, unique in the campaign (a taken name is a 400 naming this field). Demand Gen names its ad group with `demandGen.adGroupName` and Performance Max with `assetGroup.name`. (For per-ad names on the multi-creative shape, set `name` on each `creatives[]` entry.)
|
|
51238
51250
|
*/
|
|
51239
51251
|
adSetName?: string;
|
|
51240
51252
|
/**
|
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
|
|
51012
|
-
*
|
|
51013
|
-
* `OUTCOME_ENGAGEMENT
|
|
51014
|
-
*
|
|
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
|
|
51023
|
-
*
|
|
51024
|
-
*
|
|
51025
|
-
*
|
|
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.
|
|
@@ -51230,11 +51242,11 @@ type CreateStandaloneAdData = {
|
|
|
51230
51242
|
adAccountId: string;
|
|
51231
51243
|
name: string;
|
|
51232
51244
|
/**
|
|
51233
|
-
* Meta and
|
|
51245
|
+
* Meta, Reddit and Google. Exact campaign name. Overrides the default `<name> - Campaign`. Ignored when the request joins an existing campaign or ad set. Google: no line breaks and at most 255 characters, checked before calling Google; names are unique in the Google Ads account, and on Search and Display a taken name is a 400 naming this field.
|
|
51234
51246
|
*/
|
|
51235
51247
|
campaignName?: string;
|
|
51236
51248
|
/**
|
|
51237
|
-
* Meta and
|
|
51249
|
+
* Meta, Reddit and Google (the ad group). Exact ad set name. Overrides the default `<name> - Ad Set` (Google Search and Display: `<name> - Ad Group`). Ignored when the request joins an existing ad set (`adSetId`). Google Search and Display only, also on `existingCampaignId`, where the new ad group's name is returned as `adSetName`; no line breaks, at most 255 characters, unique in the campaign (a taken name is a 400 naming this field). Demand Gen names its ad group with `demandGen.adGroupName` and Performance Max with `assetGroup.name`. (For per-ad names on the multi-creative shape, set `name` on each `creatives[]` entry.)
|
|
51238
51250
|
*/
|
|
51239
51251
|
adSetName?: string;
|
|
51240
51252
|
/**
|
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.1345",
|
|
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.1345",
|
|
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
|
@@ -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
|
|
51956
|
-
*
|
|
51957
|
-
* `OUTCOME_ENGAGEMENT
|
|
51958
|
-
*
|
|
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
|
|
51967
|
-
*
|
|
51968
|
-
*
|
|
51969
|
-
*
|
|
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.
|
|
@@ -52198,11 +52210,11 @@ export type CreateStandaloneAdData = {
|
|
|
52198
52210
|
adAccountId: string;
|
|
52199
52211
|
name: string;
|
|
52200
52212
|
/**
|
|
52201
|
-
* Meta and
|
|
52213
|
+
* Meta, Reddit and Google. Exact campaign name. Overrides the default `<name> - Campaign`. Ignored when the request joins an existing campaign or ad set. Google: no line breaks and at most 255 characters, checked before calling Google; names are unique in the Google Ads account, and on Search and Display a taken name is a 400 naming this field.
|
|
52202
52214
|
*/
|
|
52203
52215
|
campaignName?: string;
|
|
52204
52216
|
/**
|
|
52205
|
-
* Meta and
|
|
52217
|
+
* Meta, Reddit and Google (the ad group). Exact ad set name. Overrides the default `<name> - Ad Set` (Google Search and Display: `<name> - Ad Group`). Ignored when the request joins an existing ad set (`adSetId`). Google Search and Display only, also on `existingCampaignId`, where the new ad group's name is returned as `adSetName`; no line breaks, at most 255 characters, unique in the campaign (a taken name is a 400 naming this field). Demand Gen names its ad group with `demandGen.adGroupName` and Performance Max with `assetGroup.name`. (For per-ad names on the multi-creative shape, set `name` on each `creatives[]` entry.)
|
|
52206
52218
|
*/
|
|
52207
52219
|
adSetName?: string;
|
|
52208
52220
|
/**
|