@zernio/node 0.2.700 → 0.2.701

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
@@ -5857,6 +5857,14 @@ type MetaAdsPlatformData = {
5857
5857
  * Decimal ROAS multiplier (2.0 = 2.0x). Required when bidStrategy is LOWEST_COST_WITH_MIN_ROAS; sending it without bidStrategy is a 400.
5858
5858
  */
5859
5859
  roasAverageFloor?: number;
5860
+ /**
5861
+ * Meta daily_min_spend_target on the ad set being created: the least it should spend per day, in whole currency units. It reserves a share of a CAMPAIGN budget, so it requires budgetLevel campaign or an existingCampaignId whose campaign has the budget (Advantage campaign budget / CBO); with an ad-set budget it is a 400, because Meta rejects a spend limit on an ad set that owns its budget. A target, not a guarantee. Mutually exclusive with lifetimeMinSpendTarget: the flavour must match the campaign budget type. Rejected with 400 on POST /v1/ads/boost and in adSetId attach mode: use PUT /v1/ads/ad-sets/{adSetId} for an ad set that already exists.
5862
+ */
5863
+ dailyMinSpendTarget?: number;
5864
+ /**
5865
+ * Meta lifetime_min_spend_target: the lifetime-budget flavour of dailyMinSpendTarget, in whole currency units. Same rules and same rejections.
5866
+ */
5867
+ lifetimeMinSpendTarget?: number;
5860
5868
  };
