@getlatedev/node 0.2.364 → 0.2.365
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 +29 -6
- package/dist/index.d.ts +29 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +29 -6
package/dist/index.d.mts
CHANGED
|
@@ -3508,6 +3508,25 @@ type LinkedInAdsPlatformData = {
|
|
|
3508
3508
|
*/
|
|
3509
3509
|
urn: string;
|
|
3510
3510
|
};
|
|
3511
|
+
/**
|
|
3512
|
+
* POST /v1/ads/create only. Thought-leader ad: references someone
|
|
3513
|
+
* else's existing LinkedIn share or ugcPost as the creative. Unlike
|
|
3514
|
+
* boostPost, which provisions its own CampaignGroup + Campaign
|
|
3515
|
+
* around the post, this variant attaches the reference under the
|
|
3516
|
+
* campaign /v1/ads/create builds — same shape as every other
|
|
3517
|
+
* format, so the caller can pick bidding / targeting / schedule
|
|
3518
|
+
* freely. No headline, body, imageUrl or organization are needed;
|
|
3519
|
+
* the referenced post carries its own commentary and author.
|
|
3520
|
+
* Mutually exclusive with the other creative sources.
|
|
3521
|
+
*
|
|
3522
|
+
*/
|
|
3523
|
+
thoughtLeader?: {
|
|
3524
|
+
/**
|
|
3525
|
+
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id).
|
|
3526
|
+
*
|
|
3527
|
+
*/
|
|
3528
|
+
postUrn: string;
|
|
3529
|
+
};
|
|
3511
3530
|
};
|
|
3512
3531
|
/**
|
|
3513
3532
|
* Campaign cost model (billing event). Defaults to `CPM`. Required when
|
|
@@ -23464,7 +23483,7 @@ type CreateStandaloneAdData = {
|
|
|
23464
23483
|
* - `catalog_sales`: Advantage+ catalog ads, for example vehicle inventory. Requires `promotedObject.productSetId`, `promotedObject.pixelId` and `promotedObject.customEventType`. Builds a catalog TEMPLATE creative from the copy fields, which may carry template tags like {{product.name}} or {{vehicle.make}}. No imageUrl or video is sent; Meta renders the visuals per catalog item. Discover catalogs via GET /v1/ads/catalogs and product sets via GET /v1/ads/catalogs/{catalogId}/product-sets. Single shape only, no creatives[], adSetId, dynamicCreative or placementAssets.
|
|
23465
23484
|
*
|
|
23466
23485
|
* **TikTok**
|
|
23467
|
-
* - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code
|
|
23486
|
+
* - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code your pixel tracks (newer pixels use e.g. SHOPPING for purchase events; legacy pixels use ON_WEB_ORDER, INITIATE_ORDER, ON_WEB_REGISTER or FORM). To inherit pixel and event from an existing ad group, pass `adSetId` instead.
|
|
23468
23487
|
*
|
|
23469
23488
|
* **LinkedIn**
|
|
23470
23489
|
* - `engagement`, `traffic`, `awareness` and `video_views` create standalone Direct Sponsored Content ads. `traffic` requires `linkUrl`; `video_views` requires `video`.
|
|
@@ -24089,11 +24108,15 @@ type CreateStandaloneAdData = {
|
|
|
24089
24108
|
* for `goal: conversions`.
|
|
24090
24109
|
*
|
|
24091
24110
|
* **TikTok:** an `optimization_event` code (UPPER_SNAKE, not Meta's vocabulary
|
|
24092
|
-
* and not PascalCase)
|
|
24093
|
-
*
|
|
24094
|
-
*
|
|
24095
|
-
*
|
|
24096
|
-
*
|
|
24111
|
+
* and not PascalCase). Must be one of the event types your TikTok Pixel is
|
|
24112
|
+
* configured to track; passed through verbatim and validated by TikTok.
|
|
24113
|
+
* Newer pixels (Events API / funnel-template setups) use TikTok's updated
|
|
24114
|
+
* taxonomy, e.g. `SHOPPING` for purchase/payment events; legacy pixels use
|
|
24115
|
+
* codes like `ON_WEB_ORDER` (Complete Payment), `INITIATE_ORDER` (Place an
|
|
24116
|
+
* Order), `ON_WEB_CART` (Add to Cart), `ON_WEB_REGISTER` (Complete
|
|
24117
|
+
* Registration), `FORM` (Submit Form), `ON_WEB_DETAIL` (View Content).
|
|
24118
|
+
* On rejection the error lists the event types your pixel actually tracks.
|
|
24119
|
+
* Optional for `goal: conversions`.
|
|
24097
24120
|
*
|
|
24098
24121
|
*/
|
|
24099
24122
|
customEventType?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3508,6 +3508,25 @@ type LinkedInAdsPlatformData = {
|
|
|
3508
3508
|
*/
|
|
3509
3509
|
urn: string;
|
|
3510
3510
|
};
|
|
3511
|
+
/**
|
|
3512
|
+
* POST /v1/ads/create only. Thought-leader ad: references someone
|
|
3513
|
+
* else's existing LinkedIn share or ugcPost as the creative. Unlike
|
|
3514
|
+
* boostPost, which provisions its own CampaignGroup + Campaign
|
|
3515
|
+
* around the post, this variant attaches the reference under the
|
|
3516
|
+
* campaign /v1/ads/create builds — same shape as every other
|
|
3517
|
+
* format, so the caller can pick bidding / targeting / schedule
|
|
3518
|
+
* freely. No headline, body, imageUrl or organization are needed;
|
|
3519
|
+
* the referenced post carries its own commentary and author.
|
|
3520
|
+
* Mutually exclusive with the other creative sources.
|
|
3521
|
+
*
|
|
3522
|
+
*/
|
|
3523
|
+
thoughtLeader?: {
|
|
3524
|
+
/**
|
|
3525
|
+
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id).
|
|
3526
|
+
*
|
|
3527
|
+
*/
|
|
3528
|
+
postUrn: string;
|
|
3529
|
+
};
|
|
3511
3530
|
};
|
|
3512
3531
|
/**
|
|
3513
3532
|
* Campaign cost model (billing event). Defaults to `CPM`. Required when
|
|
@@ -23464,7 +23483,7 @@ type CreateStandaloneAdData = {
|
|
|
23464
23483
|
* - `catalog_sales`: Advantage+ catalog ads, for example vehicle inventory. Requires `promotedObject.productSetId`, `promotedObject.pixelId` and `promotedObject.customEventType`. Builds a catalog TEMPLATE creative from the copy fields, which may carry template tags like {{product.name}} or {{vehicle.make}}. No imageUrl or video is sent; Meta renders the visuals per catalog item. Discover catalogs via GET /v1/ads/catalogs and product sets via GET /v1/ads/catalogs/{catalogId}/product-sets. Single shape only, no creatives[], adSetId, dynamicCreative or placementAssets.
|
|
23465
23484
|
*
|
|
23466
23485
|
* **TikTok**
|
|
23467
|
-
* - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code
|
|
23486
|
+
* - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code your pixel tracks (newer pixels use e.g. SHOPPING for purchase events; legacy pixels use ON_WEB_ORDER, INITIATE_ORDER, ON_WEB_REGISTER or FORM). To inherit pixel and event from an existing ad group, pass `adSetId` instead.
|
|
23468
23487
|
*
|
|
23469
23488
|
* **LinkedIn**
|
|
23470
23489
|
* - `engagement`, `traffic`, `awareness` and `video_views` create standalone Direct Sponsored Content ads. `traffic` requires `linkUrl`; `video_views` requires `video`.
|
|
@@ -24089,11 +24108,15 @@ type CreateStandaloneAdData = {
|
|
|
24089
24108
|
* for `goal: conversions`.
|
|
24090
24109
|
*
|
|
24091
24110
|
* **TikTok:** an `optimization_event` code (UPPER_SNAKE, not Meta's vocabulary
|
|
24092
|
-
* and not PascalCase)
|
|
24093
|
-
*
|
|
24094
|
-
*
|
|
24095
|
-
*
|
|
24096
|
-
*
|
|
24111
|
+
* and not PascalCase). Must be one of the event types your TikTok Pixel is
|
|
24112
|
+
* configured to track; passed through verbatim and validated by TikTok.
|
|
24113
|
+
* Newer pixels (Events API / funnel-template setups) use TikTok's updated
|
|
24114
|
+
* taxonomy, e.g. `SHOPPING` for purchase/payment events; legacy pixels use
|
|
24115
|
+
* codes like `ON_WEB_ORDER` (Complete Payment), `INITIATE_ORDER` (Place an
|
|
24116
|
+
* Order), `ON_WEB_CART` (Add to Cart), `ON_WEB_REGISTER` (Complete
|
|
24117
|
+
* Registration), `FORM` (Submit Form), `ON_WEB_DETAIL` (View Content).
|
|
24118
|
+
* On rejection the error lists the event types your pixel actually tracks.
|
|
24119
|
+
* Optional for `goal: conversions`.
|
|
24097
24120
|
*
|
|
24098
24121
|
*/
|
|
24099
24122
|
customEventType?: 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.365",
|
|
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.365",
|
|
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
|
@@ -2721,6 +2721,25 @@ export type LinkedInAdsPlatformData = {
|
|
|
2721
2721
|
*/
|
|
2722
2722
|
urn: string;
|
|
2723
2723
|
};
|
|
2724
|
+
/**
|
|
2725
|
+
* POST /v1/ads/create only. Thought-leader ad: references someone
|
|
2726
|
+
* else's existing LinkedIn share or ugcPost as the creative. Unlike
|
|
2727
|
+
* boostPost, which provisions its own CampaignGroup + Campaign
|
|
2728
|
+
* around the post, this variant attaches the reference under the
|
|
2729
|
+
* campaign /v1/ads/create builds — same shape as every other
|
|
2730
|
+
* format, so the caller can pick bidding / targeting / schedule
|
|
2731
|
+
* freely. No headline, body, imageUrl or organization are needed;
|
|
2732
|
+
* the referenced post carries its own commentary and author.
|
|
2733
|
+
* Mutually exclusive with the other creative sources.
|
|
2734
|
+
*
|
|
2735
|
+
*/
|
|
2736
|
+
thoughtLeader?: {
|
|
2737
|
+
/**
|
|
2738
|
+
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id).
|
|
2739
|
+
*
|
|
2740
|
+
*/
|
|
2741
|
+
postUrn: string;
|
|
2742
|
+
};
|
|
2724
2743
|
};
|
|
2725
2744
|
|
|
2726
2745
|
/**
|
|
@@ -24123,7 +24142,7 @@ export type CreateStandaloneAdData = {
|
|
|
24123
24142
|
* - `catalog_sales`: Advantage+ catalog ads, for example vehicle inventory. Requires `promotedObject.productSetId`, `promotedObject.pixelId` and `promotedObject.customEventType`. Builds a catalog TEMPLATE creative from the copy fields, which may carry template tags like {{product.name}} or {{vehicle.make}}. No imageUrl or video is sent; Meta renders the visuals per catalog item. Discover catalogs via GET /v1/ads/catalogs and product sets via GET /v1/ads/catalogs/{catalogId}/product-sets. Single shape only, no creatives[], adSetId, dynamicCreative or placementAssets.
|
|
24124
24143
|
*
|
|
24125
24144
|
* **TikTok**
|
|
24126
|
-
* - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code
|
|
24145
|
+
* - `conversions`: website-conversion ad group. Requires `promotedObject.pixelId`, your TikTok Pixel ID. Accepts an optional `promotedObject.customEventType` with a TikTok optimization_event code your pixel tracks (newer pixels use e.g. SHOPPING for purchase events; legacy pixels use ON_WEB_ORDER, INITIATE_ORDER, ON_WEB_REGISTER or FORM). To inherit pixel and event from an existing ad group, pass `adSetId` instead.
|
|
24127
24146
|
*
|
|
24128
24147
|
* **LinkedIn**
|
|
24129
24148
|
* - `engagement`, `traffic`, `awareness` and `video_views` create standalone Direct Sponsored Content ads. `traffic` requires `linkUrl`; `video_views` requires `video`.
|
|
@@ -24748,11 +24767,15 @@ export type CreateStandaloneAdData = {
|
|
|
24748
24767
|
* for `goal: conversions`.
|
|
24749
24768
|
*
|
|
24750
24769
|
* **TikTok:** an `optimization_event` code (UPPER_SNAKE, not Meta's vocabulary
|
|
24751
|
-
* and not PascalCase)
|
|
24752
|
-
*
|
|
24753
|
-
*
|
|
24754
|
-
*
|
|
24755
|
-
*
|
|
24770
|
+
* and not PascalCase). Must be one of the event types your TikTok Pixel is
|
|
24771
|
+
* configured to track; passed through verbatim and validated by TikTok.
|
|
24772
|
+
* Newer pixels (Events API / funnel-template setups) use TikTok's updated
|
|
24773
|
+
* taxonomy, e.g. `SHOPPING` for purchase/payment events; legacy pixels use
|
|
24774
|
+
* codes like `ON_WEB_ORDER` (Complete Payment), `INITIATE_ORDER` (Place an
|
|
24775
|
+
* Order), `ON_WEB_CART` (Add to Cart), `ON_WEB_REGISTER` (Complete
|
|
24776
|
+
* Registration), `FORM` (Submit Form), `ON_WEB_DETAIL` (View Content).
|
|
24777
|
+
* On rejection the error lists the event types your pixel actually tracks.
|
|
24778
|
+
* Optional for `goal: conversions`.
|
|
24756
24779
|
*
|
|
24757
24780
|
*/
|
|
24758
24781
|
customEventType?: string;
|