@zernio/node 0.2.842 → 0.2.844

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
@@ -40900,6 +40900,10 @@ type SearchAdTargetingResponse = ({
40900
40900
  * Optional estimated reachable users for this option, when the platform returns it.
40901
40901
  */
40902
40902
  audienceSize?: (number) | null;
40903
+ /**
40904
+ * ISO-3166 alpha-2 of the country a sub-country geo result (city, region, zip, metro) belongs to, when the platform reports it (Meta does). Useful to know whether a location falls under the EU DSA disclosure rules before creating the ad.
40905
+ */
40906
+ countryCode?: string;
40903
40907
  }>;
40904
40908
  });
40905
40909
  type SearchAdTargetingError = (unknown | {
package/dist/index.d.ts CHANGED
@@ -40900,6 +40900,10 @@ type SearchAdTargetingResponse = ({
40900
40900
  * Optional estimated reachable users for this option, when the platform returns it.
40901
40901
  */
40902
40902
  audienceSize?: (number) | null;
40903
+ /**
40904
+ * ISO-3166 alpha-2 of the country a sub-country geo result (city, region, zip, metro) belongs to, when the platform reports it (Meta does). Useful to know whether a location falls under the EU DSA disclosure rules before creating the ad.
40905
+ */
40906
+ countryCode?: string;
40903
40907
  }>;
40904
40908
  });
40905
40909
  type SearchAdTargetingError = (unknown | {
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.842",
39
+ version: "0.2.844",
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.842",
8
+ version: "0.2.844",
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.842",
3
+ "version": "0.2.844",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -8983,6 +8983,10 @@ export const duplicateAdSet = <ThrowOnError extends boolean = false>(options: Op
8983
8983
  * automatically (`syncAfter: false` to skip). Creative settings returned by Meta,
8984
8984
  * including explicit promotion metadata and creativeFeatures, are preserved when the
8985
8985
  * native copy requires a creative rebuild. Metadata Meta does not return cannot be recovered.
8986
+ * When Meta refuses the native copy with its capability error (code 3), which happens for
8987
+ * some creatives built by other tools, the ad is rebuilt instead: a new creative from the
8988
+ * source's returned spec and a new ad in the target ad set, carrying the source name,
8989
+ * status option, rename options and tracking specs.
8986
8990
  */
8987
8991
  export const duplicateAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DuplicateAdData, ThrowOnError>) => {
8988
8992
  return (options?.client ?? client).post<DuplicateAdResponse, DuplicateAdError, ThrowOnError>({
@@ -41594,6 +41594,10 @@ export type SearchAdTargetingResponse = ({
41594
41594
  * Optional estimated reachable users for this option, when the platform returns it.
41595
41595
  */
41596
41596
  audienceSize?: (number) | null;
41597
+ /**
41598
+ * ISO-3166 alpha-2 of the country a sub-country geo result (city, region, zip, metro) belongs to, when the platform reports it (Meta does). Useful to know whether a location falls under the EU DSA disclosure rules before creating the ad.
41599
+ */
41600
+ countryCode?: string;
41597
41601
  }>;
41598
41602
  });
41599
41603