@zernio/node 0.2.989 → 0.2.991
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -1
- package/src/generated/types.gen.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1960,7 +1960,7 @@ type Ad = {
|
|
|
1960
1960
|
*/
|
|
1961
1961
|
status?: (AdStatus);
|
|
1962
1962
|
/**
|
|
1963
|
-
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
1963
|
+
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). On create it is read back from the platform, not copied from the request, so it can read ACTIVE for a `PAUSED` create where the platform holds the pause at the campaign (some Meta create flows). A TikTok ad created `PAUSED` is switched off at the ad, ad group and campaign and reads PAUSED. Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
1964
1964
|
*/
|
|
1965
1965
|
configuredStatus?: (string) | null;
|
|
1966
1966
|
/**
|
|
@@ -2984,11 +2984,11 @@ type AdPromotedObject = {
|
|
|
2984
2984
|
*/
|
|
2985
2985
|
customConversionId?: string;
|
|
2986
2986
|
/**
|
|
2987
|
-
* Optional catalog ID. If supplied with productSetId, the set must belong to this catalog. A catalog ID cannot replace productSetId.
|
|
2987
|
+
* Optional catalog ID. If supplied with productSetId, the set must belong to this catalog (checked by Zernio when the Meta login carries catalog_management, by Meta otherwise). A catalog ID cannot replace productSetId.
|
|
2988
2988
|
*/
|
|
2989
2989
|
productCatalogId?: string;
|
|
2990
2990
|
/**
|
|
2991
|
-
* Meta product SET ID from GET /v1/ads/catalogs/{catalogId}/product-sets.
|
|
2991
|
+
* Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio checks before creation that the set is visible to the token, and a set it cannot see returns a 400 naming promotedObject.productSetId (a catalog ID is caught the same way when the login carries catalog_management, and rejected by Meta otherwise). When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
|
|
2992
2992
|
*/
|
|
2993
2993
|
productSetId?: string;
|
|
2994
2994
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1960,7 +1960,7 @@ type Ad = {
|
|
|
1960
1960
|
*/
|
|
1961
1961
|
status?: (AdStatus);
|
|
1962
1962
|
/**
|
|
1963
|
-
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
1963
|
+
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). On create it is read back from the platform, not copied from the request, so it can read ACTIVE for a `PAUSED` create where the platform holds the pause at the campaign (some Meta create flows). A TikTok ad created `PAUSED` is switched off at the ad, ad group and campaign and reads PAUSED. Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
1964
1964
|
*/
|
|
1965
1965
|
configuredStatus?: (string) | null;
|
|
1966
1966
|
/**
|
|
@@ -2984,11 +2984,11 @@ type AdPromotedObject = {
|
|
|
2984
2984
|
*/
|
|
2985
2985
|
customConversionId?: string;
|
|
2986
2986
|
/**
|
|
2987
|
-
* Optional catalog ID. If supplied with productSetId, the set must belong to this catalog. A catalog ID cannot replace productSetId.
|
|
2987
|
+
* Optional catalog ID. If supplied with productSetId, the set must belong to this catalog (checked by Zernio when the Meta login carries catalog_management, by Meta otherwise). A catalog ID cannot replace productSetId.
|
|
2988
2988
|
*/
|
|
2989
2989
|
productCatalogId?: string;
|
|
2990
2990
|
/**
|
|
2991
|
-
* Meta product SET ID from GET /v1/ads/catalogs/{catalogId}/product-sets.
|
|
2991
|
+
* Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio checks before creation that the set is visible to the token, and a set it cannot see returns a 400 naming promotedObject.productSetId (a catalog ID is caught the same way when the login carries catalog_management, and rejected by Meta otherwise). When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
|
|
2992
2992
|
*/
|
|
2993
2993
|
productSetId?: string;
|
|
2994
2994
|
/**
|
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.991",
|
|
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.
|
|
8
|
+
version: "0.2.991",
|
|
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
|
@@ -10028,7 +10028,10 @@ export const deleteAd = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
10028
10028
|
* effective story/media IDs). `platform` is inferred from the ad, so it's
|
|
10029
10029
|
* not required in the body. Ads in terminal statuses (rejected, completed,
|
|
10030
10030
|
* cancelled) are skipped, and so is a request whose target already matches
|
|
10031
|
-
* the ad's own switch
|
|
10031
|
+
* the ad's own switch as read LIVE from the platform (a stored value is
|
|
10032
|
+
* never trusted alone, since the switch may have been changed in the
|
|
10033
|
+
* platform's own UI). A skip also returns that live read. The rolled-up
|
|
10034
|
+
* `status` never decides a skip.
|
|
10032
10035
|
*
|
|
10033
10036
|
*/
|
|
10034
10037
|
export const updateAdStatus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdStatusData, ThrowOnError>) => {
|
|
@@ -92,7 +92,7 @@ export type Ad = {
|
|
|
92
92
|
*/
|
|
93
93
|
status?: (AdStatus);
|
|
94
94
|
/**
|
|
95
|
-
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
95
|
+
* The ad's own on/off switch as configured on the platform, independent of its parents: an ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. Sources: Meta `configured_status`, TikTok ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED), ChatGPT (OpenAI) ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI). On create it is read back from the platform, not copied from the request, so it can read ACTIVE for a `PAUSED` create where the platform holds the pause at the campaign (some Meta create flows). A TikTok ad created `PAUSED` is switched off at the ad, ad group and campaign and reads PAUSED. Distinct from `status`, which is the ancestor-cascaded delivery status. Only present for Meta, TikTok and OpenAI ads created or synced after the field was added for that platform; null otherwise.
|
|
96
96
|
*/
|
|
97
97
|
configuredStatus?: (string) | null;
|
|
98
98
|
/**
|
|
@@ -1141,11 +1141,11 @@ export type AdPromotedObject = {
|
|
|
1141
1141
|
*/
|
|
1142
1142
|
customConversionId?: string;
|
|
1143
1143
|
/**
|
|
1144
|
-
* Optional catalog ID. If supplied with productSetId, the set must belong to this catalog. A catalog ID cannot replace productSetId.
|
|
1144
|
+
* Optional catalog ID. If supplied with productSetId, the set must belong to this catalog (checked by Zernio when the Meta login carries catalog_management, by Meta otherwise). A catalog ID cannot replace productSetId.
|
|
1145
1145
|
*/
|
|
1146
1146
|
productCatalogId?: string;
|
|
1147
1147
|
/**
|
|
1148
|
-
* Meta product SET ID from GET /v1/ads/catalogs/{catalogId}/product-sets.
|
|
1148
|
+
* Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio checks before creation that the set is visible to the token, and a set it cannot see returns a 400 naming promotedObject.productSetId (a catalog ID is caught the same way when the login carries catalog_management, and rejected by Meta otherwise). When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
|
|
1149
1149
|
*/
|
|
1150
1150
|
productSetId?: string;
|
|
1151
1151
|
/**
|