@getlatedev/node 0.2.1421 → 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
@@ -52435,7 +52435,9 @@ type UpdateAdData = {
52435
52435
  *
52436
52436
  * **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only update returns 400.
52437
52437
  *
52438
- * - 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.
52439
52441
  * - `videoId` and `existingCreativeId` are Meta-only and return 400.
52440
52442
  *
52441
52443
  */
package/dist/index.d.ts CHANGED
@@ -52435,7 +52435,9 @@ type UpdateAdData = {
52435
52435
  *
52436
52436
  * **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only update returns 400.
52437
52437
  *
52438
- * - 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.
52439
52441
  * - `videoId` and `existingCreativeId` are Meta-only and return 400.
52440
52442
  *
52441
52443
  */
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.1421",
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.1421",
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.1421",
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
  *
@@ -53267,7 +53267,9 @@ export type UpdateAdData = {
53267
53267
  *
53268
53268
  * **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only update returns 400.
53269
53269
  *
53270
- * - 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.
53271
53273
  * - `videoId` and `existingCreativeId` are Meta-only and return 400.
53272
53274
  *
53273
53275
  */