@zernio/node 0.2.1852 → 0.2.1854

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
@@ -83588,6 +83588,9 @@ type CreateMessagingAdData = {
83588
83588
  * - `LEAD_GENERATION` needs a single `destination: whatsapp` (a 400 with `destinations` or another destination) and runs the campaign under `OUTCOME_LEADS`.
83589
83589
  * - `objective`, when sent with `LEAD_GENERATION`, must be `OUTCOME_LEADS`.
83590
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).
83591
83594
  *
83592
83595
  */
83593
83596
  optimizationGoal?: 'CONVERSATIONS' | 'LEAD_GENERATION';
package/dist/index.d.ts CHANGED
@@ -83588,6 +83588,9 @@ type CreateMessagingAdData = {
83588
83588
  * - `LEAD_GENERATION` needs a single `destination: whatsapp` (a 400 with `destinations` or another destination) and runs the campaign under `OUTCOME_LEADS`.
83589
83589
  * - `objective`, when sent with `LEAD_GENERATION`, must be `OUTCOME_LEADS`.
83590
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).
83591
83594
  *
83592
83595
  */
83593
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.1852",
39
+ version: "0.2.1854",
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.1852",
8
+ version: "0.2.1854",
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.1852",
3
+ "version": "0.2.1854",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20098,6 +20098,8 @@ export const replaceGoogleListingGroupFilters = <ThrowOnError extends boolean =
20098
20098
  * - Every shape that builds a new ad set (no `adSetId`, `existingCampaignId` or `buyingType: "RESERVED"`): `budgetAmount`. `budgetType` defaults to daily, and a lifetime budget without `endDate` ends 7 days after it starts (see `appliedDefaults`).
20099
20099
  * - Single image or video (the default), also with `adSetId`: `headline` (max 255), `body`, `callToAction`, and exactly one of `imageUrl` / `video`. A catalog template creative takes none, and ignores and does not upload any sent.
20100
20100
  * - Single image or video also needs `linkUrl`, unless the goal is `lead_generation` or `page_visits` or `leadGenFormId` is set.
20101
+ * - Goal `engagement` with `optimizationGoal: POST_ENGAGEMENT` and no `linkUrl` builds a post with no link and no button: `body` and one image or video only. `headline` is the video title.
20102
+ * - On that post ad, `callToAction`, `callToActionLink`, `description` and `caption` return 400. It does not apply with `adSetId`, `translations` or `leadGenFormId`.
20101
20103
  * - `bodies[]` / `headlines[]` text variations: `body`, one list with 2+ items, `callToAction`, `imageUrl` or `video`, and `linkUrl` unless the goal is `lead_generation` or `leadGenFormId` is set. `headline` is not required.
20102
20104
  * - `placementAssets`: `headline`, `body`, `callToAction`, and `linkUrl` with the same exemptions as the single shape; the media comes from `placementAssets`.
20103
20105
  * - `carouselCards`, also with `adSetId`: `body`, `callToAction`, and `linkUrl` unless the goal is `lead_generation` or `leadGenFormId` is set. `headline` is not required. Each card takes `imageUrl` or `video`.
@@ -85787,6 +85787,9 @@ export type CreateMessagingAdData = {
85787
85787
  * - `LEAD_GENERATION` needs a single `destination: whatsapp` (a 400 with `destinations` or another destination) and runs the campaign under `OUTCOME_LEADS`.
85788
85788
  * - `objective`, when sent with `LEAD_GENERATION`, must be `OUTCOME_LEADS`.
85789
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).
85790
85793
  *
85791
85794
  */
85792
85795
  optimizationGoal?: 'CONVERSATIONS' | 'LEAD_GENERATION';