@getlatedev/node 0.2.1420 → 0.2.1422

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
@@ -52425,6 +52425,8 @@ type UpdateAdData = {
52425
52425
  * - Meta creatives are immutable: any change creates a new creative and repoints the ad. The old creative stays on the ad account for historical reporting.
52426
52426
  * - `creativeFeatures` is Meta-only. Omitted settings are preserved from the live creative, including on full rebuilds; a supplied creativeFeatures map overrides individual existing keys.
52427
52427
  *
52428
+ * - A `creative` object with no recognised field (`promotion` alone does not count) is a 400 `missing_required_field` when it is the only update, and is ignored (no creative rebuild) next to another updatable field.
52429
+ *
52428
52430
  * **TikTok**: patch-style. Pass any subset.
52429
52431
  *
52430
52432
  * - `headline` is ignored (no headline slot).
@@ -52433,7 +52435,9 @@ type UpdateAdData = {
52433
52435
  *
52434
52436
  * **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only update returns 400.
52435
52437
  *
52436
- * - Uploads the media, creates a new inline media creative on the same campaign, and pauses the old creative (best-effort). The old creative is kept for historical reporting.
52438
+ * - Uploads the media, creates a new inline media creative on the same campaign, and removes the old creative. `platformAdId` and `creative.creativeId` move to the new one.
52439
+ * - The new creative keeps the old one's state. A `DRAFT` or `PAUSED` creative is re-created `DRAFT`, because LinkedIn refuses `PAUSED` before review is `APPROVED`.
52440
+ * - If the old creative cannot be removed, the new one is deleted and the LinkedIn error is returned.
52437
52441
  * - `videoId` and `existingCreativeId` are Meta-only and return 400.
52438
52442
  *
52439
52443
  */
@@ -52446,6 +52450,12 @@ type UpdateAdData = {
52446
52450
  */
52447
52451
  promotion?: MetaPromotion;
52448
52452
  creativeFeatures?: MetaCreativeFeatures;
52453
+ /**
52454
+ * Meta catalog template ads only. Rebuilds the creative with this `template_data.format_option` (same mapping as on create) and repoints the ad at the new creative.
52455
+ *
52456
+ * Returns 400 on any other network, on a Meta ad without a catalog template creative, or with `existingCreativeId`. Copy or media fields return 422 on a catalog creative.
52457
+ */
52458
+ catalogFormat?: 'single_image' | 'carousel_images_multi_items' | 'carousel_images_single_item' | 'carousel_slideshows';
52449
52459
  /**
52450
52460
  * Meta and LinkedIn (TikTok has no headline slot)
52451
52461
  */
package/dist/index.d.ts CHANGED
@@ -52425,6 +52425,8 @@ type UpdateAdData = {
52425
52425
  * - Meta creatives are immutable: any change creates a new creative and repoints the ad. The old creative stays on the ad account for historical reporting.
52426
52426
  * - `creativeFeatures` is Meta-only. Omitted settings are preserved from the live creative, including on full rebuilds; a supplied creativeFeatures map overrides individual existing keys.
52427
52427
  *
52428
+ * - A `creative` object with no recognised field (`promotion` alone does not count) is a 400 `missing_required_field` when it is the only update, and is ignored (no creative rebuild) next to another updatable field.
52429
+ *
52428
52430
  * **TikTok**: patch-style. Pass any subset.
52429
52431
  *
52430
52432
  * - `headline` is ignored (no headline slot).
@@ -52433,7 +52435,9 @@ type UpdateAdData = {
52433
52435
  *
52434
52436
  * **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only update returns 400.
52435
52437
  *
52436
- * - Uploads the media, creates a new inline media creative on the same campaign, and pauses the old creative (best-effort). The old creative is kept for historical reporting.
52438
+ * - Uploads the media, creates a new inline media creative on the same campaign, and removes the old creative. `platformAdId` and `creative.creativeId` move to the new one.
52439
+ * - The new creative keeps the old one's state. A `DRAFT` or `PAUSED` creative is re-created `DRAFT`, because LinkedIn refuses `PAUSED` before review is `APPROVED`.
52440
+ * - If the old creative cannot be removed, the new one is deleted and the LinkedIn error is returned.
52437
52441
  * - `videoId` and `existingCreativeId` are Meta-only and return 400.
52438
52442
  *
52439
52443
  */
@@ -52446,6 +52450,12 @@ type UpdateAdData = {
52446
52450
  */
52447
52451
  promotion?: MetaPromotion;
52448
52452
  creativeFeatures?: MetaCreativeFeatures;
52453
+ /**
52454
+ * Meta catalog template ads only. Rebuilds the creative with this `template_data.format_option` (same mapping as on create) and repoints the ad at the new creative.
52455
+ *
52456
+ * Returns 400 on any other network, on a Meta ad without a catalog template creative, or with `existingCreativeId`. Copy or media fields return 422 on a catalog creative.
52457
+ */
52458
+ catalogFormat?: 'single_image' | 'carousel_images_multi_items' | 'carousel_images_single_item' | 'carousel_slideshows';
52449
52459
  /**
52450
52460
  * Meta and LinkedIn (TikTok has no headline slot)
52451
52461
  */
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.1420",
39
+ version: "0.2.1422",
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.1420",
8
+ version: "0.2.1422",
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.1420",
3
+ "version": "0.2.1422",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13641,7 +13641,8 @@ export const getAd = <ThrowOnError extends boolean = false>(options: OptionsLega
13641
13641
  *
13642
13642
  * - **Status and budget**: supported.
13643
13643
  * - **Targeting**: countries or regions, excludedLocations (countries), the B2B facets, and audience segments. Applied to the LinkedIn Campaign via PARTIAL_UPDATE, and REPLACES the campaign's entire targetingCriteria, not a merge.
13644
- * - **Creative**: uploads new media, creates a replacement inline creative on the same campaign, and pauses the old one.
13644
+ * - **Creative**: uploads new media, creates a replacement inline creative on the same campaign, and removes the old one (it is deleted, the ad's `platformAdId` and `creative.creativeId` move to the new creative, and the new creative keeps the old one's held-off state: `DRAFT` stays `DRAFT`).
13645
+ * - **Name**: updating `name` returns 400 (LinkedIn does not support renaming an ad).
13645
13646
  *
13646
13647
  * ### Reddit Ads
13647
13648
  *
@@ -53257,6 +53257,8 @@ export type UpdateAdData = {
53257
53257
  * - Meta creatives are immutable: any change creates a new creative and repoints the ad. The old creative stays on the ad account for historical reporting.
53258
53258
  * - `creativeFeatures` is Meta-only. Omitted settings are preserved from the live creative, including on full rebuilds; a supplied creativeFeatures map overrides individual existing keys.
53259
53259
  *
53260
+ * - A `creative` object with no recognised field (`promotion` alone does not count) is a 400 `missing_required_field` when it is the only update, and is ignored (no creative rebuild) next to another updatable field.
53261
+ *
53260
53262
  * **TikTok**: patch-style. Pass any subset.
53261
53263
  *
53262
53264
  * - `headline` is ignored (no headline slot).
@@ -53265,7 +53267,9 @@ export type UpdateAdData = {
53265
53267
  *
53266
53268
  * **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only update returns 400.
53267
53269
  *
53268
- * - Uploads the media, creates a new inline media creative on the same campaign, and pauses the old creative (best-effort). The old creative is kept for historical reporting.
53270
+ * - Uploads the media, creates a new inline media creative on the same campaign, and removes the old creative. `platformAdId` and `creative.creativeId` move to the new one.
53271
+ * - The new creative keeps the old one's state. A `DRAFT` or `PAUSED` creative is re-created `DRAFT`, because LinkedIn refuses `PAUSED` before review is `APPROVED`.
53272
+ * - If the old creative cannot be removed, the new one is deleted and the LinkedIn error is returned.
53269
53273
  * - `videoId` and `existingCreativeId` are Meta-only and return 400.
53270
53274
  *
53271
53275
  */
@@ -53278,6 +53282,12 @@ export type UpdateAdData = {
53278
53282
  */
53279
53283
  promotion?: MetaPromotion;
53280
53284
  creativeFeatures?: MetaCreativeFeatures;
53285
+ /**
53286
+ * Meta catalog template ads only. Rebuilds the creative with this `template_data.format_option` (same mapping as on create) and repoints the ad at the new creative.
53287
+ *
53288
+ * Returns 400 on any other network, on a Meta ad without a catalog template creative, or with `existingCreativeId`. Copy or media fields return 422 on a catalog creative.
53289
+ */
53290
+ catalogFormat?: 'single_image' | 'carousel_images_multi_items' | 'carousel_images_single_item' | 'carousel_slideshows';
53281
53291
  /**
53282
53292
  * Meta and LinkedIn (TikTok has no headline slot)
53283
53293
  */