@zernio/node 0.2.266 → 0.2.268
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 +29 -6
- package/dist/index.d.ts +29 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +29 -6
package/dist/index.d.mts
CHANGED
|
@@ -19155,9 +19155,22 @@ type CreateStandaloneAdData = {
|
|
|
19155
19155
|
*/
|
|
19156
19156
|
budgetType?: 'daily' | 'lifetime';
|
|
19157
19157
|
/**
|
|
19158
|
-
* Meta only.
|
|
19158
|
+
* Meta only. Desired publish state of the ad (and, on the legacy/multi-ad-set shapes, the ad set too).
|
|
19159
|
+
* Omitted or `ACTIVE` publishes live immediately (default). `PAUSED` creates the objects paused and skips
|
|
19160
|
+
* activation — useful to stage ads before they spend. On the attach shape (`adSetId`), only the new ad is
|
|
19161
|
+
* affected; the existing ad set and campaign are already live and are not touched.
|
|
19162
|
+
*
|
|
19159
19163
|
*/
|
|
19160
19164
|
status?: 'ACTIVE' | 'PAUSED';
|
|
19165
|
+
/**
|
|
19166
|
+
* Meta only. Independent publish state for the CAMPAIGN when the create makes both a new campaign and a
|
|
19167
|
+
* new ad set (legacy shape). When omitted, the campaign follows `status`. Use this to stage a paused
|
|
19168
|
+
* campaign with an active ad set (`status: ACTIVE, campaignStatus: PAUSED`) — the ad set will start
|
|
19169
|
+
* delivering as soon as the campaign is activated later. Ignored when `existingCampaignId` is set (the
|
|
19170
|
+
* campaign is already live and its status is not changed).
|
|
19171
|
+
*
|
|
19172
|
+
*/
|
|
19173
|
+
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
19161
19174
|
/**
|
|
19162
19175
|
* Meta only. Where the budget lives, which selects the Meta budget model:
|
|
19163
19176
|
* - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the
|
|
@@ -19302,11 +19315,16 @@ type CreateStandaloneAdData = {
|
|
|
19302
19315
|
/**
|
|
19303
19316
|
* Meta only. Reuse an EXISTING ad creative by id instead of
|
|
19304
19317
|
* building a new one from the copy/media fields (which are then
|
|
19305
|
-
* ignored).
|
|
19306
|
-
* multi-ad-set
|
|
19307
|
-
*
|
|
19308
|
-
*
|
|
19309
|
-
* `
|
|
19318
|
+
* ignored). Works on both shapes:
|
|
19319
|
+
* - Legacy/multi-ad-set (`existingCampaignId`): combine with
|
|
19320
|
+
* `existingCampaignId` to build a multi-ad-set campaign that
|
|
19321
|
+
* shares one creative across audiences.
|
|
19322
|
+
* - Attach (`adSetId`): combine with `adSetId` to add a second
|
|
19323
|
+
* (or Nth) ad to an existing ad set reusing the same creative —
|
|
19324
|
+
* no `headline`/`body`/`imageUrl` required on the body.
|
|
19325
|
+
* Mutually exclusive with `creatives[]`, `dynamicCreative`, and
|
|
19326
|
+
* `placementAssets`. The creative id is returned as `creativeId`
|
|
19327
|
+
* on the create response.
|
|
19310
19328
|
*
|
|
19311
19329
|
*/
|
|
19312
19330
|
existingCreativeId?: string;
|
|
@@ -19537,6 +19555,11 @@ type CreateStandaloneAdData = {
|
|
|
19537
19555
|
* placement. Each rule's `placements` accepts the same fields as the top-level
|
|
19538
19556
|
* `placements` object; Meta enforces co-selection rules and returns an actionable error.
|
|
19539
19557
|
*
|
|
19558
|
+
* Note on text rendering: Meta suppresses primary text and headline on fullscreen
|
|
19559
|
+
* placements (Stories and Reels) in actual ad delivery; the fields are accepted and
|
|
19560
|
+
* the ad publishes, but the copy is not shown to users. For visible copy on those
|
|
19561
|
+
* placements, bake the text into the creative image or video itself.
|
|
19562
|
+
*
|
|
19540
19563
|
* A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad
|
|
19541
19564
|
* format). Image mode: `defaultImageUrl` + `rules[].imageUrl`. Video mode:
|
|
19542
19565
|
* `defaultVideoUrl` + `rules[].videoUrl` (optional `thumbnailUrl`/`defaultThumbnailUrl`
|
package/dist/index.d.ts
CHANGED
|
@@ -19155,9 +19155,22 @@ type CreateStandaloneAdData = {
|
|
|
19155
19155
|
*/
|
|
19156
19156
|
budgetType?: 'daily' | 'lifetime';
|
|
19157
19157
|
/**
|
|
19158
|
-
* Meta only.
|
|
19158
|
+
* Meta only. Desired publish state of the ad (and, on the legacy/multi-ad-set shapes, the ad set too).
|
|
19159
|
+
* Omitted or `ACTIVE` publishes live immediately (default). `PAUSED` creates the objects paused and skips
|
|
19160
|
+
* activation — useful to stage ads before they spend. On the attach shape (`adSetId`), only the new ad is
|
|
19161
|
+
* affected; the existing ad set and campaign are already live and are not touched.
|
|
19162
|
+
*
|
|
19159
19163
|
*/
|
|
19160
19164
|
status?: 'ACTIVE' | 'PAUSED';
|
|
19165
|
+
/**
|
|
19166
|
+
* Meta only. Independent publish state for the CAMPAIGN when the create makes both a new campaign and a
|
|
19167
|
+
* new ad set (legacy shape). When omitted, the campaign follows `status`. Use this to stage a paused
|
|
19168
|
+
* campaign with an active ad set (`status: ACTIVE, campaignStatus: PAUSED`) — the ad set will start
|
|
19169
|
+
* delivering as soon as the campaign is activated later. Ignored when `existingCampaignId` is set (the
|
|
19170
|
+
* campaign is already live and its status is not changed).
|
|
19171
|
+
*
|
|
19172
|
+
*/
|
|
19173
|
+
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
19161
19174
|
/**
|
|
19162
19175
|
* Meta only. Where the budget lives, which selects the Meta budget model:
|
|
19163
19176
|
* - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the
|
|
@@ -19302,11 +19315,16 @@ type CreateStandaloneAdData = {
|
|
|
19302
19315
|
/**
|
|
19303
19316
|
* Meta only. Reuse an EXISTING ad creative by id instead of
|
|
19304
19317
|
* building a new one from the copy/media fields (which are then
|
|
19305
|
-
* ignored).
|
|
19306
|
-
* multi-ad-set
|
|
19307
|
-
*
|
|
19308
|
-
*
|
|
19309
|
-
* `
|
|
19318
|
+
* ignored). Works on both shapes:
|
|
19319
|
+
* - Legacy/multi-ad-set (`existingCampaignId`): combine with
|
|
19320
|
+
* `existingCampaignId` to build a multi-ad-set campaign that
|
|
19321
|
+
* shares one creative across audiences.
|
|
19322
|
+
* - Attach (`adSetId`): combine with `adSetId` to add a second
|
|
19323
|
+
* (or Nth) ad to an existing ad set reusing the same creative —
|
|
19324
|
+
* no `headline`/`body`/`imageUrl` required on the body.
|
|
19325
|
+
* Mutually exclusive with `creatives[]`, `dynamicCreative`, and
|
|
19326
|
+
* `placementAssets`. The creative id is returned as `creativeId`
|
|
19327
|
+
* on the create response.
|
|
19310
19328
|
*
|
|
19311
19329
|
*/
|
|
19312
19330
|
existingCreativeId?: string;
|
|
@@ -19537,6 +19555,11 @@ type CreateStandaloneAdData = {
|
|
|
19537
19555
|
* placement. Each rule's `placements` accepts the same fields as the top-level
|
|
19538
19556
|
* `placements` object; Meta enforces co-selection rules and returns an actionable error.
|
|
19539
19557
|
*
|
|
19558
|
+
* Note on text rendering: Meta suppresses primary text and headline on fullscreen
|
|
19559
|
+
* placements (Stories and Reels) in actual ad delivery; the fields are accepted and
|
|
19560
|
+
* the ad publishes, but the copy is not shown to users. For visible copy on those
|
|
19561
|
+
* placements, bake the text into the creative image or video itself.
|
|
19562
|
+
*
|
|
19540
19563
|
* A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad
|
|
19541
19564
|
* format). Image mode: `defaultImageUrl` + `rules[].imageUrl`. Video mode:
|
|
19542
19565
|
* `defaultVideoUrl` + `rules[].videoUrl` (optional `thumbnailUrl`/`defaultThumbnailUrl`
|
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.
|
|
39
|
+
version: "0.2.268",
|
|
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.
|
|
8
|
+
version: "0.2.268",
|
|
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
|
@@ -19660,9 +19660,22 @@ export type CreateStandaloneAdData = {
|
|
|
19660
19660
|
*/
|
|
19661
19661
|
budgetType?: 'daily' | 'lifetime';
|
|
19662
19662
|
/**
|
|
19663
|
-
* Meta only.
|
|
19663
|
+
* Meta only. Desired publish state of the ad (and, on the legacy/multi-ad-set shapes, the ad set too).
|
|
19664
|
+
* Omitted or `ACTIVE` publishes live immediately (default). `PAUSED` creates the objects paused and skips
|
|
19665
|
+
* activation — useful to stage ads before they spend. On the attach shape (`adSetId`), only the new ad is
|
|
19666
|
+
* affected; the existing ad set and campaign are already live and are not touched.
|
|
19667
|
+
*
|
|
19664
19668
|
*/
|
|
19665
19669
|
status?: 'ACTIVE' | 'PAUSED';
|
|
19670
|
+
/**
|
|
19671
|
+
* Meta only. Independent publish state for the CAMPAIGN when the create makes both a new campaign and a
|
|
19672
|
+
* new ad set (legacy shape). When omitted, the campaign follows `status`. Use this to stage a paused
|
|
19673
|
+
* campaign with an active ad set (`status: ACTIVE, campaignStatus: PAUSED`) — the ad set will start
|
|
19674
|
+
* delivering as soon as the campaign is activated later. Ignored when `existingCampaignId` is set (the
|
|
19675
|
+
* campaign is already live and its status is not changed).
|
|
19676
|
+
*
|
|
19677
|
+
*/
|
|
19678
|
+
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
19666
19679
|
/**
|
|
19667
19680
|
* Meta only. Where the budget lives, which selects the Meta budget model:
|
|
19668
19681
|
* - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the
|
|
@@ -19807,11 +19820,16 @@ export type CreateStandaloneAdData = {
|
|
|
19807
19820
|
/**
|
|
19808
19821
|
* Meta only. Reuse an EXISTING ad creative by id instead of
|
|
19809
19822
|
* building a new one from the copy/media fields (which are then
|
|
19810
|
-
* ignored).
|
|
19811
|
-
* multi-ad-set
|
|
19812
|
-
*
|
|
19813
|
-
*
|
|
19814
|
-
* `
|
|
19823
|
+
* ignored). Works on both shapes:
|
|
19824
|
+
* - Legacy/multi-ad-set (`existingCampaignId`): combine with
|
|
19825
|
+
* `existingCampaignId` to build a multi-ad-set campaign that
|
|
19826
|
+
* shares one creative across audiences.
|
|
19827
|
+
* - Attach (`adSetId`): combine with `adSetId` to add a second
|
|
19828
|
+
* (or Nth) ad to an existing ad set reusing the same creative —
|
|
19829
|
+
* no `headline`/`body`/`imageUrl` required on the body.
|
|
19830
|
+
* Mutually exclusive with `creatives[]`, `dynamicCreative`, and
|
|
19831
|
+
* `placementAssets`. The creative id is returned as `creativeId`
|
|
19832
|
+
* on the create response.
|
|
19815
19833
|
*
|
|
19816
19834
|
*/
|
|
19817
19835
|
existingCreativeId?: string;
|
|
@@ -20042,6 +20060,11 @@ export type CreateStandaloneAdData = {
|
|
|
20042
20060
|
* placement. Each rule's `placements` accepts the same fields as the top-level
|
|
20043
20061
|
* `placements` object; Meta enforces co-selection rules and returns an actionable error.
|
|
20044
20062
|
*
|
|
20063
|
+
* Note on text rendering: Meta suppresses primary text and headline on fullscreen
|
|
20064
|
+
* placements (Stories and Reels) in actual ad delivery; the fields are accepted and
|
|
20065
|
+
* the ad publishes, but the copy is not shown to users. For visible copy on those
|
|
20066
|
+
* placements, bake the text into the creative image or video itself.
|
|
20067
|
+
*
|
|
20045
20068
|
* A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad
|
|
20046
20069
|
* format). Image mode: `defaultImageUrl` + `rules[].imageUrl`. Video mode:
|
|
20047
20070
|
* `defaultVideoUrl` + `rules[].videoUrl` (optional `thumbnailUrl`/`defaultThumbnailUrl`
|