@getlatedev/node 0.2.924 → 0.2.926
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -35146,7 +35146,7 @@ type CreateAdCampaignData = {
|
|
|
35146
35146
|
*/
|
|
35147
35147
|
buyingType?: 'AUCTION' | 'RESERVED';
|
|
35148
35148
|
/**
|
|
35149
|
-
* Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED.
|
|
35149
|
+
* Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED. `true` on any other platform returns 501 `feature_not_available` (same as POST /v1/ads/create); `false` is ignored.
|
|
35150
35150
|
*/
|
|
35151
35151
|
validateOnly?: boolean;
|
|
35152
35152
|
specialAdCategories?: Array<('HOUSING' | 'EMPLOYMENT' | 'CREDIT' | 'ISSUES_ELECTIONS_POLITICS' | 'FINANCIAL_PRODUCTS_SERVICES' | 'ONLINE_GAMBLING_AND_GAMING')>;
|
|
@@ -40228,7 +40228,7 @@ type BoostPostData = {
|
|
|
40228
40228
|
*/
|
|
40229
40229
|
leadGenFormId?: string;
|
|
40230
40230
|
/**
|
|
40231
|
-
* Meta, TikTok, and
|
|
40231
|
+
* Meta, TikTok, LinkedIn, and Google. Publish state of the created entities. Omitted or ACTIVE publishes live (default); PAUSED creates them paused so you can review before they spend. On Meta a new campaign stays paused until explicitly activated; an attached ad is itself paused. On Google the pause is held on the campaign the boost creates (ad group and ad switched on), so PUT /v1/ads/campaigns/{campaignId}/status with `active` brings it live. On LinkedIn the whole campaign group, campaign, and creative hierarchy stays PAUSED (intendedStatus PAUSED on each).
|
|
40232
40232
|
*/
|
|
40233
40233
|
status?: 'ACTIVE' | 'PAUSED';
|
|
40234
40234
|
/**
|
|
@@ -40369,7 +40369,7 @@ type CreateStandaloneAdData = {
|
|
|
40369
40369
|
*/
|
|
40370
40370
|
aiDisclosure?: 'OPT_IN' | 'OPT_OUT';
|
|
40371
40371
|
/**
|
|
40372
|
-
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error.
|
|
40372
|
+
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error. Any other platform, or a Google campaignType other than pmax, returns 501 `feature_not_available`.
|
|
40373
40373
|
*/
|
|
40374
40374
|
validateOnly?: boolean;
|
|
40375
40375
|
/**
|
|
@@ -40381,11 +40381,11 @@ type CreateStandaloneAdData = {
|
|
|
40381
40381
|
*/
|
|
40382
40382
|
budgetType?: 'daily' | 'lifetime';
|
|
40383
40383
|
/**
|
|
40384
|
-
* Google Performance Max accepts PAUSED only and always creates a paused campaign. Google Search and Display, Meta, TikTok, and
|
|
40384
|
+
* Google Performance Max accepts PAUSED only and always creates a paused campaign. Google Search and Display, Meta, TikTok, LinkedIn, and ChatGPT (OpenAI): publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused so you can review before they spend. On Meta the pause is held on the campaign this call creates, leaving the ad set and ad switched on, so a single PUT /v1/ads/campaigns/{campaignId}/status with `active` brings the whole thing live. It is held at every level instead when the pause cannot rely on the campaign: `existingCampaignId` (that campaign may be running and is never touched) or `campaignStatus: ACTIVE`. Google Search and Display follow the same rule, and because Google keeps an independent switch at campaign, ad group and ad level, a PAUSED create leaves the campaign it creates PAUSED at Google. On TikTok the whole campaign > ad group > ad hierarchy stays paused. On LinkedIn the whole campaign group, campaign, and creative hierarchy stays PAUSED (intendedStatus PAUSED on each). ChatGPT (OpenAI) follows the Meta rule: the pause is held on the campaign this call creates.
|
|
40385
40385
|
*/
|
|
40386
40386
|
status?: 'ACTIVE' | 'PAUSED';
|
|
40387
40387
|
/**
|
|
40388
|
-
* Meta and
|
|
40388
|
+
* Meta, Google, and ChatGPT (OpenAI). Overrides `status` for the campaign level alone, so you can create a live campaign whose ad set and ad stay paused, or the reverse. Omitted, it follows `status`.
|
|
40389
40389
|
*/
|
|
40390
40390
|
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
40391
40391
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -35146,7 +35146,7 @@ type CreateAdCampaignData = {
|
|
|
35146
35146
|
*/
|
|
35147
35147
|
buyingType?: 'AUCTION' | 'RESERVED';
|
|
35148
35148
|
/**
|
|
35149
|
-
* Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED.
|
|
35149
|
+
* Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED. `true` on any other platform returns 501 `feature_not_available` (same as POST /v1/ads/create); `false` is ignored.
|
|
35150
35150
|
*/
|
|
35151
35151
|
validateOnly?: boolean;
|
|
35152
35152
|
specialAdCategories?: Array<('HOUSING' | 'EMPLOYMENT' | 'CREDIT' | 'ISSUES_ELECTIONS_POLITICS' | 'FINANCIAL_PRODUCTS_SERVICES' | 'ONLINE_GAMBLING_AND_GAMING')>;
|
|
@@ -40228,7 +40228,7 @@ type BoostPostData = {
|
|
|
40228
40228
|
*/
|
|
40229
40229
|
leadGenFormId?: string;
|
|
40230
40230
|
/**
|
|
40231
|
-
* Meta, TikTok, and
|
|
40231
|
+
* Meta, TikTok, LinkedIn, and Google. Publish state of the created entities. Omitted or ACTIVE publishes live (default); PAUSED creates them paused so you can review before they spend. On Meta a new campaign stays paused until explicitly activated; an attached ad is itself paused. On Google the pause is held on the campaign the boost creates (ad group and ad switched on), so PUT /v1/ads/campaigns/{campaignId}/status with `active` brings it live. On LinkedIn the whole campaign group, campaign, and creative hierarchy stays PAUSED (intendedStatus PAUSED on each).
|
|
40232
40232
|
*/
|
|
40233
40233
|
status?: 'ACTIVE' | 'PAUSED';
|
|
40234
40234
|
/**
|
|
@@ -40369,7 +40369,7 @@ type CreateStandaloneAdData = {
|
|
|
40369
40369
|
*/
|
|
40370
40370
|
aiDisclosure?: 'OPT_IN' | 'OPT_OUT';
|
|
40371
40371
|
/**
|
|
40372
|
-
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error.
|
|
40372
|
+
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error. Any other platform, or a Google campaignType other than pmax, returns 501 `feature_not_available`.
|
|
40373
40373
|
*/
|
|
40374
40374
|
validateOnly?: boolean;
|
|
40375
40375
|
/**
|
|
@@ -40381,11 +40381,11 @@ type CreateStandaloneAdData = {
|
|
|
40381
40381
|
*/
|
|
40382
40382
|
budgetType?: 'daily' | 'lifetime';
|
|
40383
40383
|
/**
|
|
40384
|
-
* Google Performance Max accepts PAUSED only and always creates a paused campaign. Google Search and Display, Meta, TikTok, and
|
|
40384
|
+
* Google Performance Max accepts PAUSED only and always creates a paused campaign. Google Search and Display, Meta, TikTok, LinkedIn, and ChatGPT (OpenAI): publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused so you can review before they spend. On Meta the pause is held on the campaign this call creates, leaving the ad set and ad switched on, so a single PUT /v1/ads/campaigns/{campaignId}/status with `active` brings the whole thing live. It is held at every level instead when the pause cannot rely on the campaign: `existingCampaignId` (that campaign may be running and is never touched) or `campaignStatus: ACTIVE`. Google Search and Display follow the same rule, and because Google keeps an independent switch at campaign, ad group and ad level, a PAUSED create leaves the campaign it creates PAUSED at Google. On TikTok the whole campaign > ad group > ad hierarchy stays paused. On LinkedIn the whole campaign group, campaign, and creative hierarchy stays PAUSED (intendedStatus PAUSED on each). ChatGPT (OpenAI) follows the Meta rule: the pause is held on the campaign this call creates.
|
|
40385
40385
|
*/
|
|
40386
40386
|
status?: 'ACTIVE' | 'PAUSED';
|
|
40387
40387
|
/**
|
|
40388
|
-
* Meta and
|
|
40388
|
+
* Meta, Google, and ChatGPT (OpenAI). Overrides `status` for the campaign level alone, so you can create a live campaign whose ad set and ad stay paused, or the reverse. Omitted, it follows `status`.
|
|
40389
40389
|
*/
|
|
40390
40390
|
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
40391
40391
|
/**
|
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.926",
|
|
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.926",
|
|
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
|
@@ -35483,7 +35483,7 @@ export type CreateAdCampaignData = {
|
|
|
35483
35483
|
*/
|
|
35484
35484
|
buyingType?: 'AUCTION' | 'RESERVED';
|
|
35485
35485
|
/**
|
|
35486
|
-
* Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED.
|
|
35486
|
+
* Meta only. Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED. `true` on any other platform returns 501 `feature_not_available` (same as POST /v1/ads/create); `false` is ignored.
|
|
35487
35487
|
*/
|
|
35488
35488
|
validateOnly?: boolean;
|
|
35489
35489
|
specialAdCategories?: Array<('HOUSING' | 'EMPLOYMENT' | 'CREDIT' | 'ISSUES_ELECTIONS_POLITICS' | 'FINANCIAL_PRODUCTS_SERVICES' | 'ONLINE_GAMBLING_AND_GAMING')>;
|
|
@@ -40880,7 +40880,7 @@ export type BoostPostData = {
|
|
|
40880
40880
|
*/
|
|
40881
40881
|
leadGenFormId?: string;
|
|
40882
40882
|
/**
|
|
40883
|
-
* Meta, TikTok, and
|
|
40883
|
+
* Meta, TikTok, LinkedIn, and Google. Publish state of the created entities. Omitted or ACTIVE publishes live (default); PAUSED creates them paused so you can review before they spend. On Meta a new campaign stays paused until explicitly activated; an attached ad is itself paused. On Google the pause is held on the campaign the boost creates (ad group and ad switched on), so PUT /v1/ads/campaigns/{campaignId}/status with `active` brings it live. On LinkedIn the whole campaign group, campaign, and creative hierarchy stays PAUSED (intendedStatus PAUSED on each).
|
|
40884
40884
|
*/
|
|
40885
40885
|
status?: 'ACTIVE' | 'PAUSED';
|
|
40886
40886
|
/**
|
|
@@ -41027,7 +41027,7 @@ export type CreateStandaloneAdData = {
|
|
|
41027
41027
|
*/
|
|
41028
41028
|
aiDisclosure?: 'OPT_IN' | 'OPT_OUT';
|
|
41029
41029
|
/**
|
|
41030
|
-
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error.
|
|
41030
|
+
* Google Performance Max validates the complete atomic campaign and asset group with no resource creation or local persistence. Google validation still downloads image URLs and consumes quota. On Meta, validates the complete inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created, and validation bypasses Idempotency-Key storage. Supports a single image, all-image placementAssets with per-rule copy, existing video.id or existingCreativeId; other media pools, new video uploads, creatives[], adSetId and RESERVED buying return 400. Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped. Success returns 200 with per-node results; Meta rejection returns an error. Any other platform, or a Google campaignType other than pmax, returns 501 `feature_not_available`.
|
|
41031
41031
|
*/
|
|
41032
41032
|
validateOnly?: boolean;
|
|
41033
41033
|
/**
|
|
@@ -41039,11 +41039,11 @@ export type CreateStandaloneAdData = {
|
|
|
41039
41039
|
*/
|
|
41040
41040
|
budgetType?: 'daily' | 'lifetime';
|
|
41041
41041
|
/**
|
|
41042
|
-
* Google Performance Max accepts PAUSED only and always creates a paused campaign. Google Search and Display, Meta, TikTok, and
|
|
41042
|
+
* Google Performance Max accepts PAUSED only and always creates a paused campaign. Google Search and Display, Meta, TikTok, LinkedIn, and ChatGPT (OpenAI): publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused so you can review before they spend. On Meta the pause is held on the campaign this call creates, leaving the ad set and ad switched on, so a single PUT /v1/ads/campaigns/{campaignId}/status with `active` brings the whole thing live. It is held at every level instead when the pause cannot rely on the campaign: `existingCampaignId` (that campaign may be running and is never touched) or `campaignStatus: ACTIVE`. Google Search and Display follow the same rule, and because Google keeps an independent switch at campaign, ad group and ad level, a PAUSED create leaves the campaign it creates PAUSED at Google. On TikTok the whole campaign > ad group > ad hierarchy stays paused. On LinkedIn the whole campaign group, campaign, and creative hierarchy stays PAUSED (intendedStatus PAUSED on each). ChatGPT (OpenAI) follows the Meta rule: the pause is held on the campaign this call creates.
|
|
41043
41043
|
*/
|
|
41044
41044
|
status?: 'ACTIVE' | 'PAUSED';
|
|
41045
41045
|
/**
|
|
41046
|
-
* Meta and
|
|
41046
|
+
* Meta, Google, and ChatGPT (OpenAI). Overrides `status` for the campaign level alone, so you can create a live campaign whose ad set and ad stay paused, or the reverse. Omitted, it follows `status`.
|
|
41047
41047
|
*/
|
|
41048
41048
|
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
41049
41049
|
/**
|