@getlatedev/node 0.2.922 → 0.2.923

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
@@ -35459,7 +35459,7 @@ type UpdateAdCampaignData = {
35459
35459
  */
35460
35460
  allowSharedBudgetUpdate?: boolean;
35461
35461
  /**
35462
- * Meta CBO or Google daily campaign budget, in whole currency units.
35462
+ * Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
35463
35463
  */
35464
35464
  budget?: {
35465
35465
  /**
@@ -36498,7 +36498,7 @@ type UpdateAdData = {
36498
36498
  */
36499
36499
  amount?: number;
36500
36500
  /**
36501
- * OpenAI Ads accepts lifetime only; sending daily returns 422.
36501
+ * OpenAI Ads accepts both and sets the campaign's single spend cap, replacing the previous daily or lifetime cap.
36502
36502
  */
36503
36503
  type?: 'daily' | 'lifetime';
36504
36504
  };
@@ -40377,7 +40377,7 @@ type CreateStandaloneAdData = {
40377
40377
  */
40378
40378
  budgetAmount?: number;
40379
40379
  /**
40380
- * Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads accepts lifetime only (no daily-budget concept on the platform); sending daily returns 422. OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
40380
+ * Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads creation accepts lifetime only; sending daily returns 422 (daily caps can be set afterwards with PUT /v1/ads/campaigns/{campaignId}). OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
40381
40381
  */
40382
40382
  budgetType?: 'daily' | 'lifetime';
40383
40383
  /**
package/dist/index.d.ts CHANGED
@@ -35459,7 +35459,7 @@ type UpdateAdCampaignData = {
35459
35459
  */
35460
35460
  allowSharedBudgetUpdate?: boolean;
35461
35461
  /**
35462
- * Meta CBO or Google daily campaign budget, in whole currency units.
35462
+ * Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
35463
35463
  */
35464
35464
  budget?: {
35465
35465
  /**
@@ -36498,7 +36498,7 @@ type UpdateAdData = {
36498
36498
  */
36499
36499
  amount?: number;
36500
36500
  /**
36501
- * OpenAI Ads accepts lifetime only; sending daily returns 422.
36501
+ * OpenAI Ads accepts both and sets the campaign's single spend cap, replacing the previous daily or lifetime cap.
36502
36502
  */
36503
36503
  type?: 'daily' | 'lifetime';
36504
36504
  };
@@ -40377,7 +40377,7 @@ type CreateStandaloneAdData = {
40377
40377
  */
40378
40378
  budgetAmount?: number;
40379
40379
  /**
40380
- * Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads accepts lifetime only (no daily-budget concept on the platform); sending daily returns 422. OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
40380
+ * Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads creation accepts lifetime only; sending daily returns 422 (daily caps can be set afterwards with PUT /v1/ads/campaigns/{campaignId}). OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
40381
40381
  */
40382
40382
  budgetType?: 'daily' | 'lifetime';
40383
40383
  /**
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: "@getlatedev/node",
39
- version: "0.2.922",
39
+ version: "0.2.923",
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: "@getlatedev/node",
8
- version: "0.2.922",
8
+ version: "0.2.923",
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": "@getlatedev/node",
3
- "version": "0.2.922",
3
+ "version": "0.2.923",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -8866,7 +8866,7 @@ export const getAdCampaignDetails = <ThrowOnError extends boolean = false>(optio
8866
8866
  * | `bidStrategy` | Yes | Yes | 501 |
8867
8867
  * | `bidAmount`, `roasAverageFloor` | 400 (ad-set level) | Yes | 400 |
8868
8868
  * | `portfolioBidStrategyId` | 400 | Yes | 400 |
8869
- * | `budget` (CBO; ABO returns 409) | Yes | Daily only | 501 |
8869
+ * | `budget` (CBO; ABO returns 409) | Yes | Daily only | OpenAI: daily or lifetime; others 501 |
8870
8870
  * | `name` | Yes | 501 | 501 |
8871
8871
  * | `platformSpecificData.spendCap` | Yes | 400 | 400 |
8872
8872
  * | `accountId` (empty campaigns) | Yes | - | - |
@@ -8887,6 +8887,10 @@ export const getAdCampaignDetails = <ThrowOnError extends boolean = false>(optio
8887
8887
  * 409 unless allowSharedBudgetUpdate=true is explicitly supplied, because the change
8888
8888
  * affects every campaign using that budget. Unknown sharing state also returns 409.
8889
8889
  *
8890
+ * OpenAI Ads campaigns carry exactly one spend cap: `budget.type` daily or lifetime
8891
+ * replaces whichever cap the campaign had, with a minimum of 1 in the ad account's
8892
+ * currency (422 below it).
8893
+ *
8890
8894
  * `accountId` forwards the update straight to Meta for a campaign with zero ads,
8891
8895
  * which would otherwise 404; the response then carries `updated: 0`.
8892
8896
  *
@@ -9392,7 +9396,7 @@ export const getAd = <ThrowOnError extends boolean = false>(options: OptionsLega
9392
9396
  * campaign, pauses the old one).
9393
9397
  * - **Pinterest / X / OpenAI Ads**: status + budget only. Sending
9394
9398
  * `targeting` or `creative` returns 501 with code `unsupported_platform_operation`.
9395
- * OpenAI Ads budget is lifetime-only (see `budget.type` below).
9399
+ * OpenAI Ads budget is the campaign's spend cap, daily or lifetime (see `budget.type` below).
9396
9400
  *
9397
9401
  * **Google location and language replacement:** locations, languages and devices are
9398
9402
  * campaign-level criteria on Google, so these edits apply to every ad group and ad in
@@ -35814,7 +35814,7 @@ export type UpdateAdCampaignData = {
35814
35814
  */
35815
35815
  allowSharedBudgetUpdate?: boolean;
35816
35816
  /**
35817
- * Meta CBO or Google daily campaign budget, in whole currency units.
35817
+ * Meta CBO, Google daily, or OpenAI Ads daily or lifetime campaign budget, in whole currency units.
35818
35818
  */
35819
35819
  budget?: {
35820
35820
  /**
@@ -36910,7 +36910,7 @@ export type UpdateAdData = {
36910
36910
  */
36911
36911
  amount?: number;
36912
36912
  /**
36913
- * OpenAI Ads accepts lifetime only; sending daily returns 422.
36913
+ * OpenAI Ads accepts both and sets the campaign's single spend cap, replacing the previous daily or lifetime cap.
36914
36914
  */
36915
36915
  type?: 'daily' | 'lifetime';
36916
36916
  };
@@ -41035,7 +41035,7 @@ export type CreateStandaloneAdData = {
41035
41035
  */
41036
41036
  budgetAmount?: number;
41037
41037
  /**
41038
- * Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads accepts lifetime only (no daily-budget concept on the platform); sending daily returns 422. OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
41038
+ * Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. OpenAI Ads creation accepts lifetime only; sending daily returns 422 (daily caps can be set afterwards with PUT /v1/ads/campaigns/{campaignId}). OpenAI Ads lifetime budgets require `endDate` to give the lifetime cap a spend window.
41039
41039
  */
41040
41040
  budgetType?: 'daily' | 'lifetime';
41041
41041
  /**