@zernio/node 0.2.820 → 0.2.822

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 CHANGED
@@ -37848,6 +37848,10 @@ type BoostPostData = {
37848
37848
  * Meta, or TikTok with `smartPlus: true`. Attach the boosted post to this existing ad set instead of creating a campaign. On TikTok the id is an existing Smart+ ad group: the post is added as one more Spark ad in it (up to 30 per ad group), under the identity its `sparkAuthCode` creates; goal and budget are inherited from the Smart+ campaign; a regular ad group is rejected with a 400. Meta: The ad set then owns budget, schedule and targeting; sending those too is a 400.
37849
37849
  */
37850
37850
  adSetId?: string;
37851
+ /**
37852
+ * TikTok only. Create the ad group and the Spark ad under this existing TikTok campaign instead of creating a new campaign. The campaign keeps its own status and objective (the objective must fit `goal`). Cannot be combined with adSetId or smartPlus. On Meta use POST /v1/ads/create with existingCampaignId.
37853
+ */
37854
+ existingCampaignId?: string;
37851
37855
  /**
37852
37856
  * Required unless adSetId is set.
37853
37857
  */
package/dist/index.d.ts CHANGED
@@ -37848,6 +37848,10 @@ type BoostPostData = {
37848
37848
  * Meta, or TikTok with `smartPlus: true`. Attach the boosted post to this existing ad set instead of creating a campaign. On TikTok the id is an existing Smart+ ad group: the post is added as one more Spark ad in it (up to 30 per ad group), under the identity its `sparkAuthCode` creates; goal and budget are inherited from the Smart+ campaign; a regular ad group is rejected with a 400. Meta: The ad set then owns budget, schedule and targeting; sending those too is a 400.
37849
37849
  */
37850
37850
  adSetId?: string;
37851
+ /**
37852
+ * TikTok only. Create the ad group and the Spark ad under this existing TikTok campaign instead of creating a new campaign. The campaign keeps its own status and objective (the objective must fit `goal`). Cannot be combined with adSetId or smartPlus. On Meta use POST /v1/ads/create with existingCampaignId.
37853
+ */
37854
+ existingCampaignId?: string;
37851
37855
  /**
37852
37856
  * Required unless adSetId is set.
37853
37857
  */
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.820",
39
+ version: "0.2.822",
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.820",
8
+ version: "0.2.822",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.820",
3
+ "version": "0.2.822",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -8704,11 +8704,17 @@ export const createAdSet = <ThrowOnError extends boolean = false>(options: Optio
8704
8704
 
8705
8705
  /**
8706
8706
  * Duplicate an ad set
8707
- * Duplicates an ad set, including its ads and creatives by default (`deepCopy: true`),
8708
- * via Meta's native `POST /{adset-id}/copies`. The copy is created paused so callers can
8709
- * review before launching. `campaignId` retargets the copy into another campaign; omitted
8710
- * = the source's own campaign. The new hierarchy materializes asynchronously, and sync
8711
- * discovery is triggered automatically (`syncAfter: false` to skip).
8707
+ * Duplicates an ad set. The copy is created paused so callers can review before launching.
8708
+ * `campaignId` retargets the copy into another campaign; omitted = the source's own campaign.
8709
+ *
8710
+ * Meta: ads and creatives are included by default (`deepCopy: true`) via Meta's native
8711
+ * `POST /{adset-id}/copies`; the new hierarchy materializes asynchronously and sync discovery
8712
+ * is triggered automatically (`syncAfter: false` to skip).
8713
+ *
8714
+ * TikTok: the ad group is read and recreated under the campaign with its targeting, bidding,
8715
+ * budget and schedule (start reset to now); `deepCopy: true` recreates its ads too (default
8716
+ * false). `startTime`, `endTime` and `renameStrategy` are ignored and `statusOption` must be
8717
+ * PAUSED or absent. The copy appears on the next discovery sync.
8712
8718
  */
8713
8719
  export const duplicateAdSet = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DuplicateAdSetData, ThrowOnError>) => {
8714
8720
  return (options?.client ?? client).post<DuplicateAdSetResponse, DuplicateAdSetError, ThrowOnError>({
@@ -38458,6 +38458,10 @@ export type BoostPostData = {
38458
38458
  * Meta, or TikTok with `smartPlus: true`. Attach the boosted post to this existing ad set instead of creating a campaign. On TikTok the id is an existing Smart+ ad group: the post is added as one more Spark ad in it (up to 30 per ad group), under the identity its `sparkAuthCode` creates; goal and budget are inherited from the Smart+ campaign; a regular ad group is rejected with a 400. Meta: The ad set then owns budget, schedule and targeting; sending those too is a 400.
38459
38459
  */
38460
38460
  adSetId?: string;
38461
+ /**
38462
+ * TikTok only. Create the ad group and the Spark ad under this existing TikTok campaign instead of creating a new campaign. The campaign keeps its own status and objective (the objective must fit `goal`). Cannot be combined with adSetId or smartPlus. On Meta use POST /v1/ads/create with existingCampaignId.
38463
+ */
38464
+ existingCampaignId?: string;
38461
38465
  /**
38462
38466
  * Required unless adSetId is set.
38463
38467
  */