@zernio/node 0.2.685 → 0.2.686
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 +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +10 -5
- package/src/generated/types.gen.ts +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -29575,11 +29575,11 @@ type ListAdCampaignsError = (ErrorResponse | {
|
|
|
29575
29575
|
type CreateAdCampaignData = {
|
|
29576
29576
|
body: {
|
|
29577
29577
|
/**
|
|
29578
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
29578
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
29579
29579
|
*/
|
|
29580
29580
|
accountId: string;
|
|
29581
29581
|
/**
|
|
29582
|
-
*
|
|
29582
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
29583
29583
|
*/
|
|
29584
29584
|
adAccountId: string;
|
|
29585
29585
|
name: string;
|
|
@@ -30526,7 +30526,7 @@ type GenerateAdPreviewsData = {
|
|
|
30526
30526
|
*/
|
|
30527
30527
|
accountId: string;
|
|
30528
30528
|
/**
|
|
30529
|
-
*
|
|
30529
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
30530
30530
|
*/
|
|
30531
30531
|
adAccountId: string;
|
|
30532
30532
|
/**
|
|
@@ -31202,7 +31202,7 @@ type CreateRfPredictionData = {
|
|
|
31202
31202
|
*/
|
|
31203
31203
|
accountId: string;
|
|
31204
31204
|
/**
|
|
31205
|
-
*
|
|
31205
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31206
31206
|
*/
|
|
31207
31207
|
adAccountId: string;
|
|
31208
31208
|
/**
|
|
@@ -31529,7 +31529,7 @@ type CreateAdCreativeData = {
|
|
|
31529
31529
|
*/
|
|
31530
31530
|
accountId: string;
|
|
31531
31531
|
/**
|
|
31532
|
-
*
|
|
31532
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31533
31533
|
*/
|
|
31534
31534
|
adAccountId: string;
|
|
31535
31535
|
headline: string;
|
|
@@ -31619,7 +31619,7 @@ type GetAdCreativeError = (unknown | {
|
|
|
31619
31619
|
type UpdateAdCreativeData = {
|
|
31620
31620
|
body: {
|
|
31621
31621
|
/**
|
|
31622
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
31622
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
31623
31623
|
*/
|
|
31624
31624
|
accountId: string;
|
|
31625
31625
|
name: string;
|
|
@@ -31696,11 +31696,11 @@ type ListValueRuleSetsError = (unknown | {
|
|
|
31696
31696
|
type CreateValueRuleSetData = {
|
|
31697
31697
|
body: {
|
|
31698
31698
|
/**
|
|
31699
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
31699
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
31700
31700
|
*/
|
|
31701
31701
|
accountId: string;
|
|
31702
31702
|
/**
|
|
31703
|
-
*
|
|
31703
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31704
31704
|
*/
|
|
31705
31705
|
adAccountId: string;
|
|
31706
31706
|
name: string;
|
|
@@ -31743,7 +31743,7 @@ type GetValueRuleSetError = (unknown | {
|
|
|
31743
31743
|
type UpdateValueRuleSetData = {
|
|
31744
31744
|
body: {
|
|
31745
31745
|
/**
|
|
31746
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
31746
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
31747
31747
|
*/
|
|
31748
31748
|
accountId: string;
|
|
31749
31749
|
/**
|
|
@@ -33808,11 +33808,11 @@ type CreateTestLeadError = (ErrorResponse | {
|
|
|
33808
33808
|
type UploadAdImageData = {
|
|
33809
33809
|
body: {
|
|
33810
33810
|
/**
|
|
33811
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
33811
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
33812
33812
|
*/
|
|
33813
33813
|
accountId: string;
|
|
33814
33814
|
/**
|
|
33815
|
-
*
|
|
33815
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
33816
33816
|
*/
|
|
33817
33817
|
adAccountId: string;
|
|
33818
33818
|
/**
|
|
@@ -33883,11 +33883,11 @@ type ListAdImagesError = (unknown | {
|
|
|
33883
33883
|
type UploadAdVideoData = {
|
|
33884
33884
|
body: {
|
|
33885
33885
|
/**
|
|
33886
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
33886
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
33887
33887
|
*/
|
|
33888
33888
|
accountId: string;
|
|
33889
33889
|
/**
|
|
33890
|
-
*
|
|
33890
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
33891
33891
|
*/
|
|
33892
33892
|
adAccountId: string;
|
|
33893
33893
|
/**
|
|
@@ -35343,7 +35343,7 @@ type ListCustomConversionsError = (unknown | {
|
|
|
35343
35343
|
type CreateCustomConversionData = {
|
|
35344
35344
|
body: {
|
|
35345
35345
|
/**
|
|
35346
|
-
*
|
|
35346
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
35347
35347
|
*/
|
|
35348
35348
|
adAccountId: string;
|
|
35349
35349
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -29575,11 +29575,11 @@ type ListAdCampaignsError = (ErrorResponse | {
|
|
|
29575
29575
|
type CreateAdCampaignData = {
|
|
29576
29576
|
body: {
|
|
29577
29577
|
/**
|
|
29578
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
29578
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
29579
29579
|
*/
|
|
29580
29580
|
accountId: string;
|
|
29581
29581
|
/**
|
|
29582
|
-
*
|
|
29582
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
29583
29583
|
*/
|
|
29584
29584
|
adAccountId: string;
|
|
29585
29585
|
name: string;
|
|
@@ -30526,7 +30526,7 @@ type GenerateAdPreviewsData = {
|
|
|
30526
30526
|
*/
|
|
30527
30527
|
accountId: string;
|
|
30528
30528
|
/**
|
|
30529
|
-
*
|
|
30529
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
30530
30530
|
*/
|
|
30531
30531
|
adAccountId: string;
|
|
30532
30532
|
/**
|
|
@@ -31202,7 +31202,7 @@ type CreateRfPredictionData = {
|
|
|
31202
31202
|
*/
|
|
31203
31203
|
accountId: string;
|
|
31204
31204
|
/**
|
|
31205
|
-
*
|
|
31205
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31206
31206
|
*/
|
|
31207
31207
|
adAccountId: string;
|
|
31208
31208
|
/**
|
|
@@ -31529,7 +31529,7 @@ type CreateAdCreativeData = {
|
|
|
31529
31529
|
*/
|
|
31530
31530
|
accountId: string;
|
|
31531
31531
|
/**
|
|
31532
|
-
*
|
|
31532
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31533
31533
|
*/
|
|
31534
31534
|
adAccountId: string;
|
|
31535
31535
|
headline: string;
|
|
@@ -31619,7 +31619,7 @@ type GetAdCreativeError = (unknown | {
|
|
|
31619
31619
|
type UpdateAdCreativeData = {
|
|
31620
31620
|
body: {
|
|
31621
31621
|
/**
|
|
31622
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
31622
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
31623
31623
|
*/
|
|
31624
31624
|
accountId: string;
|
|
31625
31625
|
name: string;
|
|
@@ -31696,11 +31696,11 @@ type ListValueRuleSetsError = (unknown | {
|
|
|
31696
31696
|
type CreateValueRuleSetData = {
|
|
31697
31697
|
body: {
|
|
31698
31698
|
/**
|
|
31699
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
31699
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
31700
31700
|
*/
|
|
31701
31701
|
accountId: string;
|
|
31702
31702
|
/**
|
|
31703
|
-
*
|
|
31703
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31704
31704
|
*/
|
|
31705
31705
|
adAccountId: string;
|
|
31706
31706
|
name: string;
|
|
@@ -31743,7 +31743,7 @@ type GetValueRuleSetError = (unknown | {
|
|
|
31743
31743
|
type UpdateValueRuleSetData = {
|
|
31744
31744
|
body: {
|
|
31745
31745
|
/**
|
|
31746
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
31746
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
31747
31747
|
*/
|
|
31748
31748
|
accountId: string;
|
|
31749
31749
|
/**
|
|
@@ -33808,11 +33808,11 @@ type CreateTestLeadError = (ErrorResponse | {
|
|
|
33808
33808
|
type UploadAdImageData = {
|
|
33809
33809
|
body: {
|
|
33810
33810
|
/**
|
|
33811
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
33811
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
33812
33812
|
*/
|
|
33813
33813
|
accountId: string;
|
|
33814
33814
|
/**
|
|
33815
|
-
*
|
|
33815
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
33816
33816
|
*/
|
|
33817
33817
|
adAccountId: string;
|
|
33818
33818
|
/**
|
|
@@ -33883,11 +33883,11 @@ type ListAdImagesError = (unknown | {
|
|
|
33883
33883
|
type UploadAdVideoData = {
|
|
33884
33884
|
body: {
|
|
33885
33885
|
/**
|
|
33886
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
33886
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
33887
33887
|
*/
|
|
33888
33888
|
accountId: string;
|
|
33889
33889
|
/**
|
|
33890
|
-
*
|
|
33890
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
33891
33891
|
*/
|
|
33892
33892
|
adAccountId: string;
|
|
33893
33893
|
/**
|
|
@@ -35343,7 +35343,7 @@ type ListCustomConversionsError = (unknown | {
|
|
|
35343
35343
|
type CreateCustomConversionData = {
|
|
35344
35344
|
body: {
|
|
35345
35345
|
/**
|
|
35346
|
-
*
|
|
35346
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
35347
35347
|
*/
|
|
35348
35348
|
adAccountId: string;
|
|
35349
35349
|
/**
|
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.686",
|
|
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.686",
|
|
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
|
@@ -7697,11 +7697,16 @@ export const listAdCampaigns = <ThrowOnError extends boolean = false>(options?:
|
|
|
7697
7697
|
|
|
7698
7698
|
/**
|
|
7699
7699
|
* Create a standalone campaign
|
|
7700
|
-
* Creates a campaign WITHOUT its first ad set / ad
|
|
7701
|
-
* later via `existingCampaignId` on the create endpoints.
|
|
7702
|
-
*
|
|
7703
|
-
*
|
|
7704
|
-
*
|
|
7700
|
+
* Creates a campaign WITHOUT its first ad set / ad, on the platform of the given
|
|
7701
|
+
* `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints.
|
|
7702
|
+
* Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it
|
|
7703
|
+
* for ABO (each ad set carries its own budget), and `specialAdCategories` /
|
|
7704
|
+
* `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget
|
|
7705
|
+
* (422 without one; OpenAI accepts only `budgetType: lifetime`). LinkedIn creates the
|
|
7706
|
+
* campaign GROUP (our campaign level) and rejects a budget, which lives on the
|
|
7707
|
+
* campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are
|
|
7708
|
+
* created without a status and report `ENABLE`. Created `PAUSED` unless
|
|
7709
|
+
* `status: ACTIVE` where the platform supports it.
|
|
7705
7710
|
*
|
|
7706
7711
|
* **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
7707
7712
|
*/
|
|
@@ -29997,11 +29997,11 @@ export type ListAdCampaignsError = (ErrorResponse | {
|
|
|
29997
29997
|
export type CreateAdCampaignData = {
|
|
29998
29998
|
body: {
|
|
29999
29999
|
/**
|
|
30000
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
30000
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
30001
30001
|
*/
|
|
30002
30002
|
accountId: string;
|
|
30003
30003
|
/**
|
|
30004
|
-
*
|
|
30004
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
30005
30005
|
*/
|
|
30006
30006
|
adAccountId: string;
|
|
30007
30007
|
name: string;
|
|
@@ -31008,7 +31008,7 @@ export type GenerateAdPreviewsData = {
|
|
|
31008
31008
|
*/
|
|
31009
31009
|
accountId: string;
|
|
31010
31010
|
/**
|
|
31011
|
-
*
|
|
31011
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31012
31012
|
*/
|
|
31013
31013
|
adAccountId: string;
|
|
31014
31014
|
/**
|
|
@@ -31726,7 +31726,7 @@ export type CreateRfPredictionData = {
|
|
|
31726
31726
|
*/
|
|
31727
31727
|
accountId: string;
|
|
31728
31728
|
/**
|
|
31729
|
-
*
|
|
31729
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
31730
31730
|
*/
|
|
31731
31731
|
adAccountId: string;
|
|
31732
31732
|
/**
|
|
@@ -32083,7 +32083,7 @@ export type CreateAdCreativeData = {
|
|
|
32083
32083
|
*/
|
|
32084
32084
|
accountId: string;
|
|
32085
32085
|
/**
|
|
32086
|
-
*
|
|
32086
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
32087
32087
|
*/
|
|
32088
32088
|
adAccountId: string;
|
|
32089
32089
|
headline: string;
|
|
@@ -32179,7 +32179,7 @@ export type GetAdCreativeError = (unknown | {
|
|
|
32179
32179
|
export type UpdateAdCreativeData = {
|
|
32180
32180
|
body: {
|
|
32181
32181
|
/**
|
|
32182
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
32182
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
32183
32183
|
*/
|
|
32184
32184
|
accountId: string;
|
|
32185
32185
|
name: string;
|
|
@@ -32265,11 +32265,11 @@ export type ListValueRuleSetsError = (unknown | {
|
|
|
32265
32265
|
export type CreateValueRuleSetData = {
|
|
32266
32266
|
body: {
|
|
32267
32267
|
/**
|
|
32268
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
32268
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
32269
32269
|
*/
|
|
32270
32270
|
accountId: string;
|
|
32271
32271
|
/**
|
|
32272
|
-
*
|
|
32272
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
32273
32273
|
*/
|
|
32274
32274
|
adAccountId: string;
|
|
32275
32275
|
name: string;
|
|
@@ -32318,7 +32318,7 @@ export type GetValueRuleSetError = (unknown | {
|
|
|
32318
32318
|
export type UpdateValueRuleSetData = {
|
|
32319
32319
|
body: {
|
|
32320
32320
|
/**
|
|
32321
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
32321
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
32322
32322
|
*/
|
|
32323
32323
|
accountId: string;
|
|
32324
32324
|
/**
|
|
@@ -34431,11 +34431,11 @@ export type CreateTestLeadError = (ErrorResponse | {
|
|
|
34431
34431
|
export type UploadAdImageData = {
|
|
34432
34432
|
body: {
|
|
34433
34433
|
/**
|
|
34434
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
34434
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
34435
34435
|
*/
|
|
34436
34436
|
accountId: string;
|
|
34437
34437
|
/**
|
|
34438
|
-
*
|
|
34438
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
34439
34439
|
*/
|
|
34440
34440
|
adAccountId: string;
|
|
34441
34441
|
/**
|
|
@@ -34512,11 +34512,11 @@ export type ListAdImagesError = (unknown | {
|
|
|
34512
34512
|
export type UploadAdVideoData = {
|
|
34513
34513
|
body: {
|
|
34514
34514
|
/**
|
|
34515
|
-
* Zernio SocialAccount id (posting or ads variant)
|
|
34515
|
+
* Zernio SocialAccount id (posting or ads variant); its platform decides where the campaign is created.
|
|
34516
34516
|
*/
|
|
34517
34517
|
accountId: string;
|
|
34518
34518
|
/**
|
|
34519
|
-
*
|
|
34519
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
34520
34520
|
*/
|
|
34521
34521
|
adAccountId: string;
|
|
34522
34522
|
/**
|
|
@@ -36077,7 +36077,7 @@ export type ListCustomConversionsError = (unknown | {
|
|
|
36077
36077
|
export type CreateCustomConversionData = {
|
|
36078
36078
|
body: {
|
|
36079
36079
|
/**
|
|
36080
|
-
*
|
|
36080
|
+
* Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id, ...).
|
|
36081
36081
|
*/
|
|
36082
36082
|
adAccountId: string;
|
|
36083
36083
|
/**
|