@getlatedev/node 0.2.1470 → 0.2.1472

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
@@ -3962,9 +3962,13 @@ type AdRuleAction = {
3962
3962
  maxChangesPerDay?: number;
3963
3963
  } | {
3964
3964
  /**
3965
- * Reactivate a campaign, ad set or ad a rule paused, once `cooldownMinutes` has passed since the pause. Objects you paused yourself are never touched.
3965
+ * Reactivate a campaign, ad set or ad a rule paused, once `cooldownMinutes` has passed since the pause. Objects you paused yourself are left alone unless `includeManuallyPaused` is true.
3966
3966
  */
3967
3967
  type: 'activate';
3968
+ /**
3969
+ * Also reactivate paused objects that no rule paused, as soon as they match.
3970
+ */
3971
+ includeManuallyPaused?: boolean;
3968
3972
  /**
3969
3973
  * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
3970
3974
  */
@@ -59110,8 +59114,14 @@ type CreateStandaloneAdData = {
59110
59114
  /**
59111
59115
  * Meta-only. When present, switches to the multi-creative shape:
59112
59116
  * creates 1 campaign + 1 ad set + N ads (one per entry here).
59117
+ * Mutually exclusive with `adSetId`.
59118
+ *
59119
+ * With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per
59120
+ * audience launches a creative matrix.
59121
+ *
59113
59122
  * Top-level `headline` / `body` / `imageUrl` / `linkUrl` /
59114
- * `callToAction` are ignored in this mode. Mutually exclusive with `adSetId`.
59123
+ * `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share
59124
+ * one upload.
59115
59125
  *
59116
59126
  */
59117
59127
  creatives?: Array<{
@@ -59177,10 +59187,11 @@ type CreateStandaloneAdData = {
59177
59187
  */
59178
59188
  adSetId?: string;
59179
59189
  /**
59180
- * Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. Mutually exclusive with `adSetId` and `creatives[]`.
59190
+ * Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. Mutually exclusive with `adSetId`.
59181
59191
  *
59182
59192
  * - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`.
59183
59193
  * - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; for an ABO campaign pass them (they go on the new ad set).
59194
+ * - Meta with `creatives[]`: the new ad set gets one ad per entry.
59184
59195
  * - LinkedIn: creates a new Campaign (and its Creative) under this EXISTING CampaignGroup.
59185
59196
  * - Google Ads: creates a new ad group under this campaign. It inherits the campaign's budget, so omit `budgetAmount`/`budgetType` (and any bidding field), or the request returns 400.
59186
59197
  * - Google Ads with `campaignType: "demand_gen"`: the campaign must be Demand Gen (otherwise 400). The new ad group (with its geo, languages, channels and audience from the request) and its ad are created in one atomic request, the ad group PAUSED. Schedule and `locationTargetingType` belong to the campaign and return 400.
package/dist/index.d.ts CHANGED
@@ -3962,9 +3962,13 @@ type AdRuleAction = {
3962
3962
  maxChangesPerDay?: number;
3963
3963
  } | {
3964
3964
  /**
3965
- * Reactivate a campaign, ad set or ad a rule paused, once `cooldownMinutes` has passed since the pause. Objects you paused yourself are never touched.
3965
+ * Reactivate a campaign, ad set or ad a rule paused, once `cooldownMinutes` has passed since the pause. Objects you paused yourself are left alone unless `includeManuallyPaused` is true.
3966
3966
  */
3967
3967
  type: 'activate';
3968
+ /**
3969
+ * Also reactivate paused objects that no rule paused, as soon as they match.
3970
+ */
3971
+ includeManuallyPaused?: boolean;
3968
3972
  /**
3969
3973
  * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
3970
3974
  */
@@ -59110,8 +59114,14 @@ type CreateStandaloneAdData = {
59110
59114
  /**
59111
59115
  * Meta-only. When present, switches to the multi-creative shape:
59112
59116
  * creates 1 campaign + 1 ad set + N ads (one per entry here).
59117
+ * Mutually exclusive with `adSetId`.
59118
+ *
59119
+ * With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per
59120
+ * audience launches a creative matrix.
59121
+ *
59113
59122
  * Top-level `headline` / `body` / `imageUrl` / `linkUrl` /
59114
- * `callToAction` are ignored in this mode. Mutually exclusive with `adSetId`.
59123
+ * `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share
59124
+ * one upload.
59115
59125
  *
59116
59126
  */
59117
59127
  creatives?: Array<{
@@ -59177,10 +59187,11 @@ type CreateStandaloneAdData = {
59177
59187
  */
59178
59188
  adSetId?: string;
59179
59189
  /**
59180
- * Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. Mutually exclusive with `adSetId` and `creatives[]`.
59190
+ * Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. Mutually exclusive with `adSetId`.
59181
59191
  *
59182
59192
  * - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`.
59183
59193
  * - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; for an ABO campaign pass them (they go on the new ad set).
59194
+ * - Meta with `creatives[]`: the new ad set gets one ad per entry.
59184
59195
  * - LinkedIn: creates a new Campaign (and its Creative) under this EXISTING CampaignGroup.
59185
59196
  * - Google Ads: creates a new ad group under this campaign. It inherits the campaign's budget, so omit `budgetAmount`/`budgetType` (and any bidding field), or the request returns 400.
59186
59197
  * - Google Ads with `campaignType: "demand_gen"`: the campaign must be Demand Gen (otherwise 400). The new ad group (with its geo, languages, channels and audience from the request) and its ad are created in one atomic request, the ad group PAUSED. Schedule and `locationTargetingType` belong to the campaign and return 400.
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.1470",
39
+ version: "0.2.1472",
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.1470",
8
+ version: "0.2.1472",
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": "@getlatedev/node",
3
- "version": "0.2.1470",
3
+ "version": "0.2.1472",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12447,9 +12447,9 @@ export const listAdRuleActivity = <ThrowOnError extends boolean = false>(options
12447
12447
 
12448
12448
  /**
12449
12449
  * Undo a change an ad rule made
12450
- * Puts back a pause, a reactivation or a budget change a rule applied, as a new change recorded in the activity feed. The rule's cooldown then covers the object.
12450
+ * Puts back a pause, reactivation, budget or bid change, or name tag a rule applied, as a new change recorded in the activity feed. The rule's cooldown then covers the object.
12451
12451
  *
12452
- * It is refused (409 `invalid_resource_state`) when the change was not applied, was already undone, is a copy, or when the object changed since: delivering again after a pause, paused again after a reactivation, or on another budget.
12452
+ * It is refused (409 `invalid_resource_state`) when the change was not applied, was already undone, is a copy, or when the object changed since: delivering again after a pause, paused again after a reactivation, or on another budget, bid or name.
12453
12453
  *
12454
12454
  */
12455
12455
  export const undoAdRuleActivity = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UndoAdRuleActivityData, ThrowOnError>) => {
@@ -1735,9 +1735,13 @@ export type AdRuleAction = {
1735
1735
  maxChangesPerDay?: number;
1736
1736
  } | {
1737
1737
  /**
1738
- * Reactivate a campaign, ad set or ad a rule paused, once `cooldownMinutes` has passed since the pause. Objects you paused yourself are never touched.
1738
+ * Reactivate a campaign, ad set or ad a rule paused, once `cooldownMinutes` has passed since the pause. Objects you paused yourself are left alone unless `includeManuallyPaused` is true.
1739
1739
  */
1740
1740
  type: 'activate';
1741
+ /**
1742
+ * Also reactivate paused objects that no rule paused, as soon as they match.
1743
+ */
1744
+ includeManuallyPaused?: boolean;
1741
1745
  /**
1742
1746
  * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
1743
1747
  */
@@ -60326,8 +60330,14 @@ export type CreateStandaloneAdData = {
60326
60330
  /**
60327
60331
  * Meta-only. When present, switches to the multi-creative shape:
60328
60332
  * creates 1 campaign + 1 ad set + N ads (one per entry here).
60333
+ * Mutually exclusive with `adSetId`.
60334
+ *
60335
+ * With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per
60336
+ * audience launches a creative matrix.
60337
+ *
60329
60338
  * Top-level `headline` / `body` / `imageUrl` / `linkUrl` /
60330
- * `callToAction` are ignored in this mode. Mutually exclusive with `adSetId`.
60339
+ * `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share
60340
+ * one upload.
60331
60341
  *
60332
60342
  */
60333
60343
  creatives?: Array<{
@@ -60393,10 +60403,11 @@ export type CreateStandaloneAdData = {
60393
60403
  */
60394
60404
  adSetId?: string;
60395
60405
  /**
60396
- * Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. Mutually exclusive with `adSetId` and `creatives[]`.
60406
+ * Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok and Reddit Ads. Mutually exclusive with `adSetId`.
60397
60407
  *
60398
60408
  * - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`.
60399
60409
  * - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; for an ABO campaign pass them (they go on the new ad set).
60410
+ * - Meta with `creatives[]`: the new ad set gets one ad per entry.
60400
60411
  * - LinkedIn: creates a new Campaign (and its Creative) under this EXISTING CampaignGroup.
60401
60412
  * - Google Ads: creates a new ad group under this campaign. It inherits the campaign's budget, so omit `budgetAmount`/`budgetType` (and any bidding field), or the request returns 400.
60402
60413
  * - Google Ads with `campaignType: "demand_gen"`: the campaign must be Demand Gen (otherwise 400). The new ad group (with its geo, languages, channels and audience from the request) and its ad are created in one atomic request, the ad group PAUSED. Schedule and `locationTargetingType` belong to the campaign and return 400.