@getlatedev/node 0.2.1788 → 0.2.1789

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
@@ -76348,6 +76348,7 @@ type CreateStandaloneAdData = {
76348
76348
  * - **LinkedIn:** required for `traffic` ads, optional for `engagement` / `awareness`. `imageUrl` + `linkUrl` publishes an ARTICLE-content creative (LinkedIn's article ad format), with the image as thumbnail and `longHeadline` as description.
76349
76349
  * - **OpenAI Ads:** required (the chat card's target_url).
76350
76350
  * - **Reddit:** required on image and video ads (the post's destination and the ad's click URL), the fallback for carousel cards without their own, and refused with 400 on text ads.
76351
+ * - **TikTok:** not required with goal `engagement` or `app_promotion`. With `smartPlus: true` and `adSetId`, required unless that ad group's campaign promotes an app.
76351
76352
  */
76352
76353
  linkUrl?: string;
76353
76354
  /**
@@ -76483,7 +76484,7 @@ type CreateStandaloneAdData = {
76483
76484
  *
76484
76485
  * **Platforms.** Supported on Meta (facebook, instagram), Google Ads, TikTok, LinkedIn and Reddit Ads.
76485
76486
  *
76486
- * - TikTok: `adSetId` is the ad group ID; the new ad inherits the ad group's bid, budget and targeting.
76487
+ * - TikTok: `adSetId` is the ad group ID; the new ad inherits the ad group's bid, budget and targeting. For an ad group of an Upgraded Smart+ campaign, also send `smartPlus: true` (see `smartPlus`).
76487
76488
  * - LinkedIn: `adSetId` is the LinkedIn Campaign ID (numeric). We attach a new Creative to that Campaign, so its `platformSpecificData` bidding, targeting, budget and schedule are inherited (passing those fields returns 400).
76488
76489
  * - Reddit Ads: `adSetId` is the AD GROUP id. Only the post and the ad are created; the ad group keeps its budget, schedule, targeting, bid and optimization. `goal` is not required. An ad group of another ad account returns 404.
76489
76490
  * - Reddit Ads, rejected with 400: `budgetAmount`, `budgetType`, `startDate`, `endDate`, targeting fields, `promotedObject`, `tracking.pixelId` and `optimizationGoal`.
@@ -77351,7 +77352,14 @@ type CreateStandaloneAdData = {
77351
77352
  *
77352
77353
  * Targeting works like on any TikTok ad (defaults to `countries: ["US"]` when omitted), and TikTok automates delivery within it.
77353
77354
  *
77354
- * The budget lives on the Smart+ campaign (Campaign Budget Optimization). A `lifetime` budget without `endDate` ends 7 days after it starts. Smart+ needs `goal` sent; it is never inferred. Cannot be combined with `adSetId`.
77355
+ * The budget lives on the Smart+ campaign (Campaign Budget Optimization). A `lifetime` budget without `endDate` ends 7 days after it starts. Smart+ needs `goal` sent; it is never inferred.
77356
+ *
77357
+ * **Adding a creative to an existing Smart+ ad group.** With `adSetId` (an ad group of an Upgraded Smart+ campaign), the uploaded video (`imageUrl`) and `body` become one more Smart+ ad in that ad group, under `identityType` / `identityId`.
77358
+ *
77359
+ * - The campaign keeps its goal, budget and bid, so `goal`, `promotedObject` and the budget fields are not needed. Targeting stays the ad group's (`smartTargeting` returns 400).
77360
+ * - `linkUrl` is required unless the campaign is `app_promotion`, where the app is the destination and `linkUrl` is not used. Ad groups that use a TikTok Instant Form are not supported.
77361
+ * - An ad group outside a Smart+ campaign returns 400 on `adSetId`.
77362
+ * - `status: PAUSED` leaves the new ad paused. `validateOnly` is not supported with `adSetId`.
77355
77363
  *
77356
77364
  */
77357
77365
  smartPlus?: boolean;
package/dist/index.d.ts CHANGED
@@ -76348,6 +76348,7 @@ type CreateStandaloneAdData = {
76348
76348
  * - **LinkedIn:** required for `traffic` ads, optional for `engagement` / `awareness`. `imageUrl` + `linkUrl` publishes an ARTICLE-content creative (LinkedIn's article ad format), with the image as thumbnail and `longHeadline` as description.
76349
76349
  * - **OpenAI Ads:** required (the chat card's target_url).
76350
76350
  * - **Reddit:** required on image and video ads (the post's destination and the ad's click URL), the fallback for carousel cards without their own, and refused with 400 on text ads.
76351
+ * - **TikTok:** not required with goal `engagement` or `app_promotion`. With `smartPlus: true` and `adSetId`, required unless that ad group's campaign promotes an app.
76351
76352
  */
76352
76353
  linkUrl?: string;
76353
76354
  /**
@@ -76483,7 +76484,7 @@ type CreateStandaloneAdData = {
76483
76484
  *
76484
76485
  * **Platforms.** Supported on Meta (facebook, instagram), Google Ads, TikTok, LinkedIn and Reddit Ads.
76485
76486
  *
76486
- * - TikTok: `adSetId` is the ad group ID; the new ad inherits the ad group's bid, budget and targeting.
76487
+ * - TikTok: `adSetId` is the ad group ID; the new ad inherits the ad group's bid, budget and targeting. For an ad group of an Upgraded Smart+ campaign, also send `smartPlus: true` (see `smartPlus`).
76487
76488
  * - LinkedIn: `adSetId` is the LinkedIn Campaign ID (numeric). We attach a new Creative to that Campaign, so its `platformSpecificData` bidding, targeting, budget and schedule are inherited (passing those fields returns 400).
76488
76489
  * - Reddit Ads: `adSetId` is the AD GROUP id. Only the post and the ad are created; the ad group keeps its budget, schedule, targeting, bid and optimization. `goal` is not required. An ad group of another ad account returns 404.
76489
76490
  * - Reddit Ads, rejected with 400: `budgetAmount`, `budgetType`, `startDate`, `endDate`, targeting fields, `promotedObject`, `tracking.pixelId` and `optimizationGoal`.
@@ -77351,7 +77352,14 @@ type CreateStandaloneAdData = {
77351
77352
  *
77352
77353
  * Targeting works like on any TikTok ad (defaults to `countries: ["US"]` when omitted), and TikTok automates delivery within it.
77353
77354
  *
77354
- * The budget lives on the Smart+ campaign (Campaign Budget Optimization). A `lifetime` budget without `endDate` ends 7 days after it starts. Smart+ needs `goal` sent; it is never inferred. Cannot be combined with `adSetId`.
77355
+ * The budget lives on the Smart+ campaign (Campaign Budget Optimization). A `lifetime` budget without `endDate` ends 7 days after it starts. Smart+ needs `goal` sent; it is never inferred.
77356
+ *
77357
+ * **Adding a creative to an existing Smart+ ad group.** With `adSetId` (an ad group of an Upgraded Smart+ campaign), the uploaded video (`imageUrl`) and `body` become one more Smart+ ad in that ad group, under `identityType` / `identityId`.
77358
+ *
77359
+ * - The campaign keeps its goal, budget and bid, so `goal`, `promotedObject` and the budget fields are not needed. Targeting stays the ad group's (`smartTargeting` returns 400).
77360
+ * - `linkUrl` is required unless the campaign is `app_promotion`, where the app is the destination and `linkUrl` is not used. Ad groups that use a TikTok Instant Form are not supported.
77361
+ * - An ad group outside a Smart+ campaign returns 400 on `adSetId`.
77362
+ * - `status: PAUSED` leaves the new ad paused. `validateOnly` is not supported with `adSetId`.
77355
77363
  *
77356
77364
  */
77357
77365
  smartPlus?: boolean;
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.1788",
39
+ version: "0.2.1789",
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.1788",
8
+ version: "0.2.1789",
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.1788",
3
+ "version": "0.2.1789",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -78154,6 +78154,7 @@ export type CreateStandaloneAdData = {
78154
78154
  * - **LinkedIn:** required for `traffic` ads, optional for `engagement` / `awareness`. `imageUrl` + `linkUrl` publishes an ARTICLE-content creative (LinkedIn's article ad format), with the image as thumbnail and `longHeadline` as description.
78155
78155
  * - **OpenAI Ads:** required (the chat card's target_url).
78156
78156
  * - **Reddit:** required on image and video ads (the post's destination and the ad's click URL), the fallback for carousel cards without their own, and refused with 400 on text ads.
78157
+ * - **TikTok:** not required with goal `engagement` or `app_promotion`. With `smartPlus: true` and `adSetId`, required unless that ad group's campaign promotes an app.
78157
78158
  */
78158
78159
  linkUrl?: string;
78159
78160
  /**
@@ -78289,7 +78290,7 @@ export type CreateStandaloneAdData = {
78289
78290
  *
78290
78291
  * **Platforms.** Supported on Meta (facebook, instagram), Google Ads, TikTok, LinkedIn and Reddit Ads.
78291
78292
  *
78292
- * - TikTok: `adSetId` is the ad group ID; the new ad inherits the ad group's bid, budget and targeting.
78293
+ * - TikTok: `adSetId` is the ad group ID; the new ad inherits the ad group's bid, budget and targeting. For an ad group of an Upgraded Smart+ campaign, also send `smartPlus: true` (see `smartPlus`).
78293
78294
  * - LinkedIn: `adSetId` is the LinkedIn Campaign ID (numeric). We attach a new Creative to that Campaign, so its `platformSpecificData` bidding, targeting, budget and schedule are inherited (passing those fields returns 400).
78294
78295
  * - Reddit Ads: `adSetId` is the AD GROUP id. Only the post and the ad are created; the ad group keeps its budget, schedule, targeting, bid and optimization. `goal` is not required. An ad group of another ad account returns 404.
78295
78296
  * - Reddit Ads, rejected with 400: `budgetAmount`, `budgetType`, `startDate`, `endDate`, targeting fields, `promotedObject`, `tracking.pixelId` and `optimizationGoal`.
@@ -79157,7 +79158,14 @@ export type CreateStandaloneAdData = {
79157
79158
  *
79158
79159
  * Targeting works like on any TikTok ad (defaults to `countries: ["US"]` when omitted), and TikTok automates delivery within it.
79159
79160
  *
79160
- * The budget lives on the Smart+ campaign (Campaign Budget Optimization). A `lifetime` budget without `endDate` ends 7 days after it starts. Smart+ needs `goal` sent; it is never inferred. Cannot be combined with `adSetId`.
79161
+ * The budget lives on the Smart+ campaign (Campaign Budget Optimization). A `lifetime` budget without `endDate` ends 7 days after it starts. Smart+ needs `goal` sent; it is never inferred.
79162
+ *
79163
+ * **Adding a creative to an existing Smart+ ad group.** With `adSetId` (an ad group of an Upgraded Smart+ campaign), the uploaded video (`imageUrl`) and `body` become one more Smart+ ad in that ad group, under `identityType` / `identityId`.
79164
+ *
79165
+ * - The campaign keeps its goal, budget and bid, so `goal`, `promotedObject` and the budget fields are not needed. Targeting stays the ad group's (`smartTargeting` returns 400).
79166
+ * - `linkUrl` is required unless the campaign is `app_promotion`, where the app is the destination and `linkUrl` is not used. Ad groups that use a TikTok Instant Form are not supported.
79167
+ * - An ad group outside a Smart+ campaign returns 400 on `adSetId`.
79168
+ * - `status: PAUSED` leaves the new ad paused. `validateOnly` is not supported with `adSetId`.
79161
79169
  *
79162
79170
  */
79163
79171
  smartPlus?: boolean;