@zernio/node 0.2.1851 → 0.2.1853

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
@@ -77054,6 +77054,8 @@ type CreateStandaloneAdData = {
77054
77054
  * - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`).
77055
77055
  *
77056
77056
  * On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign objective and rejects incompatible combinations.
77057
+ *
77058
+ * With `goal: engagement`, `POST_ENGAGEMENT` also sets the ad set's destination to `ON_POST` (Ads Manager's Engagement, On your ad, Post engagement), as POST /v1/ads/boost does.
77057
77059
  */
77058
77060
  optimizationGoal?: string;
77059
77061
  /**
@@ -83586,6 +83588,9 @@ type CreateMessagingAdData = {
83586
83588
  * - `LEAD_GENERATION` needs a single `destination: whatsapp` (a 400 with `destinations` or another destination) and runs the campaign under `OUTCOME_LEADS`.
83587
83589
  * - `objective`, when sent with `LEAD_GENERATION`, must be `OUTCOME_LEADS`.
83588
83590
  * - With `existingCampaignId` the campaign must be `OUTCOME_LEADS` (a 400 otherwise).
83591
+ * - Meta enables `LEAD_GENERATION` for WhatsApp per ad account and has no API to check it in advance.
83592
+ * - On an ad account without it, Meta refuses the ad set with subcode 2490408: a 400 `platform_api_error` with `param: optimizationGoal`. `validateOnly` reports it without creating anything.
83593
+ * - Use `CONVERSATIONS` there (with `objective: OUTCOME_LEADS` for a Leads campaign).
83589
83594
  *
83590
83595
  */
83591
83596
  optimizationGoal?: 'CONVERSATIONS' | 'LEAD_GENERATION';
package/dist/index.d.ts CHANGED
@@ -77054,6 +77054,8 @@ type CreateStandaloneAdData = {
77054
77054
  * - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`).
77055
77055
  *
77056
77056
  * On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign objective and rejects incompatible combinations.
77057
+ *
77058
+ * With `goal: engagement`, `POST_ENGAGEMENT` also sets the ad set's destination to `ON_POST` (Ads Manager's Engagement, On your ad, Post engagement), as POST /v1/ads/boost does.
77057
77059
  */
77058
77060
  optimizationGoal?: string;
77059
77061
  /**
@@ -83586,6 +83588,9 @@ type CreateMessagingAdData = {
83586
83588
  * - `LEAD_GENERATION` needs a single `destination: whatsapp` (a 400 with `destinations` or another destination) and runs the campaign under `OUTCOME_LEADS`.
83587
83589
  * - `objective`, when sent with `LEAD_GENERATION`, must be `OUTCOME_LEADS`.
83588
83590
  * - With `existingCampaignId` the campaign must be `OUTCOME_LEADS` (a 400 otherwise).
83591
+ * - Meta enables `LEAD_GENERATION` for WhatsApp per ad account and has no API to check it in advance.
83592
+ * - On an ad account without it, Meta refuses the ad set with subcode 2490408: a 400 `platform_api_error` with `param: optimizationGoal`. `validateOnly` reports it without creating anything.
83593
+ * - Use `CONVERSATIONS` there (with `objective: OUTCOME_LEADS` for a Leads campaign).
83589
83594
  *
83590
83595
  */
83591
83596
  optimizationGoal?: 'CONVERSATIONS' | 'LEAD_GENERATION';
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: "@zernio/node",
39
- version: "0.2.1851",
39
+ version: "0.2.1853",
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: "@zernio/node",
8
- version: "0.2.1851",
8
+ version: "0.2.1853",
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": "@zernio/node",
3
- "version": "0.2.1851",
3
+ "version": "0.2.1853",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -78890,6 +78890,8 @@ export type CreateStandaloneAdData = {
78890
78890
  * - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`).
78891
78891
  *
78892
78892
  * On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign objective and rejects incompatible combinations.
78893
+ *
78894
+ * With `goal: engagement`, `POST_ENGAGEMENT` also sets the ad set's destination to `ON_POST` (Ads Manager's Engagement, On your ad, Post engagement), as POST /v1/ads/boost does.
78893
78895
  */
78894
78896
  optimizationGoal?: string;
78895
78897
  /**
@@ -85785,6 +85787,9 @@ export type CreateMessagingAdData = {
85785
85787
  * - `LEAD_GENERATION` needs a single `destination: whatsapp` (a 400 with `destinations` or another destination) and runs the campaign under `OUTCOME_LEADS`.
85786
85788
  * - `objective`, when sent with `LEAD_GENERATION`, must be `OUTCOME_LEADS`.
85787
85789
  * - With `existingCampaignId` the campaign must be `OUTCOME_LEADS` (a 400 otherwise).
85790
+ * - Meta enables `LEAD_GENERATION` for WhatsApp per ad account and has no API to check it in advance.
85791
+ * - On an ad account without it, Meta refuses the ad set with subcode 2490408: a 400 `platform_api_error` with `param: optimizationGoal`. `validateOnly` reports it without creating anything.
85792
+ * - Use `CONVERSATIONS` there (with `objective: OUTCOME_LEADS` for a Leads campaign).
85788
85793
  *
85789
85794
  */
85790
85795
  optimizationGoal?: 'CONVERSATIONS' | 'LEAD_GENERATION';