@zernio/node 0.2.267 → 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 CHANGED
@@ -19155,9 +19155,22 @@ type CreateStandaloneAdData = {
19155
19155
  */
19156
19156
  budgetType?: 'daily' | 'lifetime';
19157
19157
  /**
19158
- * Meta only. Publish state of the created ad set + ad. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused and skips activation, so you can review before they spend.
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). Combine with `existingCampaignId` to build a
19306
- * multi-ad-set campaign that shares one creative. Mutually
19307
- * exclusive with `creatives[]`, `dynamicCreative`, and
19308
- * `placementAssets`. The creative id used is returned as
19309
- * `creativeId` on the create response.
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;
package/dist/index.d.ts CHANGED
@@ -19155,9 +19155,22 @@ type CreateStandaloneAdData = {
19155
19155
  */
19156
19156
  budgetType?: 'daily' | 'lifetime';
19157
19157
  /**
19158
- * Meta only. Publish state of the created ad set + ad. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused and skips activation, so you can review before they spend.
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). Combine with `existingCampaignId` to build a
19306
- * multi-ad-set campaign that shares one creative. Mutually
19307
- * exclusive with `creatives[]`, `dynamicCreative`, and
19308
- * `placementAssets`. The creative id used is returned as
19309
- * `creativeId` on the create response.
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;
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.267",
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.267",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.267",
3
+ "version": "0.2.268",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19660,9 +19660,22 @@ export type CreateStandaloneAdData = {
19660
19660
  */
19661
19661
  budgetType?: 'daily' | 'lifetime';
19662
19662
  /**
19663
- * Meta only. Publish state of the created ad set + ad. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused and skips activation, so you can review before they spend.
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). Combine with `existingCampaignId` to build a
19811
- * multi-ad-set campaign that shares one creative. Mutually
19812
- * exclusive with `creatives[]`, `dynamicCreative`, and
19813
- * `placementAssets`. The creative id used is returned as
19814
- * `creativeId` on the create response.
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;