@getlatedev/node 0.2.370 → 0.2.371
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 +26 -13
- package/dist/index.d.ts +26 -13
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +11 -0
- package/src/generated/types.gen.ts +26 -13
package/dist/index.d.mts
CHANGED
|
@@ -22514,11 +22514,15 @@ type BulkUpdateAdCampaignStatusError = (unknown | {
|
|
|
22514
22514
|
});
|
|
22515
22515
|
type DuplicateAdCampaignData = {
|
|
22516
22516
|
body: {
|
|
22517
|
-
platform: 'facebook' | 'instagram' | 'tiktok';
|
|
22517
|
+
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
|
|
22518
22518
|
/**
|
|
22519
22519
|
* Copy child ad sets + ads + creatives + targeting
|
|
22520
22520
|
*/
|
|
22521
22521
|
deepCopy?: boolean;
|
|
22522
|
+
/**
|
|
22523
|
+
* ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
|
|
22524
|
+
*
|
|
22525
|
+
*/
|
|
22522
22526
|
statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
|
|
22523
22527
|
/**
|
|
22524
22528
|
* Reschedule the copied hierarchy's start time
|
|
@@ -23753,22 +23757,31 @@ type CreateStandaloneAdData = {
|
|
|
23753
23757
|
* to build N full ads sharing one ad set: create the first ad
|
|
23754
23758
|
* via the normal shape, then attach the rest one call each.
|
|
23755
23759
|
*
|
|
23756
|
-
* Supported on Meta (facebook, instagram)
|
|
23757
|
-
* the `adSetId` is the ad group ID; the
|
|
23758
|
-
* ad group's bid + budget + targeting.
|
|
23760
|
+
* Supported on Meta (facebook, instagram), TikTok, and
|
|
23761
|
+
* LinkedIn. On TikTok the `adSetId` is the ad group ID; the
|
|
23762
|
+
* new ad inherits the ad group's bid + budget + targeting.
|
|
23763
|
+
* On LinkedIn the `adSetId` is the LinkedIn Campaign ID
|
|
23764
|
+
* (numeric); we attach a new Creative to that Campaign, so
|
|
23765
|
+
* the Campaign's `platformSpecificData` bidding, targeting,
|
|
23766
|
+
* budget and schedule are inherited (passing those fields
|
|
23767
|
+
* returns 400).
|
|
23759
23768
|
*
|
|
23760
23769
|
*/
|
|
23761
23770
|
adSetId?: string;
|
|
23762
23771
|
/**
|
|
23763
|
-
* Meta
|
|
23764
|
-
* instead of creating a new one
|
|
23765
|
-
* The new ad set's budget
|
|
23766
|
-
*
|
|
23767
|
-
*
|
|
23768
|
-
*
|
|
23769
|
-
*
|
|
23770
|
-
*
|
|
23771
|
-
*
|
|
23772
|
+
* Meta + LinkedIn. On Meta: add the new ad set under this
|
|
23773
|
+
* EXISTING campaign instead of creating a new one
|
|
23774
|
+
* (multi-ad-set audience testing). The new ad set's budget
|
|
23775
|
+
* is matched to the campaign's mode automatically: for a
|
|
23776
|
+
* CBO campaign (campaign-level budget) omit
|
|
23777
|
+
* `budgetAmount`/`budgetType` — the campaign owns the
|
|
23778
|
+
* budget; for an ABO campaign pass them (they go on the new
|
|
23779
|
+
* ad set). On LinkedIn: create a new Campaign (and its
|
|
23780
|
+
* Creative) under this EXISTING CampaignGroup. On failure
|
|
23781
|
+
* only the entities we authored are cleaned up; the
|
|
23782
|
+
* pre-existing parent is left untouched and is never
|
|
23783
|
+
* (re)activated. Mutually exclusive with `adSetId` and
|
|
23784
|
+
* `creatives[]`.
|
|
23772
23785
|
*
|
|
23773
23786
|
*/
|
|
23774
23787
|
existingCampaignId?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -22514,11 +22514,15 @@ type BulkUpdateAdCampaignStatusError = (unknown | {
|
|
|
22514
22514
|
});
|
|
22515
22515
|
type DuplicateAdCampaignData = {
|
|
22516
22516
|
body: {
|
|
22517
|
-
platform: 'facebook' | 'instagram' | 'tiktok';
|
|
22517
|
+
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
|
|
22518
22518
|
/**
|
|
22519
22519
|
* Copy child ad sets + ads + creatives + targeting
|
|
22520
22520
|
*/
|
|
22521
22521
|
deepCopy?: boolean;
|
|
22522
|
+
/**
|
|
22523
|
+
* ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
|
|
22524
|
+
*
|
|
22525
|
+
*/
|
|
22522
22526
|
statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
|
|
22523
22527
|
/**
|
|
22524
22528
|
* Reschedule the copied hierarchy's start time
|
|
@@ -23753,22 +23757,31 @@ type CreateStandaloneAdData = {
|
|
|
23753
23757
|
* to build N full ads sharing one ad set: create the first ad
|
|
23754
23758
|
* via the normal shape, then attach the rest one call each.
|
|
23755
23759
|
*
|
|
23756
|
-
* Supported on Meta (facebook, instagram)
|
|
23757
|
-
* the `adSetId` is the ad group ID; the
|
|
23758
|
-
* ad group's bid + budget + targeting.
|
|
23760
|
+
* Supported on Meta (facebook, instagram), TikTok, and
|
|
23761
|
+
* LinkedIn. On TikTok the `adSetId` is the ad group ID; the
|
|
23762
|
+
* new ad inherits the ad group's bid + budget + targeting.
|
|
23763
|
+
* On LinkedIn the `adSetId` is the LinkedIn Campaign ID
|
|
23764
|
+
* (numeric); we attach a new Creative to that Campaign, so
|
|
23765
|
+
* the Campaign's `platformSpecificData` bidding, targeting,
|
|
23766
|
+
* budget and schedule are inherited (passing those fields
|
|
23767
|
+
* returns 400).
|
|
23759
23768
|
*
|
|
23760
23769
|
*/
|
|
23761
23770
|
adSetId?: string;
|
|
23762
23771
|
/**
|
|
23763
|
-
* Meta
|
|
23764
|
-
* instead of creating a new one
|
|
23765
|
-
* The new ad set's budget
|
|
23766
|
-
*
|
|
23767
|
-
*
|
|
23768
|
-
*
|
|
23769
|
-
*
|
|
23770
|
-
*
|
|
23771
|
-
*
|
|
23772
|
+
* Meta + LinkedIn. On Meta: add the new ad set under this
|
|
23773
|
+
* EXISTING campaign instead of creating a new one
|
|
23774
|
+
* (multi-ad-set audience testing). The new ad set's budget
|
|
23775
|
+
* is matched to the campaign's mode automatically: for a
|
|
23776
|
+
* CBO campaign (campaign-level budget) omit
|
|
23777
|
+
* `budgetAmount`/`budgetType` — the campaign owns the
|
|
23778
|
+
* budget; for an ABO campaign pass them (they go on the new
|
|
23779
|
+
* ad set). On LinkedIn: create a new Campaign (and its
|
|
23780
|
+
* Creative) under this EXISTING CampaignGroup. On failure
|
|
23781
|
+
* only the entities we authored are cleaned up; the
|
|
23782
|
+
* pre-existing parent is left untouched and is never
|
|
23783
|
+
* (re)activated. Mutually exclusive with `adSetId` and
|
|
23784
|
+
* `creatives[]`.
|
|
23772
23785
|
*
|
|
23773
23786
|
*/
|
|
23774
23787
|
existingCampaignId?: string;
|
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.371",
|
|
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.371",
|
|
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
|
@@ -6257,6 +6257,17 @@ export const bulkUpdateAdCampaignStatus = <ThrowOnError extends boolean = false>
|
|
|
6257
6257
|
* carrying over budget / targeting / bid_type / bid_price /
|
|
6258
6258
|
* deep_bid_type / creative fields. Spark Ad linkage (`tiktok_item_id`)
|
|
6259
6259
|
* is preserved.
|
|
6260
|
+
* - **LinkedIn** has no native copy primitive; Zernio walks the source
|
|
6261
|
+
* CampaignGroup → Campaigns → Creatives and recreates each entity,
|
|
6262
|
+
* carrying over `type` / `costType` / `unitCost` /
|
|
6263
|
+
* `optimizationTargetType` / `creativeSelection` / `objectiveType` /
|
|
6264
|
+
* `format` / `dailyBudget` / `totalBudget` / `targetingCriteria` /
|
|
6265
|
+
* `runSchedule` and every Creative's `content` object verbatim.
|
|
6266
|
+
* `statusOption: INHERITED_FROM_SOURCE` is evaluated **per entity**:
|
|
6267
|
+
* any Group / Campaign / Creative whose source is `ACTIVE` gets its
|
|
6268
|
+
* clone activated too. Duplicating an ACTIVE campaign with
|
|
6269
|
+
* `INHERITED_FROM_SOURCE` starts a second front of spend the moment
|
|
6270
|
+
* the clone activates — the safe default is `PAUSED`.
|
|
6260
6271
|
*
|
|
6261
6272
|
* The new hierarchy is asynchronous to materialize in our DB — we
|
|
6262
6273
|
* trigger sync discovery automatically. Set `syncAfter: false` to
|
|
@@ -23116,11 +23116,15 @@ export type BulkUpdateAdCampaignStatusError = (unknown | {
|
|
|
23116
23116
|
|
|
23117
23117
|
export type DuplicateAdCampaignData = {
|
|
23118
23118
|
body: {
|
|
23119
|
-
platform: 'facebook' | 'instagram' | 'tiktok';
|
|
23119
|
+
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin';
|
|
23120
23120
|
/**
|
|
23121
23121
|
* Copy child ad sets + ads + creatives + targeting
|
|
23122
23122
|
*/
|
|
23123
23123
|
deepCopy?: boolean;
|
|
23124
|
+
/**
|
|
23125
|
+
* ACTIVE = launch the clone immediately (spends the moment LinkedIn approves it). PAUSED = clone stays DRAFT, safe default. INHERITED_FROM_SOURCE = mirror each entity's source status per-entity. Duplicating an ACTIVE campaign this way starts a second front of spend.
|
|
23126
|
+
*
|
|
23127
|
+
*/
|
|
23124
23128
|
statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
|
|
23125
23129
|
/**
|
|
23126
23130
|
* Reschedule the copied hierarchy's start time
|
|
@@ -24415,22 +24419,31 @@ export type CreateStandaloneAdData = {
|
|
|
24415
24419
|
* to build N full ads sharing one ad set: create the first ad
|
|
24416
24420
|
* via the normal shape, then attach the rest one call each.
|
|
24417
24421
|
*
|
|
24418
|
-
* Supported on Meta (facebook, instagram)
|
|
24419
|
-
* the `adSetId` is the ad group ID; the
|
|
24420
|
-
* ad group's bid + budget + targeting.
|
|
24422
|
+
* Supported on Meta (facebook, instagram), TikTok, and
|
|
24423
|
+
* LinkedIn. On TikTok the `adSetId` is the ad group ID; the
|
|
24424
|
+
* new ad inherits the ad group's bid + budget + targeting.
|
|
24425
|
+
* On LinkedIn the `adSetId` is the LinkedIn Campaign ID
|
|
24426
|
+
* (numeric); we attach a new Creative to that Campaign, so
|
|
24427
|
+
* the Campaign's `platformSpecificData` bidding, targeting,
|
|
24428
|
+
* budget and schedule are inherited (passing those fields
|
|
24429
|
+
* returns 400).
|
|
24421
24430
|
*
|
|
24422
24431
|
*/
|
|
24423
24432
|
adSetId?: string;
|
|
24424
24433
|
/**
|
|
24425
|
-
* Meta
|
|
24426
|
-
* instead of creating a new one
|
|
24427
|
-
* The new ad set's budget
|
|
24428
|
-
*
|
|
24429
|
-
*
|
|
24430
|
-
*
|
|
24431
|
-
*
|
|
24432
|
-
*
|
|
24433
|
-
*
|
|
24434
|
+
* Meta + LinkedIn. On Meta: add the new ad set under this
|
|
24435
|
+
* EXISTING campaign instead of creating a new one
|
|
24436
|
+
* (multi-ad-set audience testing). The new ad set's budget
|
|
24437
|
+
* is matched to the campaign's mode automatically: for a
|
|
24438
|
+
* CBO campaign (campaign-level budget) omit
|
|
24439
|
+
* `budgetAmount`/`budgetType` — the campaign owns the
|
|
24440
|
+
* budget; for an ABO campaign pass them (they go on the new
|
|
24441
|
+
* ad set). On LinkedIn: create a new Campaign (and its
|
|
24442
|
+
* Creative) under this EXISTING CampaignGroup. On failure
|
|
24443
|
+
* only the entities we authored are cleaned up; the
|
|
24444
|
+
* pre-existing parent is left untouched and is never
|
|
24445
|
+
* (re)activated. Mutually exclusive with `adSetId` and
|
|
24446
|
+
* `creatives[]`.
|
|
24434
24447
|
*
|
|
24435
24448
|
*/
|
|
24436
24449
|
existingCampaignId?: string;
|