@getlatedev/node 0.2.1788 → 0.2.1790
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 +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -3
- package/src/generated/types.gen.ts +10 -2
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.
|
|
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.
|
|
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.
|
|
39
|
+
version: "0.2.1790",
|
|
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.
|
|
8
|
+
version: "0.2.1790",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -21117,8 +21117,9 @@ export const deleteAdAudience = <ThrowOnError extends boolean = false>(options:
|
|
|
21117
21117
|
* Send lists over 10,000 people as several requests to the same audience: each one adds to it.
|
|
21118
21118
|
*
|
|
21119
21119
|
* - **TikTok and Pinterest**: the first upload creates the audience on the platform, later uploads add to it. TikTok allows 24 updates per audience per day.
|
|
21120
|
-
* - **LinkedIn**:
|
|
21121
|
-
* - **LinkedIn
|
|
21120
|
+
* - **LinkedIn**: a list created from 2026-11-24 receives the emails right away, 5,000 per LinkedIn call, and LinkedIn matches them within 48 hours.
|
|
21121
|
+
* - **LinkedIn lists created before 2026-11-24**, or by a connection made before then that was not reconnected, take a list as one file: Zernio keeps the hashed emails and uploads the whole list about a minute after the requests stop (every 15 minutes while they keep coming).
|
|
21122
|
+
* - **LinkedIn limits**: such a list holds at most 300,000 contacts (more returns 422 and changes nothing).
|
|
21122
21123
|
*
|
|
21123
21124
|
* ### Reddit
|
|
21124
21125
|
*
|
|
@@ -21148,7 +21149,7 @@ export const addUsersToAdAudience = <ThrowOnError extends boolean = false>(optio
|
|
|
21148
21149
|
* - Max 10,000 users per request. The platform applies the removal asynchronously, so the audience size does not drop immediately.
|
|
21149
21150
|
* - TikTok, LinkedIn, Pinterest and X match on email only: a row without an email counts in `invalid`, and a request with no email at all returns 400. Google matches on email, phone and name with address, like the upload.
|
|
21150
21151
|
* - TikTok refuses a removal that would leave the audience under 1,000 people.
|
|
21151
|
-
* - LinkedIn removes them from the list
|
|
21152
|
+
* - LinkedIn removes them right away. On a list created before 2026-11-24, Zernio removes them from the list it keeps and uploads what is left about a minute later.
|
|
21152
21153
|
* - `invalidEntrySamples` is filled on Meta only.
|
|
21153
21154
|
*
|
|
21154
21155
|
*/
|
|
@@ -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.
|
|
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;
|