@zernio/node 0.2.731 → 0.2.733
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/README.md +26 -4
- package/dist/index.d.mts +1093 -179
- package/dist/index.d.ts +1093 -179
- package/dist/index.js +199 -1
- package/dist/index.mjs +199 -1
- package/package.json +1 -1
- package/src/client.ts +88 -0
- package/src/generated/sdk.gen.ts +302 -30
- package/src/generated/types.gen.ts +1103 -178
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.733",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -3451,12 +3451,54 @@ var updateAdStatus = (options) => {
|
|
|
3451
3451
|
url: "/v1/ads/{adId}/status"
|
|
3452
3452
|
});
|
|
3453
3453
|
};
|
|
3454
|
+
var listCampaignAssets = (options) => {
|
|
3455
|
+
return (options?.client ?? client).get({
|
|
3456
|
+
...options,
|
|
3457
|
+
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3458
|
+
});
|
|
3459
|
+
};
|
|
3454
3460
|
var attachCampaignAssets = (options) => {
|
|
3455
3461
|
return (options?.client ?? client).post({
|
|
3456
3462
|
...options,
|
|
3457
3463
|
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3458
3464
|
});
|
|
3459
3465
|
};
|
|
3466
|
+
var updateCampaignAssets = (options) => {
|
|
3467
|
+
return (options?.client ?? client).put({
|
|
3468
|
+
...options,
|
|
3469
|
+
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3470
|
+
});
|
|
3471
|
+
};
|
|
3472
|
+
var removeCampaignAssets = (options) => {
|
|
3473
|
+
return (options?.client ?? client).delete({
|
|
3474
|
+
...options,
|
|
3475
|
+
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3476
|
+
});
|
|
3477
|
+
};
|
|
3478
|
+
var listAdGroupAssets = (options) => {
|
|
3479
|
+
return (options?.client ?? client).get({
|
|
3480
|
+
...options,
|
|
3481
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3482
|
+
});
|
|
3483
|
+
};
|
|
3484
|
+
var attachAdGroupAssets = (options) => {
|
|
3485
|
+
return (options?.client ?? client).post({
|
|
3486
|
+
...options,
|
|
3487
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3488
|
+
});
|
|
3489
|
+
};
|
|
3490
|
+
var updateAdGroupAssets = (options) => {
|
|
3491
|
+
return (options?.client ?? client).put({
|
|
3492
|
+
...options,
|
|
3493
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3494
|
+
});
|
|
3495
|
+
};
|
|
3496
|
+
var removeAdGroupAssets = (options) => {
|
|
3497
|
+
return (options?.client ?? client).delete({
|
|
3498
|
+
...options,
|
|
3499
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3500
|
+
});
|
|
3501
|
+
};
|
|
3460
3502
|
var getCampaignAnalytics = (options) => {
|
|
3461
3503
|
return (options?.client ?? client).get({
|
|
3462
3504
|
...options,
|
|
@@ -3535,6 +3577,24 @@ var getAdComments = (options) => {
|
|
|
3535
3577
|
url: "/v1/ads/{adId}/comments"
|
|
3536
3578
|
});
|
|
3537
3579
|
};
|
|
3580
|
+
var replyToAdComment = (options) => {
|
|
3581
|
+
return (options?.client ?? client).post({
|
|
3582
|
+
...options,
|
|
3583
|
+
url: "/v1/ads/{adId}/comments/{commentId}/reply"
|
|
3584
|
+
});
|
|
3585
|
+
};
|
|
3586
|
+
var hideAdComment = (options) => {
|
|
3587
|
+
return (options?.client ?? client).post({
|
|
3588
|
+
...options,
|
|
3589
|
+
url: "/v1/ads/{adId}/comments/{commentId}/hide"
|
|
3590
|
+
});
|
|
3591
|
+
};
|
|
3592
|
+
var deleteAdComment = (options) => {
|
|
3593
|
+
return (options?.client ?? client).delete({
|
|
3594
|
+
...options,
|
|
3595
|
+
url: "/v1/ads/{adId}/comments/{commentId}"
|
|
3596
|
+
});
|
|
3597
|
+
};
|
|
3538
3598
|
var listAdsBusinessCenters = (options) => {
|
|
3539
3599
|
return (options?.client ?? client).get({
|
|
3540
3600
|
...options,
|
|
@@ -3577,6 +3637,24 @@ var listAdStudies = (options) => {
|
|
|
3577
3637
|
url: "/v1/ads/studies"
|
|
3578
3638
|
});
|
|
3579
3639
|
};
|
|
3640
|
+
var listAdsInstagramAccounts = (options) => {
|
|
3641
|
+
return (options?.client ?? client).get({
|
|
3642
|
+
...options,
|
|
3643
|
+
url: "/v1/ads/instagram-accounts"
|
|
3644
|
+
});
|
|
3645
|
+
};
|
|
3646
|
+
var listAdvertisableApplications = (options) => {
|
|
3647
|
+
return (options?.client ?? client).get({
|
|
3648
|
+
...options,
|
|
3649
|
+
url: "/v1/ads/advertisable-applications"
|
|
3650
|
+
});
|
|
3651
|
+
};
|
|
3652
|
+
var getIosFourteenCampaignLimits = (options) => {
|
|
3653
|
+
return (options?.client ?? client).get({
|
|
3654
|
+
...options,
|
|
3655
|
+
url: "/v1/ads/ios-fourteen-campaign-limits"
|
|
3656
|
+
});
|
|
3657
|
+
};
|
|
3580
3658
|
var listMetaBusinesses = (options) => {
|
|
3581
3659
|
return (options?.client ?? client).get({
|
|
3582
3660
|
...options,
|
|
@@ -3721,12 +3799,66 @@ var addAccountCallouts = (options) => {
|
|
|
3721
3799
|
url: "/v1/ads/accounts/callouts"
|
|
3722
3800
|
});
|
|
3723
3801
|
};
|
|
3802
|
+
var updateAccountCallouts = (options) => {
|
|
3803
|
+
return (options?.client ?? client).put({
|
|
3804
|
+
...options,
|
|
3805
|
+
url: "/v1/ads/accounts/callouts"
|
|
3806
|
+
});
|
|
3807
|
+
};
|
|
3724
3808
|
var removeAccountCallout = (options) => {
|
|
3725
3809
|
return (options?.client ?? client).delete({
|
|
3726
3810
|
...options,
|
|
3727
3811
|
url: "/v1/ads/accounts/callouts"
|
|
3728
3812
|
});
|
|
3729
3813
|
};
|
|
3814
|
+
var listAccountSitelinks = (options) => {
|
|
3815
|
+
return (options?.client ?? client).get({
|
|
3816
|
+
...options,
|
|
3817
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3818
|
+
});
|
|
3819
|
+
};
|
|
3820
|
+
var addAccountSitelinks = (options) => {
|
|
3821
|
+
return (options?.client ?? client).post({
|
|
3822
|
+
...options,
|
|
3823
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3824
|
+
});
|
|
3825
|
+
};
|
|
3826
|
+
var updateAccountSitelinks = (options) => {
|
|
3827
|
+
return (options?.client ?? client).put({
|
|
3828
|
+
...options,
|
|
3829
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3830
|
+
});
|
|
3831
|
+
};
|
|
3832
|
+
var removeAccountSitelink = (options) => {
|
|
3833
|
+
return (options?.client ?? client).delete({
|
|
3834
|
+
...options,
|
|
3835
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3836
|
+
});
|
|
3837
|
+
};
|
|
3838
|
+
var listAccountStructuredSnippets = (options) => {
|
|
3839
|
+
return (options?.client ?? client).get({
|
|
3840
|
+
...options,
|
|
3841
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3842
|
+
});
|
|
3843
|
+
};
|
|
3844
|
+
var addAccountStructuredSnippets = (options) => {
|
|
3845
|
+
return (options?.client ?? client).post({
|
|
3846
|
+
...options,
|
|
3847
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3848
|
+
});
|
|
3849
|
+
};
|
|
3850
|
+
var updateAccountStructuredSnippets = (options) => {
|
|
3851
|
+
return (options?.client ?? client).put({
|
|
3852
|
+
...options,
|
|
3853
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3854
|
+
});
|
|
3855
|
+
};
|
|
3856
|
+
var removeAccountStructuredSnippet = (options) => {
|
|
3857
|
+
return (options?.client ?? client).delete({
|
|
3858
|
+
...options,
|
|
3859
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3860
|
+
});
|
|
3861
|
+
};
|
|
3730
3862
|
var getAdAccountFinance = (options) => {
|
|
3731
3863
|
return (options?.client ?? client).get({
|
|
3732
3864
|
...options,
|
|
@@ -5393,7 +5525,14 @@ var Zernio = class _Zernio {
|
|
|
5393
5525
|
updateAd: this._bind(updateAd),
|
|
5394
5526
|
deleteAd: this._bind(deleteAd),
|
|
5395
5527
|
updateAdStatus: this._bind(updateAdStatus),
|
|
5528
|
+
listCampaignAssets: this._bind(listCampaignAssets),
|
|
5396
5529
|
attachCampaignAssets: this._bind(attachCampaignAssets),
|
|
5530
|
+
updateCampaignAssets: this._bind(updateCampaignAssets),
|
|
5531
|
+
removeCampaignAssets: this._bind(removeCampaignAssets),
|
|
5532
|
+
listAdGroupAssets: this._bind(listAdGroupAssets),
|
|
5533
|
+
attachAdGroupAssets: this._bind(attachAdGroupAssets),
|
|
5534
|
+
updateAdGroupAssets: this._bind(updateAdGroupAssets),
|
|
5535
|
+
removeAdGroupAssets: this._bind(removeAdGroupAssets),
|
|
5397
5536
|
listCampaignNegativeKeywordLists: this._bind(listCampaignNegativeKeywordLists),
|
|
5398
5537
|
replaceCampaignNegativeKeywordLists: this._bind(replaceCampaignNegativeKeywordLists),
|
|
5399
5538
|
boostPost: this._bind(boostPost),
|
|
@@ -5454,9 +5593,15 @@ var Zernio = class _Zernio {
|
|
|
5454
5593
|
*/
|
|
5455
5594
|
this.adaccounts = {
|
|
5456
5595
|
getAdComments: this._bind(getAdComments),
|
|
5596
|
+
replyToAdComment: this._bind(replyToAdComment),
|
|
5597
|
+
hideAdComment: this._bind(hideAdComment),
|
|
5598
|
+
deleteAdComment: this._bind(deleteAdComment),
|
|
5457
5599
|
listAdsBusinessCenters: this._bind(listAdsBusinessCenters),
|
|
5458
5600
|
getAdsActivityLog: this._bind(getAdsActivityLog),
|
|
5459
5601
|
listAdStudies: this._bind(listAdStudies),
|
|
5602
|
+
listAdsInstagramAccounts: this._bind(listAdsInstagramAccounts),
|
|
5603
|
+
listAdvertisableApplications: this._bind(listAdvertisableApplications),
|
|
5604
|
+
getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
|
|
5460
5605
|
listMetaBusinesses: this._bind(listMetaBusinesses),
|
|
5461
5606
|
listAdLabels: this._bind(listAdLabels),
|
|
5462
5607
|
listHighDemandPeriods: this._bind(listHighDemandPeriods),
|
|
@@ -5474,7 +5619,16 @@ var Zernio = class _Zernio {
|
|
|
5474
5619
|
replaceAdNegativeKeywordListKeywords: this._bind(replaceAdNegativeKeywordListKeywords),
|
|
5475
5620
|
listAccountCallouts: this._bind(listAccountCallouts),
|
|
5476
5621
|
addAccountCallouts: this._bind(addAccountCallouts),
|
|
5622
|
+
updateAccountCallouts: this._bind(updateAccountCallouts),
|
|
5477
5623
|
removeAccountCallout: this._bind(removeAccountCallout),
|
|
5624
|
+
listAccountSitelinks: this._bind(listAccountSitelinks),
|
|
5625
|
+
addAccountSitelinks: this._bind(addAccountSitelinks),
|
|
5626
|
+
updateAccountSitelinks: this._bind(updateAccountSitelinks),
|
|
5627
|
+
removeAccountSitelink: this._bind(removeAccountSitelink),
|
|
5628
|
+
listAccountStructuredSnippets: this._bind(listAccountStructuredSnippets),
|
|
5629
|
+
addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
|
|
5630
|
+
updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
|
|
5631
|
+
removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
|
|
5478
5632
|
getAdAccountFinance: this._bind(getAdAccountFinance),
|
|
5479
5633
|
listAdAccounts: this._bind(listAdAccounts),
|
|
5480
5634
|
updateAdAccount: this._bind(updateAdAccount),
|
|
@@ -5716,8 +5870,22 @@ var Zernio = class _Zernio {
|
|
|
5716
5870
|
deleteAd: this._bind(deleteAd),
|
|
5717
5871
|
/** @deprecated Use `zernio.adcampaigns.updateAdStatus` instead. */
|
|
5718
5872
|
updateAdStatus: this._bind(updateAdStatus),
|
|
5873
|
+
/** @deprecated Use `zernio.adcampaigns.listCampaignAssets` instead. */
|
|
5874
|
+
listCampaignAssets: this._bind(listCampaignAssets),
|
|
5719
5875
|
/** @deprecated Use `zernio.adcampaigns.attachCampaignAssets` instead. */
|
|
5720
5876
|
attachCampaignAssets: this._bind(attachCampaignAssets),
|
|
5877
|
+
/** @deprecated Use `zernio.adcampaigns.updateCampaignAssets` instead. */
|
|
5878
|
+
updateCampaignAssets: this._bind(updateCampaignAssets),
|
|
5879
|
+
/** @deprecated Use `zernio.adcampaigns.removeCampaignAssets` instead. */
|
|
5880
|
+
removeCampaignAssets: this._bind(removeCampaignAssets),
|
|
5881
|
+
/** @deprecated Use `zernio.adcampaigns.listAdGroupAssets` instead. */
|
|
5882
|
+
listAdGroupAssets: this._bind(listAdGroupAssets),
|
|
5883
|
+
/** @deprecated Use `zernio.adcampaigns.attachAdGroupAssets` instead. */
|
|
5884
|
+
attachAdGroupAssets: this._bind(attachAdGroupAssets),
|
|
5885
|
+
/** @deprecated Use `zernio.adcampaigns.updateAdGroupAssets` instead. */
|
|
5886
|
+
updateAdGroupAssets: this._bind(updateAdGroupAssets),
|
|
5887
|
+
/** @deprecated Use `zernio.adcampaigns.removeAdGroupAssets` instead. */
|
|
5888
|
+
removeAdGroupAssets: this._bind(removeAdGroupAssets),
|
|
5721
5889
|
/** @deprecated Use `zernio.adcampaigns.listCampaignNegativeKeywordLists` instead. */
|
|
5722
5890
|
listCampaignNegativeKeywordLists: this._bind(listCampaignNegativeKeywordLists),
|
|
5723
5891
|
/** @deprecated Use `zernio.adcampaigns.replaceCampaignNegativeKeywordLists` instead. */
|
|
@@ -5728,12 +5896,24 @@ var Zernio = class _Zernio {
|
|
|
5728
5896
|
createStandaloneAd: this._bind(createStandaloneAd),
|
|
5729
5897
|
/** @deprecated Use `zernio.adaccounts.getAdComments` instead. */
|
|
5730
5898
|
getAdComments: this._bind(getAdComments),
|
|
5899
|
+
/** @deprecated Use `zernio.adaccounts.replyToAdComment` instead. */
|
|
5900
|
+
replyToAdComment: this._bind(replyToAdComment),
|
|
5901
|
+
/** @deprecated Use `zernio.adaccounts.hideAdComment` instead. */
|
|
5902
|
+
hideAdComment: this._bind(hideAdComment),
|
|
5903
|
+
/** @deprecated Use `zernio.adaccounts.deleteAdComment` instead. */
|
|
5904
|
+
deleteAdComment: this._bind(deleteAdComment),
|
|
5731
5905
|
/** @deprecated Use `zernio.adaccounts.listAdsBusinessCenters` instead. */
|
|
5732
5906
|
listAdsBusinessCenters: this._bind(listAdsBusinessCenters),
|
|
5733
5907
|
/** @deprecated Use `zernio.adaccounts.getAdsActivityLog` instead. */
|
|
5734
5908
|
getAdsActivityLog: this._bind(getAdsActivityLog),
|
|
5735
5909
|
/** @deprecated Use `zernio.adaccounts.listAdStudies` instead. */
|
|
5736
5910
|
listAdStudies: this._bind(listAdStudies),
|
|
5911
|
+
/** @deprecated Use `zernio.adaccounts.listAdsInstagramAccounts` instead. */
|
|
5912
|
+
listAdsInstagramAccounts: this._bind(listAdsInstagramAccounts),
|
|
5913
|
+
/** @deprecated Use `zernio.adaccounts.listAdvertisableApplications` instead. */
|
|
5914
|
+
listAdvertisableApplications: this._bind(listAdvertisableApplications),
|
|
5915
|
+
/** @deprecated Use `zernio.adaccounts.getIosFourteenCampaignLimits` instead. */
|
|
5916
|
+
getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
|
|
5737
5917
|
/** @deprecated Use `zernio.adaccounts.listMetaBusinesses` instead. */
|
|
5738
5918
|
listMetaBusinesses: this._bind(listMetaBusinesses),
|
|
5739
5919
|
/** @deprecated Use `zernio.adaccounts.listAdLabels` instead. */
|
|
@@ -5768,8 +5948,26 @@ var Zernio = class _Zernio {
|
|
|
5768
5948
|
listAccountCallouts: this._bind(listAccountCallouts),
|
|
5769
5949
|
/** @deprecated Use `zernio.adaccounts.addAccountCallouts` instead. */
|
|
5770
5950
|
addAccountCallouts: this._bind(addAccountCallouts),
|
|
5951
|
+
/** @deprecated Use `zernio.adaccounts.updateAccountCallouts` instead. */
|
|
5952
|
+
updateAccountCallouts: this._bind(updateAccountCallouts),
|
|
5771
5953
|
/** @deprecated Use `zernio.adaccounts.removeAccountCallout` instead. */
|
|
5772
5954
|
removeAccountCallout: this._bind(removeAccountCallout),
|
|
5955
|
+
/** @deprecated Use `zernio.adaccounts.listAccountSitelinks` instead. */
|
|
5956
|
+
listAccountSitelinks: this._bind(listAccountSitelinks),
|
|
5957
|
+
/** @deprecated Use `zernio.adaccounts.addAccountSitelinks` instead. */
|
|
5958
|
+
addAccountSitelinks: this._bind(addAccountSitelinks),
|
|
5959
|
+
/** @deprecated Use `zernio.adaccounts.updateAccountSitelinks` instead. */
|
|
5960
|
+
updateAccountSitelinks: this._bind(updateAccountSitelinks),
|
|
5961
|
+
/** @deprecated Use `zernio.adaccounts.removeAccountSitelink` instead. */
|
|
5962
|
+
removeAccountSitelink: this._bind(removeAccountSitelink),
|
|
5963
|
+
/** @deprecated Use `zernio.adaccounts.listAccountStructuredSnippets` instead. */
|
|
5964
|
+
listAccountStructuredSnippets: this._bind(listAccountStructuredSnippets),
|
|
5965
|
+
/** @deprecated Use `zernio.adaccounts.addAccountStructuredSnippets` instead. */
|
|
5966
|
+
addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
|
|
5967
|
+
/** @deprecated Use `zernio.adaccounts.updateAccountStructuredSnippets` instead. */
|
|
5968
|
+
updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
|
|
5969
|
+
/** @deprecated Use `zernio.adaccounts.removeAccountStructuredSnippet` instead. */
|
|
5970
|
+
removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
|
|
5773
5971
|
/** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
|
|
5774
5972
|
getAdAccountFinance: this._bind(getAdAccountFinance),
|
|
5775
5973
|
/** @deprecated Use `zernio.adaccounts.listAdAccounts` instead. */
|
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.733",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -3420,12 +3420,54 @@ var updateAdStatus = (options) => {
|
|
|
3420
3420
|
url: "/v1/ads/{adId}/status"
|
|
3421
3421
|
});
|
|
3422
3422
|
};
|
|
3423
|
+
var listCampaignAssets = (options) => {
|
|
3424
|
+
return (options?.client ?? client).get({
|
|
3425
|
+
...options,
|
|
3426
|
+
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3427
|
+
});
|
|
3428
|
+
};
|
|
3423
3429
|
var attachCampaignAssets = (options) => {
|
|
3424
3430
|
return (options?.client ?? client).post({
|
|
3425
3431
|
...options,
|
|
3426
3432
|
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3427
3433
|
});
|
|
3428
3434
|
};
|
|
3435
|
+
var updateCampaignAssets = (options) => {
|
|
3436
|
+
return (options?.client ?? client).put({
|
|
3437
|
+
...options,
|
|
3438
|
+
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3439
|
+
});
|
|
3440
|
+
};
|
|
3441
|
+
var removeCampaignAssets = (options) => {
|
|
3442
|
+
return (options?.client ?? client).delete({
|
|
3443
|
+
...options,
|
|
3444
|
+
url: "/v1/ads/campaigns/{campaignId}/assets"
|
|
3445
|
+
});
|
|
3446
|
+
};
|
|
3447
|
+
var listAdGroupAssets = (options) => {
|
|
3448
|
+
return (options?.client ?? client).get({
|
|
3449
|
+
...options,
|
|
3450
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3451
|
+
});
|
|
3452
|
+
};
|
|
3453
|
+
var attachAdGroupAssets = (options) => {
|
|
3454
|
+
return (options?.client ?? client).post({
|
|
3455
|
+
...options,
|
|
3456
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3457
|
+
});
|
|
3458
|
+
};
|
|
3459
|
+
var updateAdGroupAssets = (options) => {
|
|
3460
|
+
return (options?.client ?? client).put({
|
|
3461
|
+
...options,
|
|
3462
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3463
|
+
});
|
|
3464
|
+
};
|
|
3465
|
+
var removeAdGroupAssets = (options) => {
|
|
3466
|
+
return (options?.client ?? client).delete({
|
|
3467
|
+
...options,
|
|
3468
|
+
url: "/v1/ads/ad-sets/{adSetId}/assets"
|
|
3469
|
+
});
|
|
3470
|
+
};
|
|
3429
3471
|
var getCampaignAnalytics = (options) => {
|
|
3430
3472
|
return (options?.client ?? client).get({
|
|
3431
3473
|
...options,
|
|
@@ -3504,6 +3546,24 @@ var getAdComments = (options) => {
|
|
|
3504
3546
|
url: "/v1/ads/{adId}/comments"
|
|
3505
3547
|
});
|
|
3506
3548
|
};
|
|
3549
|
+
var replyToAdComment = (options) => {
|
|
3550
|
+
return (options?.client ?? client).post({
|
|
3551
|
+
...options,
|
|
3552
|
+
url: "/v1/ads/{adId}/comments/{commentId}/reply"
|
|
3553
|
+
});
|
|
3554
|
+
};
|
|
3555
|
+
var hideAdComment = (options) => {
|
|
3556
|
+
return (options?.client ?? client).post({
|
|
3557
|
+
...options,
|
|
3558
|
+
url: "/v1/ads/{adId}/comments/{commentId}/hide"
|
|
3559
|
+
});
|
|
3560
|
+
};
|
|
3561
|
+
var deleteAdComment = (options) => {
|
|
3562
|
+
return (options?.client ?? client).delete({
|
|
3563
|
+
...options,
|
|
3564
|
+
url: "/v1/ads/{adId}/comments/{commentId}"
|
|
3565
|
+
});
|
|
3566
|
+
};
|
|
3507
3567
|
var listAdsBusinessCenters = (options) => {
|
|
3508
3568
|
return (options?.client ?? client).get({
|
|
3509
3569
|
...options,
|
|
@@ -3546,6 +3606,24 @@ var listAdStudies = (options) => {
|
|
|
3546
3606
|
url: "/v1/ads/studies"
|
|
3547
3607
|
});
|
|
3548
3608
|
};
|
|
3609
|
+
var listAdsInstagramAccounts = (options) => {
|
|
3610
|
+
return (options?.client ?? client).get({
|
|
3611
|
+
...options,
|
|
3612
|
+
url: "/v1/ads/instagram-accounts"
|
|
3613
|
+
});
|
|
3614
|
+
};
|
|
3615
|
+
var listAdvertisableApplications = (options) => {
|
|
3616
|
+
return (options?.client ?? client).get({
|
|
3617
|
+
...options,
|
|
3618
|
+
url: "/v1/ads/advertisable-applications"
|
|
3619
|
+
});
|
|
3620
|
+
};
|
|
3621
|
+
var getIosFourteenCampaignLimits = (options) => {
|
|
3622
|
+
return (options?.client ?? client).get({
|
|
3623
|
+
...options,
|
|
3624
|
+
url: "/v1/ads/ios-fourteen-campaign-limits"
|
|
3625
|
+
});
|
|
3626
|
+
};
|
|
3549
3627
|
var listMetaBusinesses = (options) => {
|
|
3550
3628
|
return (options?.client ?? client).get({
|
|
3551
3629
|
...options,
|
|
@@ -3690,12 +3768,66 @@ var addAccountCallouts = (options) => {
|
|
|
3690
3768
|
url: "/v1/ads/accounts/callouts"
|
|
3691
3769
|
});
|
|
3692
3770
|
};
|
|
3771
|
+
var updateAccountCallouts = (options) => {
|
|
3772
|
+
return (options?.client ?? client).put({
|
|
3773
|
+
...options,
|
|
3774
|
+
url: "/v1/ads/accounts/callouts"
|
|
3775
|
+
});
|
|
3776
|
+
};
|
|
3693
3777
|
var removeAccountCallout = (options) => {
|
|
3694
3778
|
return (options?.client ?? client).delete({
|
|
3695
3779
|
...options,
|
|
3696
3780
|
url: "/v1/ads/accounts/callouts"
|
|
3697
3781
|
});
|
|
3698
3782
|
};
|
|
3783
|
+
var listAccountSitelinks = (options) => {
|
|
3784
|
+
return (options?.client ?? client).get({
|
|
3785
|
+
...options,
|
|
3786
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3787
|
+
});
|
|
3788
|
+
};
|
|
3789
|
+
var addAccountSitelinks = (options) => {
|
|
3790
|
+
return (options?.client ?? client).post({
|
|
3791
|
+
...options,
|
|
3792
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3793
|
+
});
|
|
3794
|
+
};
|
|
3795
|
+
var updateAccountSitelinks = (options) => {
|
|
3796
|
+
return (options?.client ?? client).put({
|
|
3797
|
+
...options,
|
|
3798
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3799
|
+
});
|
|
3800
|
+
};
|
|
3801
|
+
var removeAccountSitelink = (options) => {
|
|
3802
|
+
return (options?.client ?? client).delete({
|
|
3803
|
+
...options,
|
|
3804
|
+
url: "/v1/ads/accounts/sitelinks"
|
|
3805
|
+
});
|
|
3806
|
+
};
|
|
3807
|
+
var listAccountStructuredSnippets = (options) => {
|
|
3808
|
+
return (options?.client ?? client).get({
|
|
3809
|
+
...options,
|
|
3810
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3811
|
+
});
|
|
3812
|
+
};
|
|
3813
|
+
var addAccountStructuredSnippets = (options) => {
|
|
3814
|
+
return (options?.client ?? client).post({
|
|
3815
|
+
...options,
|
|
3816
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3817
|
+
});
|
|
3818
|
+
};
|
|
3819
|
+
var updateAccountStructuredSnippets = (options) => {
|
|
3820
|
+
return (options?.client ?? client).put({
|
|
3821
|
+
...options,
|
|
3822
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3823
|
+
});
|
|
3824
|
+
};
|
|
3825
|
+
var removeAccountStructuredSnippet = (options) => {
|
|
3826
|
+
return (options?.client ?? client).delete({
|
|
3827
|
+
...options,
|
|
3828
|
+
url: "/v1/ads/accounts/structured-snippets"
|
|
3829
|
+
});
|
|
3830
|
+
};
|
|
3699
3831
|
var getAdAccountFinance = (options) => {
|
|
3700
3832
|
return (options?.client ?? client).get({
|
|
3701
3833
|
...options,
|
|
@@ -5362,7 +5494,14 @@ var Zernio = class _Zernio {
|
|
|
5362
5494
|
updateAd: this._bind(updateAd),
|
|
5363
5495
|
deleteAd: this._bind(deleteAd),
|
|
5364
5496
|
updateAdStatus: this._bind(updateAdStatus),
|
|
5497
|
+
listCampaignAssets: this._bind(listCampaignAssets),
|
|
5365
5498
|
attachCampaignAssets: this._bind(attachCampaignAssets),
|
|
5499
|
+
updateCampaignAssets: this._bind(updateCampaignAssets),
|
|
5500
|
+
removeCampaignAssets: this._bind(removeCampaignAssets),
|
|
5501
|
+
listAdGroupAssets: this._bind(listAdGroupAssets),
|
|
5502
|
+
attachAdGroupAssets: this._bind(attachAdGroupAssets),
|
|
5503
|
+
updateAdGroupAssets: this._bind(updateAdGroupAssets),
|
|
5504
|
+
removeAdGroupAssets: this._bind(removeAdGroupAssets),
|
|
5366
5505
|
listCampaignNegativeKeywordLists: this._bind(listCampaignNegativeKeywordLists),
|
|
5367
5506
|
replaceCampaignNegativeKeywordLists: this._bind(replaceCampaignNegativeKeywordLists),
|
|
5368
5507
|
boostPost: this._bind(boostPost),
|
|
@@ -5423,9 +5562,15 @@ var Zernio = class _Zernio {
|
|
|
5423
5562
|
*/
|
|
5424
5563
|
this.adaccounts = {
|
|
5425
5564
|
getAdComments: this._bind(getAdComments),
|
|
5565
|
+
replyToAdComment: this._bind(replyToAdComment),
|
|
5566
|
+
hideAdComment: this._bind(hideAdComment),
|
|
5567
|
+
deleteAdComment: this._bind(deleteAdComment),
|
|
5426
5568
|
listAdsBusinessCenters: this._bind(listAdsBusinessCenters),
|
|
5427
5569
|
getAdsActivityLog: this._bind(getAdsActivityLog),
|
|
5428
5570
|
listAdStudies: this._bind(listAdStudies),
|
|
5571
|
+
listAdsInstagramAccounts: this._bind(listAdsInstagramAccounts),
|
|
5572
|
+
listAdvertisableApplications: this._bind(listAdvertisableApplications),
|
|
5573
|
+
getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
|
|
5429
5574
|
listMetaBusinesses: this._bind(listMetaBusinesses),
|
|
5430
5575
|
listAdLabels: this._bind(listAdLabels),
|
|
5431
5576
|
listHighDemandPeriods: this._bind(listHighDemandPeriods),
|
|
@@ -5443,7 +5588,16 @@ var Zernio = class _Zernio {
|
|
|
5443
5588
|
replaceAdNegativeKeywordListKeywords: this._bind(replaceAdNegativeKeywordListKeywords),
|
|
5444
5589
|
listAccountCallouts: this._bind(listAccountCallouts),
|
|
5445
5590
|
addAccountCallouts: this._bind(addAccountCallouts),
|
|
5591
|
+
updateAccountCallouts: this._bind(updateAccountCallouts),
|
|
5446
5592
|
removeAccountCallout: this._bind(removeAccountCallout),
|
|
5593
|
+
listAccountSitelinks: this._bind(listAccountSitelinks),
|
|
5594
|
+
addAccountSitelinks: this._bind(addAccountSitelinks),
|
|
5595
|
+
updateAccountSitelinks: this._bind(updateAccountSitelinks),
|
|
5596
|
+
removeAccountSitelink: this._bind(removeAccountSitelink),
|
|
5597
|
+
listAccountStructuredSnippets: this._bind(listAccountStructuredSnippets),
|
|
5598
|
+
addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
|
|
5599
|
+
updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
|
|
5600
|
+
removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
|
|
5447
5601
|
getAdAccountFinance: this._bind(getAdAccountFinance),
|
|
5448
5602
|
listAdAccounts: this._bind(listAdAccounts),
|
|
5449
5603
|
updateAdAccount: this._bind(updateAdAccount),
|
|
@@ -5685,8 +5839,22 @@ var Zernio = class _Zernio {
|
|
|
5685
5839
|
deleteAd: this._bind(deleteAd),
|
|
5686
5840
|
/** @deprecated Use `zernio.adcampaigns.updateAdStatus` instead. */
|
|
5687
5841
|
updateAdStatus: this._bind(updateAdStatus),
|
|
5842
|
+
/** @deprecated Use `zernio.adcampaigns.listCampaignAssets` instead. */
|
|
5843
|
+
listCampaignAssets: this._bind(listCampaignAssets),
|
|
5688
5844
|
/** @deprecated Use `zernio.adcampaigns.attachCampaignAssets` instead. */
|
|
5689
5845
|
attachCampaignAssets: this._bind(attachCampaignAssets),
|
|
5846
|
+
/** @deprecated Use `zernio.adcampaigns.updateCampaignAssets` instead. */
|
|
5847
|
+
updateCampaignAssets: this._bind(updateCampaignAssets),
|
|
5848
|
+
/** @deprecated Use `zernio.adcampaigns.removeCampaignAssets` instead. */
|
|
5849
|
+
removeCampaignAssets: this._bind(removeCampaignAssets),
|
|
5850
|
+
/** @deprecated Use `zernio.adcampaigns.listAdGroupAssets` instead. */
|
|
5851
|
+
listAdGroupAssets: this._bind(listAdGroupAssets),
|
|
5852
|
+
/** @deprecated Use `zernio.adcampaigns.attachAdGroupAssets` instead. */
|
|
5853
|
+
attachAdGroupAssets: this._bind(attachAdGroupAssets),
|
|
5854
|
+
/** @deprecated Use `zernio.adcampaigns.updateAdGroupAssets` instead. */
|
|
5855
|
+
updateAdGroupAssets: this._bind(updateAdGroupAssets),
|
|
5856
|
+
/** @deprecated Use `zernio.adcampaigns.removeAdGroupAssets` instead. */
|
|
5857
|
+
removeAdGroupAssets: this._bind(removeAdGroupAssets),
|
|
5690
5858
|
/** @deprecated Use `zernio.adcampaigns.listCampaignNegativeKeywordLists` instead. */
|
|
5691
5859
|
listCampaignNegativeKeywordLists: this._bind(listCampaignNegativeKeywordLists),
|
|
5692
5860
|
/** @deprecated Use `zernio.adcampaigns.replaceCampaignNegativeKeywordLists` instead. */
|
|
@@ -5697,12 +5865,24 @@ var Zernio = class _Zernio {
|
|
|
5697
5865
|
createStandaloneAd: this._bind(createStandaloneAd),
|
|
5698
5866
|
/** @deprecated Use `zernio.adaccounts.getAdComments` instead. */
|
|
5699
5867
|
getAdComments: this._bind(getAdComments),
|
|
5868
|
+
/** @deprecated Use `zernio.adaccounts.replyToAdComment` instead. */
|
|
5869
|
+
replyToAdComment: this._bind(replyToAdComment),
|
|
5870
|
+
/** @deprecated Use `zernio.adaccounts.hideAdComment` instead. */
|
|
5871
|
+
hideAdComment: this._bind(hideAdComment),
|
|
5872
|
+
/** @deprecated Use `zernio.adaccounts.deleteAdComment` instead. */
|
|
5873
|
+
deleteAdComment: this._bind(deleteAdComment),
|
|
5700
5874
|
/** @deprecated Use `zernio.adaccounts.listAdsBusinessCenters` instead. */
|
|
5701
5875
|
listAdsBusinessCenters: this._bind(listAdsBusinessCenters),
|
|
5702
5876
|
/** @deprecated Use `zernio.adaccounts.getAdsActivityLog` instead. */
|
|
5703
5877
|
getAdsActivityLog: this._bind(getAdsActivityLog),
|
|
5704
5878
|
/** @deprecated Use `zernio.adaccounts.listAdStudies` instead. */
|
|
5705
5879
|
listAdStudies: this._bind(listAdStudies),
|
|
5880
|
+
/** @deprecated Use `zernio.adaccounts.listAdsInstagramAccounts` instead. */
|
|
5881
|
+
listAdsInstagramAccounts: this._bind(listAdsInstagramAccounts),
|
|
5882
|
+
/** @deprecated Use `zernio.adaccounts.listAdvertisableApplications` instead. */
|
|
5883
|
+
listAdvertisableApplications: this._bind(listAdvertisableApplications),
|
|
5884
|
+
/** @deprecated Use `zernio.adaccounts.getIosFourteenCampaignLimits` instead. */
|
|
5885
|
+
getIosFourteenCampaignLimits: this._bind(getIosFourteenCampaignLimits),
|
|
5706
5886
|
/** @deprecated Use `zernio.adaccounts.listMetaBusinesses` instead. */
|
|
5707
5887
|
listMetaBusinesses: this._bind(listMetaBusinesses),
|
|
5708
5888
|
/** @deprecated Use `zernio.adaccounts.listAdLabels` instead. */
|
|
@@ -5737,8 +5917,26 @@ var Zernio = class _Zernio {
|
|
|
5737
5917
|
listAccountCallouts: this._bind(listAccountCallouts),
|
|
5738
5918
|
/** @deprecated Use `zernio.adaccounts.addAccountCallouts` instead. */
|
|
5739
5919
|
addAccountCallouts: this._bind(addAccountCallouts),
|
|
5920
|
+
/** @deprecated Use `zernio.adaccounts.updateAccountCallouts` instead. */
|
|
5921
|
+
updateAccountCallouts: this._bind(updateAccountCallouts),
|
|
5740
5922
|
/** @deprecated Use `zernio.adaccounts.removeAccountCallout` instead. */
|
|
5741
5923
|
removeAccountCallout: this._bind(removeAccountCallout),
|
|
5924
|
+
/** @deprecated Use `zernio.adaccounts.listAccountSitelinks` instead. */
|
|
5925
|
+
listAccountSitelinks: this._bind(listAccountSitelinks),
|
|
5926
|
+
/** @deprecated Use `zernio.adaccounts.addAccountSitelinks` instead. */
|
|
5927
|
+
addAccountSitelinks: this._bind(addAccountSitelinks),
|
|
5928
|
+
/** @deprecated Use `zernio.adaccounts.updateAccountSitelinks` instead. */
|
|
5929
|
+
updateAccountSitelinks: this._bind(updateAccountSitelinks),
|
|
5930
|
+
/** @deprecated Use `zernio.adaccounts.removeAccountSitelink` instead. */
|
|
5931
|
+
removeAccountSitelink: this._bind(removeAccountSitelink),
|
|
5932
|
+
/** @deprecated Use `zernio.adaccounts.listAccountStructuredSnippets` instead. */
|
|
5933
|
+
listAccountStructuredSnippets: this._bind(listAccountStructuredSnippets),
|
|
5934
|
+
/** @deprecated Use `zernio.adaccounts.addAccountStructuredSnippets` instead. */
|
|
5935
|
+
addAccountStructuredSnippets: this._bind(addAccountStructuredSnippets),
|
|
5936
|
+
/** @deprecated Use `zernio.adaccounts.updateAccountStructuredSnippets` instead. */
|
|
5937
|
+
updateAccountStructuredSnippets: this._bind(updateAccountStructuredSnippets),
|
|
5938
|
+
/** @deprecated Use `zernio.adaccounts.removeAccountStructuredSnippet` instead. */
|
|
5939
|
+
removeAccountStructuredSnippet: this._bind(removeAccountStructuredSnippet),
|
|
5742
5940
|
/** @deprecated Use `zernio.adaccounts.getAdAccountFinance` instead. */
|
|
5743
5941
|
getAdAccountFinance: this._bind(getAdAccountFinance),
|
|
5744
5942
|
/** @deprecated Use `zernio.adaccounts.listAdAccounts` instead. */
|