@getlatedev/node 0.2.1469 → 0.2.1471
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -0
- package/src/generated/types.gen.ts +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -19694,7 +19694,9 @@ type status54 = 'applied' | 'skipped' | 'failed' | 'unknown';
|
|
|
19694
19694
|
/**
|
|
19695
19695
|
* Webhook payload for `automation.alert.opened`, `automation.alert.escalated` and `automation.alert.resolved`: an alert episode of an automation with a lifecycle (an ad rule's `lifecycle`).
|
|
19696
19696
|
*
|
|
19697
|
-
* Sent as soon as the check records the change; a resolve that a pause or reactivation causes is sent once it applies. A streak that never opened sends nothing.
|
|
19697
|
+
* Sent as soon as the check records the change; a resolve that a pause or reactivation causes is sent once it applies. A streak that never opened sends nothing.
|
|
19698
|
+
*
|
|
19699
|
+
* Alerts closed outside a check (the rule turned off, deleted or its `lifecycle` removed between checks, or the daily cleanup) are not announced.
|
|
19698
19700
|
*
|
|
19699
19701
|
*/
|
|
19700
19702
|
type WebhookPayloadAutomationAlert = {
|
|
@@ -59108,8 +59110,14 @@ type CreateStandaloneAdData = {
|
|
|
59108
59110
|
/**
|
|
59109
59111
|
* Meta-only. When present, switches to the multi-creative shape:
|
|
59110
59112
|
* creates 1 campaign + 1 ad set + N ads (one per entry here).
|
|
59113
|
+
* Mutually exclusive with `adSetId`.
|
|
59114
|
+
*
|
|
59115
|
+
* With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per
|
|
59116
|
+
* audience launches a creative matrix.
|
|
59117
|
+
*
|
|
59111
59118
|
* Top-level `headline` / `body` / `imageUrl` / `linkUrl` /
|
|
59112
|
-
* `callToAction` are ignored in this mode.
|
|
59119
|
+
* `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share
|
|
59120
|
+
* one upload.
|
|
59113
59121
|
*
|
|
59114
59122
|
*/
|
|
59115
59123
|
creatives?: Array<{
|
|
@@ -59175,10 +59183,11 @@ type CreateStandaloneAdData = {
|
|
|
59175
59183
|
*/
|
|
59176
59184
|
adSetId?: string;
|
|
59177
59185
|
/**
|
|
59178
|
-
* 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
|
|
59186
|
+
* 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`.
|
|
59179
59187
|
*
|
|
59180
59188
|
* - 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`.
|
|
59181
59189
|
* - 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).
|
|
59190
|
+
* - Meta with `creatives[]`: the new ad set gets one ad per entry.
|
|
59182
59191
|
* - LinkedIn: creates a new Campaign (and its Creative) under this EXISTING CampaignGroup.
|
|
59183
59192
|
* - 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.
|
|
59184
59193
|
* - 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
|
@@ -19694,7 +19694,9 @@ type status54 = 'applied' | 'skipped' | 'failed' | 'unknown';
|
|
|
19694
19694
|
/**
|
|
19695
19695
|
* Webhook payload for `automation.alert.opened`, `automation.alert.escalated` and `automation.alert.resolved`: an alert episode of an automation with a lifecycle (an ad rule's `lifecycle`).
|
|
19696
19696
|
*
|
|
19697
|
-
* Sent as soon as the check records the change; a resolve that a pause or reactivation causes is sent once it applies. A streak that never opened sends nothing.
|
|
19697
|
+
* Sent as soon as the check records the change; a resolve that a pause or reactivation causes is sent once it applies. A streak that never opened sends nothing.
|
|
19698
|
+
*
|
|
19699
|
+
* Alerts closed outside a check (the rule turned off, deleted or its `lifecycle` removed between checks, or the daily cleanup) are not announced.
|
|
19698
19700
|
*
|
|
19699
19701
|
*/
|
|
19700
19702
|
type WebhookPayloadAutomationAlert = {
|
|
@@ -59108,8 +59110,14 @@ type CreateStandaloneAdData = {
|
|
|
59108
59110
|
/**
|
|
59109
59111
|
* Meta-only. When present, switches to the multi-creative shape:
|
|
59110
59112
|
* creates 1 campaign + 1 ad set + N ads (one per entry here).
|
|
59113
|
+
* Mutually exclusive with `adSetId`.
|
|
59114
|
+
*
|
|
59115
|
+
* With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per
|
|
59116
|
+
* audience launches a creative matrix.
|
|
59117
|
+
*
|
|
59111
59118
|
* Top-level `headline` / `body` / `imageUrl` / `linkUrl` /
|
|
59112
|
-
* `callToAction` are ignored in this mode.
|
|
59119
|
+
* `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share
|
|
59120
|
+
* one upload.
|
|
59113
59121
|
*
|
|
59114
59122
|
*/
|
|
59115
59123
|
creatives?: Array<{
|
|
@@ -59175,10 +59183,11 @@ type CreateStandaloneAdData = {
|
|
|
59175
59183
|
*/
|
|
59176
59184
|
adSetId?: string;
|
|
59177
59185
|
/**
|
|
59178
|
-
* 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
|
|
59186
|
+
* 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`.
|
|
59179
59187
|
*
|
|
59180
59188
|
* - 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`.
|
|
59181
59189
|
* - 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).
|
|
59190
|
+
* - Meta with `creatives[]`: the new ad set gets one ad per entry.
|
|
59182
59191
|
* - LinkedIn: creates a new Campaign (and its Creative) under this EXISTING CampaignGroup.
|
|
59183
59192
|
* - 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.
|
|
59184
59193
|
* - 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.
|
|
39
|
+
version: "0.2.1471",
|
|
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.
|
|
8
|
+
version: "0.2.1471",
|
|
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
|
@@ -12448,6 +12448,7 @@ export const listAdRuleActivity = <ThrowOnError extends boolean = false>(options
|
|
|
12448
12448
|
/**
|
|
12449
12449
|
* Undo a change an ad rule made
|
|
12450
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.
|
|
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
12453
|
*
|
|
12453
12454
|
*/
|
|
@@ -18194,7 +18194,9 @@ export type status54 = 'applied' | 'skipped' | 'failed' | 'unknown';
|
|
|
18194
18194
|
/**
|
|
18195
18195
|
* Webhook payload for `automation.alert.opened`, `automation.alert.escalated` and `automation.alert.resolved`: an alert episode of an automation with a lifecycle (an ad rule's `lifecycle`).
|
|
18196
18196
|
*
|
|
18197
|
-
* Sent as soon as the check records the change; a resolve that a pause or reactivation causes is sent once it applies. A streak that never opened sends nothing.
|
|
18197
|
+
* Sent as soon as the check records the change; a resolve that a pause or reactivation causes is sent once it applies. A streak that never opened sends nothing.
|
|
18198
|
+
*
|
|
18199
|
+
* Alerts closed outside a check (the rule turned off, deleted or its `lifecycle` removed between checks, or the daily cleanup) are not announced.
|
|
18198
18200
|
*
|
|
18199
18201
|
*/
|
|
18200
18202
|
export type WebhookPayloadAutomationAlert = {
|
|
@@ -60324,8 +60326,14 @@ export type CreateStandaloneAdData = {
|
|
|
60324
60326
|
/**
|
|
60325
60327
|
* Meta-only. When present, switches to the multi-creative shape:
|
|
60326
60328
|
* creates 1 campaign + 1 ad set + N ads (one per entry here).
|
|
60329
|
+
* Mutually exclusive with `adSetId`.
|
|
60330
|
+
*
|
|
60331
|
+
* With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per
|
|
60332
|
+
* audience launches a creative matrix.
|
|
60333
|
+
*
|
|
60327
60334
|
* Top-level `headline` / `body` / `imageUrl` / `linkUrl` /
|
|
60328
|
-
* `callToAction` are ignored in this mode.
|
|
60335
|
+
* `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share
|
|
60336
|
+
* one upload.
|
|
60329
60337
|
*
|
|
60330
60338
|
*/
|
|
60331
60339
|
creatives?: Array<{
|
|
@@ -60391,10 +60399,11 @@ export type CreateStandaloneAdData = {
|
|
|
60391
60399
|
*/
|
|
60392
60400
|
adSetId?: string;
|
|
60393
60401
|
/**
|
|
60394
|
-
* 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
|
|
60402
|
+
* 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`.
|
|
60395
60403
|
*
|
|
60396
60404
|
* - 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`.
|
|
60397
60405
|
* - 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).
|
|
60406
|
+
* - Meta with `creatives[]`: the new ad set gets one ad per entry.
|
|
60398
60407
|
* - LinkedIn: creates a new Campaign (and its Creative) under this EXISTING CampaignGroup.
|
|
60399
60408
|
* - 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.
|
|
60400
60409
|
* - 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.
|