@zernio/node 0.2.213 → 0.2.214
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 +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +23 -0
package/dist/index.d.mts
CHANGED
|
@@ -17092,6 +17092,10 @@ type UpdateAdCampaignData = {
|
|
|
17092
17092
|
* Campaign-level default. Ad sets inherit this unless they override.
|
|
17093
17093
|
*/
|
|
17094
17094
|
bidStrategy?: (BidStrategy);
|
|
17095
|
+
/**
|
|
17096
|
+
* Rename the campaign (Meta only; other platforms return 501). At least one of budget/bidStrategy/name is required.
|
|
17097
|
+
*/
|
|
17098
|
+
name?: string;
|
|
17095
17099
|
};
|
|
17096
17100
|
path: {
|
|
17097
17101
|
/**
|
|
@@ -17215,6 +17219,10 @@ type UpdateAdSetData = {
|
|
|
17215
17219
|
* Omit if not toggling delivery state
|
|
17216
17220
|
*/
|
|
17217
17221
|
status?: 'active' | 'paused';
|
|
17222
|
+
/**
|
|
17223
|
+
* Rename the ad set (Meta only; other platforms return 501). At least one of budget/status/bidStrategy/name is required.
|
|
17224
|
+
*/
|
|
17225
|
+
name?: string;
|
|
17218
17226
|
/**
|
|
17219
17227
|
* Ad-set-level bid strategy. Overrides the campaign-level default.
|
|
17220
17228
|
* Supported on Meta (facebook, instagram) and TikTok. On TikTok the
|
|
@@ -17473,6 +17481,9 @@ type UpdateAdData = {
|
|
|
17473
17481
|
imageUrl?: string;
|
|
17474
17482
|
videoUrl?: string;
|
|
17475
17483
|
};
|
|
17484
|
+
/**
|
|
17485
|
+
* Rename the ad. Now propagated to Meta (POST /{ad-id}); non-Meta platforms return 501.
|
|
17486
|
+
*/
|
|
17476
17487
|
name?: string;
|
|
17477
17488
|
};
|
|
17478
17489
|
path: {
|
|
@@ -17908,6 +17919,14 @@ type CreateStandaloneAdData = {
|
|
|
17908
17919
|
accountId: string;
|
|
17909
17920
|
adAccountId: string;
|
|
17910
17921
|
name: string;
|
|
17922
|
+
/**
|
|
17923
|
+
* Meta only. Exact campaign name. Overrides the default `<name> - Campaign`.
|
|
17924
|
+
*/
|
|
17925
|
+
campaignName?: string;
|
|
17926
|
+
/**
|
|
17927
|
+
* Meta only. Exact ad set name. Overrides the default `<name> - Ad Set`. (For per-ad names on the multi-creative shape, set `name` on each `creatives[]` entry.)
|
|
17928
|
+
*/
|
|
17929
|
+
adSetName?: string;
|
|
17911
17930
|
/**
|
|
17912
17931
|
* Required on legacy + multi-creative shapes. Inherited from the ad set on the attach shape. Available goals vary by platform. Meta-specific: `conversions` requires `promotedObject.pixelId` + `promotedObject.customEventType`; `app_promotion` requires `promotedObject.applicationId` + `promotedObject.objectStoreUrl`; `lead_generation` accepts an optional `promotedObject.pageId` (auto-filled from the connected Page when omitted). TikTok-specific: `conversions` (website-conversion ad group) requires `promotedObject.pixelId` (your TikTok Pixel ID) and accepts an optional `promotedObject.customEventType` (a TikTok `optimization_event` code like `ON_WEB_ORDER`, `INITIATE_ORDER`, `ON_WEB_REGISTER`, `FORM`); to inherit a pixel + event from an existing ad group, pass `adSetId` instead. LinkedIn-specific: `engagement`, `traffic`, `awareness`, and `video_views` are supported for standalone ads (creates a Direct Sponsored Content single image or single video ad). `traffic` requires `linkUrl`; `video_views` requires the `video` field. For `lead_generation` / `conversions` on LinkedIn — or to promote an existing post — use `POST /v1/ads/boost`.
|
|
17913
17932
|
*/
|
|
@@ -17995,6 +18014,10 @@ type CreateStandaloneAdData = {
|
|
|
17995
18014
|
*
|
|
17996
18015
|
*/
|
|
17997
18016
|
creatives?: Array<{
|
|
18017
|
+
/**
|
|
18018
|
+
* Exact name for this ad. Falls back to `<name> #N` (N = 1-based position).
|
|
18019
|
+
*/
|
|
18020
|
+
name?: string;
|
|
17998
18021
|
headline: string;
|
|
17999
18022
|
body: string;
|
|
18000
18023
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -17092,6 +17092,10 @@ type UpdateAdCampaignData = {
|
|
|
17092
17092
|
* Campaign-level default. Ad sets inherit this unless they override.
|
|
17093
17093
|
*/
|
|
17094
17094
|
bidStrategy?: (BidStrategy);
|
|
17095
|
+
/**
|
|
17096
|
+
* Rename the campaign (Meta only; other platforms return 501). At least one of budget/bidStrategy/name is required.
|
|
17097
|
+
*/
|
|
17098
|
+
name?: string;
|
|
17095
17099
|
};
|
|
17096
17100
|
path: {
|
|
17097
17101
|
/**
|
|
@@ -17215,6 +17219,10 @@ type UpdateAdSetData = {
|
|
|
17215
17219
|
* Omit if not toggling delivery state
|
|
17216
17220
|
*/
|
|
17217
17221
|
status?: 'active' | 'paused';
|
|
17222
|
+
/**
|
|
17223
|
+
* Rename the ad set (Meta only; other platforms return 501). At least one of budget/status/bidStrategy/name is required.
|
|
17224
|
+
*/
|
|
17225
|
+
name?: string;
|
|
17218
17226
|
/**
|
|
17219
17227
|
* Ad-set-level bid strategy. Overrides the campaign-level default.
|
|
17220
17228
|
* Supported on Meta (facebook, instagram) and TikTok. On TikTok the
|
|
@@ -17473,6 +17481,9 @@ type UpdateAdData = {
|
|
|
17473
17481
|
imageUrl?: string;
|
|
17474
17482
|
videoUrl?: string;
|
|
17475
17483
|
};
|
|
17484
|
+
/**
|
|
17485
|
+
* Rename the ad. Now propagated to Meta (POST /{ad-id}); non-Meta platforms return 501.
|
|
17486
|
+
*/
|
|
17476
17487
|
name?: string;
|
|
17477
17488
|
};
|
|
17478
17489
|
path: {
|
|
@@ -17908,6 +17919,14 @@ type CreateStandaloneAdData = {
|
|
|
17908
17919
|
accountId: string;
|
|
17909
17920
|
adAccountId: string;
|
|
17910
17921
|
name: string;
|
|
17922
|
+
/**
|
|
17923
|
+
* Meta only. Exact campaign name. Overrides the default `<name> - Campaign`.
|
|
17924
|
+
*/
|
|
17925
|
+
campaignName?: string;
|
|
17926
|
+
/**
|
|
17927
|
+
* Meta only. Exact ad set name. Overrides the default `<name> - Ad Set`. (For per-ad names on the multi-creative shape, set `name` on each `creatives[]` entry.)
|
|
17928
|
+
*/
|
|
17929
|
+
adSetName?: string;
|
|
17911
17930
|
/**
|
|
17912
17931
|
* Required on legacy + multi-creative shapes. Inherited from the ad set on the attach shape. Available goals vary by platform. Meta-specific: `conversions` requires `promotedObject.pixelId` + `promotedObject.customEventType`; `app_promotion` requires `promotedObject.applicationId` + `promotedObject.objectStoreUrl`; `lead_generation` accepts an optional `promotedObject.pageId` (auto-filled from the connected Page when omitted). TikTok-specific: `conversions` (website-conversion ad group) requires `promotedObject.pixelId` (your TikTok Pixel ID) and accepts an optional `promotedObject.customEventType` (a TikTok `optimization_event` code like `ON_WEB_ORDER`, `INITIATE_ORDER`, `ON_WEB_REGISTER`, `FORM`); to inherit a pixel + event from an existing ad group, pass `adSetId` instead. LinkedIn-specific: `engagement`, `traffic`, `awareness`, and `video_views` are supported for standalone ads (creates a Direct Sponsored Content single image or single video ad). `traffic` requires `linkUrl`; `video_views` requires the `video` field. For `lead_generation` / `conversions` on LinkedIn — or to promote an existing post — use `POST /v1/ads/boost`.
|
|
17913
17932
|
*/
|
|
@@ -17995,6 +18014,10 @@ type CreateStandaloneAdData = {
|
|
|
17995
18014
|
*
|
|
17996
18015
|
*/
|
|
17997
18016
|
creatives?: Array<{
|
|
18017
|
+
/**
|
|
18018
|
+
* Exact name for this ad. Falls back to `<name> #N` (N = 1-based position).
|
|
18019
|
+
*/
|
|
18020
|
+
name?: string;
|
|
17998
18021
|
headline: string;
|
|
17999
18022
|
body: string;
|
|
18000
18023
|
/**
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.214",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.214",
|
|
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
|
@@ -17511,6 +17511,10 @@ export type UpdateAdCampaignData = {
|
|
|
17511
17511
|
* Campaign-level default. Ad sets inherit this unless they override.
|
|
17512
17512
|
*/
|
|
17513
17513
|
bidStrategy?: (BidStrategy);
|
|
17514
|
+
/**
|
|
17515
|
+
* Rename the campaign (Meta only; other platforms return 501). At least one of budget/bidStrategy/name is required.
|
|
17516
|
+
*/
|
|
17517
|
+
name?: string;
|
|
17514
17518
|
};
|
|
17515
17519
|
path: {
|
|
17516
17520
|
/**
|
|
@@ -17646,6 +17650,10 @@ export type UpdateAdSetData = {
|
|
|
17646
17650
|
* Omit if not toggling delivery state
|
|
17647
17651
|
*/
|
|
17648
17652
|
status?: 'active' | 'paused';
|
|
17653
|
+
/**
|
|
17654
|
+
* Rename the ad set (Meta only; other platforms return 501). At least one of budget/status/bidStrategy/name is required.
|
|
17655
|
+
*/
|
|
17656
|
+
name?: string;
|
|
17649
17657
|
/**
|
|
17650
17658
|
* Ad-set-level bid strategy. Overrides the campaign-level default.
|
|
17651
17659
|
* Supported on Meta (facebook, instagram) and TikTok. On TikTok the
|
|
@@ -17919,6 +17927,9 @@ export type UpdateAdData = {
|
|
|
17919
17927
|
imageUrl?: string;
|
|
17920
17928
|
videoUrl?: string;
|
|
17921
17929
|
};
|
|
17930
|
+
/**
|
|
17931
|
+
* Rename the ad. Now propagated to Meta (POST /{ad-id}); non-Meta platforms return 501.
|
|
17932
|
+
*/
|
|
17922
17933
|
name?: string;
|
|
17923
17934
|
};
|
|
17924
17935
|
path: {
|
|
@@ -18381,6 +18392,14 @@ export type CreateStandaloneAdData = {
|
|
|
18381
18392
|
accountId: string;
|
|
18382
18393
|
adAccountId: string;
|
|
18383
18394
|
name: string;
|
|
18395
|
+
/**
|
|
18396
|
+
* Meta only. Exact campaign name. Overrides the default `<name> - Campaign`.
|
|
18397
|
+
*/
|
|
18398
|
+
campaignName?: string;
|
|
18399
|
+
/**
|
|
18400
|
+
* Meta only. Exact ad set name. Overrides the default `<name> - Ad Set`. (For per-ad names on the multi-creative shape, set `name` on each `creatives[]` entry.)
|
|
18401
|
+
*/
|
|
18402
|
+
adSetName?: string;
|
|
18384
18403
|
/**
|
|
18385
18404
|
* Required on legacy + multi-creative shapes. Inherited from the ad set on the attach shape. Available goals vary by platform. Meta-specific: `conversions` requires `promotedObject.pixelId` + `promotedObject.customEventType`; `app_promotion` requires `promotedObject.applicationId` + `promotedObject.objectStoreUrl`; `lead_generation` accepts an optional `promotedObject.pageId` (auto-filled from the connected Page when omitted). TikTok-specific: `conversions` (website-conversion ad group) requires `promotedObject.pixelId` (your TikTok Pixel ID) and accepts an optional `promotedObject.customEventType` (a TikTok `optimization_event` code like `ON_WEB_ORDER`, `INITIATE_ORDER`, `ON_WEB_REGISTER`, `FORM`); to inherit a pixel + event from an existing ad group, pass `adSetId` instead. LinkedIn-specific: `engagement`, `traffic`, `awareness`, and `video_views` are supported for standalone ads (creates a Direct Sponsored Content single image or single video ad). `traffic` requires `linkUrl`; `video_views` requires the `video` field. For `lead_generation` / `conversions` on LinkedIn — or to promote an existing post — use `POST /v1/ads/boost`.
|
|
18386
18405
|
*/
|
|
@@ -18468,6 +18487,10 @@ export type CreateStandaloneAdData = {
|
|
|
18468
18487
|
*
|
|
18469
18488
|
*/
|
|
18470
18489
|
creatives?: Array<{
|
|
18490
|
+
/**
|
|
18491
|
+
* Exact name for this ad. Falls back to `<name> #N` (N = 1-based position).
|
|
18492
|
+
*/
|
|
18493
|
+
name?: string;
|
|
18471
18494
|
headline: string;
|
|
18472
18495
|
body: string;
|
|
18473
18496
|
/**
|