5861
5869
  type Money = {
5862
5870
  /**
@@ -30374,6 +30382,27 @@ type UpdateAdSetData = {
30374
30382
  * Ad set end_time (ISO 8601).
30375
30383
  */
30376
30384
  endDate?: string;
30385
+ /**
30386
+ * Meta `daily_min_spend_target`: the least this ad set should spend per day, in whole
30387
+ * currency units of the ad account. It reserves a share of a CAMPAIGN budget for one ad
30388
+ * set, so it requires a campaign using Advantage campaign budget (CBO). On an ad set
30389
+ * that owns its budget (ABO) this returns 409 — move the budget to the campaign with
30390
+ * `PUT /v1/ads/campaigns/{campaignId}` first. Meta treats it as a target, not a
30391
+ * guarantee, and rejects the combined minimum of a campaign's ad sets going over the
30392
+ * campaign budget.
30393
+ * Mutually exclusive with `lifetimeMinSpendTarget` (400): the flavour must match the
30394
+ * campaign budget type, a daily budget takes a daily target.
30395
+ * Read it back with `GET /v1/ads/ad-sets/{adSetId}?fields=daily_min_spend_target`.
30396
+ *
30397
+ */
30398
+ dailyMinSpendTarget?: number;
30399
+ /**
30400
+ * Meta `lifetime_min_spend_target`: the lifetime-budget flavour of
30401
+ * `dailyMinSpendTarget`, in whole currency units. Send this one when the campaign
30402
+ * budget is a lifetime budget. Same rules and same rejections.
30403
+ *
30404
+ */
30405
+ lifetimeMinSpendTarget?: number;
30377
30406
  /**
30378
30407
  * Meta ad-set promoted_object, forwarded verbatim (same shape as /v1/ads/create). Unknown keys are rejected with 400.
30379
30408
  */
@@ -33583,6 +33612,9 @@ type CreateStandaloneAdData = {
33583
33612
  * Sending the bid fields in BOTH places returns a 400
33584
33613
  * (`mutually_exclusive_fields`), and sending any of them in
33585
33614
  * `adSetId` attach mode is a 400 too (the ad set already has its bid).
33615
+ * `dailyMinSpendTarget` / `lifetimeMinSpendTarget` set the new ad set's
33616
+ * minimum spend and live here only; they are rejected in `adSetId` attach
33617
+ * mode as well.
33586
33618
  *
33587
33619
  */
33588
33620
  platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData);
package/dist/index.d.ts CHANGED
@@ -5857,6 +5857,14 @@ type MetaAdsPlatformData = {
5857
5857
  * Decimal ROAS multiplier (2.0 = 2.0x). Required when bidStrategy is LOWEST_COST_WITH_MIN_ROAS; sending it without bidStrategy is a 400.
5858
5858
  */
5859
5859
  roasAverageFloor?: number;
5860
+ /**
5861
+ * Meta daily_min_spend_target on the ad set being created: the least it should spend per day, in whole currency units. It reserves a share of a CAMPAIGN budget, so it requires budgetLevel campaign or an existingCampaignId whose campaign has the budget (Advantage campaign budget / CBO); with an ad-set budget it is a 400, because Meta rejects a spend limit on an ad set that owns its budget. A target, not a guarantee. Mutually exclusive with lifetimeMinSpendTarget: the flavour must match the campaign budget type. Rejected with 400 on POST /v1/ads/boost and in adSetId attach mode: use PUT /v1/ads/ad-sets/{adSetId} for an ad set that already exists.
5862
+ */
5863
+ dailyMinSpendTarget?: number;
5864
+ /**
5865
+ * Meta lifetime_min_spend_target: the lifetime-budget flavour of dailyMinSpendTarget, in whole currency units. Same rules and same rejections.
5866
+ */
5867
+ lifetimeMinSpendTarget?: number;
5860
5868
  };
5861
5869
  type Money = {
5862
5870
  /**
@@ -30374,6 +30382,27 @@ type UpdateAdSetData = {
30374
30382
  * Ad set end_time (ISO 8601).
30375
30383
  */
30376
30384
  endDate?: string;
30385
+ /**
30386
+ * Meta `daily_min_spend_target`: the least this ad set should spend per day, in whole
30387
+ * currency units of the ad account. It reserves a share of a CAMPAIGN budget for one ad
30388
+ * set, so it requires a campaign using Advantage campaign budget (CBO). On an ad set
30389
+ * that owns its budget (ABO) this returns 409 — move the budget to the campaign with
30390
+ * `PUT /v1/ads/campaigns/{campaignId}` first. Meta treats it as a target, not a
30391
+ * guarantee, and rejects the combined minimum of a campaign's ad sets going over the
30392
+ * campaign budget.
30393
+ * Mutually exclusive with `lifetimeMinSpendTarget` (400): the flavour must match the
30394
+ * campaign budget type, a daily budget takes a daily target.
30395
+ * Read it back with `GET /v1/ads/ad-sets/{adSetId}?fields=daily_min_spend_target`.
30396
+ *
30397
+ */
30398
+ dailyMinSpendTarget?: number;
30399
+ /**
30400
+ * Meta `lifetime_min_spend_target`: the lifetime-budget flavour of
30401
+ * `dailyMinSpendTarget`, in whole currency units. Send this one when the campaign
30402
+ * budget is a lifetime budget. Same rules and same rejections.
30403
+ *
30404
+ */
30405
+ lifetimeMinSpendTarget?: number;
30377
30406
  /**
30378
30407
  * Meta ad-set promoted_object, forwarded verbatim (same shape as /v1/ads/create). Unknown keys are rejected with 400.
30379
30408
  */
@@ -33583,6 +33612,9 @@ type CreateStandaloneAdData = {
33583
33612
  * Sending the bid fields in BOTH places returns a 400
33584
33613
  * (`mutually_exclusive_fields`), and sending any of them in
33585
33614
  * `adSetId` attach mode is a 400 too (the ad set already has its bid).
33615
+ * `dailyMinSpendTarget` / `lifetimeMinSpendTarget` set the new ad set's
33616
+ * minimum spend and live here only; they are rejected in `adSetId` attach
33617
+ * mode as well.
33586
33618
  *
33587
33619
  */
33588
33620
  platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData);
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.700",
39
+ version: "0.2.701",
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.700",
8
+ version: "0.2.701",
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.700",
3
+ "version": "0.2.701",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4668,6 +4668,14 @@ export type MetaAdsPlatformData = {
4668
4668
  * Decimal ROAS multiplier (2.0 = 2.0x). Required when bidStrategy is LOWEST_COST_WITH_MIN_ROAS; sending it without bidStrategy is a 400.
4669
4669
  */
4670
4670
  roasAverageFloor?: number;
4671
+ /**
4672
+ * Meta daily_min_spend_target on the ad set being created: the least it should spend per day, in whole currency units. It reserves a share of a CAMPAIGN budget, so it requires budgetLevel campaign or an existingCampaignId whose campaign has the budget (Advantage campaign budget / CBO); with an ad-set budget it is a 400, because Meta rejects a spend limit on an ad set that owns its budget. A target, not a guarantee. Mutually exclusive with lifetimeMinSpendTarget: the flavour must match the campaign budget type. Rejected with 400 on POST /v1/ads/boost and in adSetId attach mode: use PUT /v1/ads/ad-sets/{adSetId} for an ad set that already exists.
4673
+ */
4674
+ dailyMinSpendTarget?: number;
4675
+ /**
4676
+ * Meta lifetime_min_spend_target: the lifetime-budget flavour of dailyMinSpendTarget, in whole currency units. Same rules and same rejections.
4677
+ */
4678
+ lifetimeMinSpendTarget?: number;
4671
4679
  };
4672
4680
 
4673
4681
  export type Money = {
@@ -30833,6 +30841,27 @@ export type UpdateAdSetData = {
30833
30841
  * Ad set end_time (ISO 8601).
30834
30842
  */
30835
30843
  endDate?: string;
30844
+ /**
30845
+ * Meta `daily_min_spend_target`: the least this ad set should spend per day, in whole
30846
+ * currency units of the ad account. It reserves a share of a CAMPAIGN budget for one ad
30847
+ * set, so it requires a campaign using Advantage campaign budget (CBO). On an ad set
30848
+ * that owns its budget (ABO) this returns 409 — move the budget to the campaign with
30849
+ * `PUT /v1/ads/campaigns/{campaignId}` first. Meta treats it as a target, not a
30850
+ * guarantee, and rejects the combined minimum of a campaign's ad sets going over the
30851
+ * campaign budget.
30852
+ * Mutually exclusive with `lifetimeMinSpendTarget` (400): the flavour must match the
30853
+ * campaign budget type, a daily budget takes a daily target.
30854
+ * Read it back with `GET /v1/ads/ad-sets/{adSetId}?fields=daily_min_spend_target`.
30855
+ *
30856
+ */
30857
+ dailyMinSpendTarget?: number;
30858
+ /**
30859
+ * Meta `lifetime_min_spend_target`: the lifetime-budget flavour of
30860
+ * `dailyMinSpendTarget`, in whole currency units. Send this one when the campaign
30861
+ * budget is a lifetime budget. Same rules and same rejections.
30862
+ *
30863
+ */
30864
+ lifetimeMinSpendTarget?: number;
30836
30865
  /**
30837
30866
  * Meta ad-set promoted_object, forwarded verbatim (same shape as /v1/ads/create). Unknown keys are rejected with 400.
30838
30867
  */
@@ -34192,6 +34221,9 @@ export type CreateStandaloneAdData = {
34192
34221
  * Sending the bid fields in BOTH places returns a 400
34193
34222
  * (`mutually_exclusive_fields`), and sending any of them in
34194
34223
  * `adSetId` attach mode is a 400 too (the ad set already has its bid).
34224
+ * `dailyMinSpendTarget` / `lifetimeMinSpendTarget` set the new ad set's
34225
+ * minimum spend and live here only; they are rejected in `adSetId` attach
34226
+ * mode as well.
34195
34227
  *
34196
34228
  */
34197
34229
  platformSpecificData?: (LinkedInAdsPlatformData | MetaAdsPlatformData);