@zernio/node 0.2.1850 → 0.2.1852

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
@@ -70387,6 +70387,12 @@ type UpdateAdSetData = {
70387
70387
  *
70388
70388
  */
70389
70389
  endDate?: (string) | null;
70390
+ /**
70391
+ * Meta only. Meta-native targeting keys (snake_case, as GET /v1/ads/{adId} returns them) layered over the ad set's live targeting before `targeting` is applied. Each key replaces its live counterpart and `null` removes it.
70392
+ */
70393
+ rawTargeting?: {
70394
+ [key: string]: unknown;
70395
+ };
70390
70396
  /**
70391
70397
  * Targeting fields to change. Meta and Reddit (400 elsewhere).
70392
70398
  *
@@ -77048,6 +77054,8 @@ type CreateStandaloneAdData = {
77048
77054
  * - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`).
77049
77055
  *
77050
77056
  * On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign objective and rejects incompatible combinations.
77057
+ *
77058
+ * With `goal: engagement`, `POST_ENGAGEMENT` also sets the ad set's destination to `ON_POST` (Ads Manager's Engagement, On your ad, Post engagement), as POST /v1/ads/boost does.
77051
77059
  */
77052
77060
  optimizationGoal?: string;
77053
77061
  /**
package/dist/index.d.ts CHANGED
@@ -70387,6 +70387,12 @@ type UpdateAdSetData = {
70387
70387
  *
70388
70388
  */
70389
70389
  endDate?: (string) | null;
70390
+ /**
70391
+ * Meta only. Meta-native targeting keys (snake_case, as GET /v1/ads/{adId} returns them) layered over the ad set's live targeting before `targeting` is applied. Each key replaces its live counterpart and `null` removes it.
70392
+ */
70393
+ rawTargeting?: {
70394
+ [key: string]: unknown;
70395
+ };
70390
70396
  /**
70391
70397
  * Targeting fields to change. Meta and Reddit (400 elsewhere).
70392
70398
  *
@@ -77048,6 +77054,8 @@ type CreateStandaloneAdData = {
77048
77054
  * - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`).
77049
77055
  *
77050
77056
  * On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign objective and rejects incompatible combinations.
77057
+ *
77058
+ * With `goal: engagement`, `POST_ENGAGEMENT` also sets the ad set's destination to `ON_POST` (Ads Manager's Engagement, On your ad, Post engagement), as POST /v1/ads/boost does.
77051
77059
  */
77052
77060
  optimizationGoal?: string;
77053
77061
  /**
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.1850",
39
+ version: "0.2.1852",
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.1850",
8
+ version: "0.2.1852",
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.1850",
3
+ "version": "0.2.1852",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16791,6 +16791,14 @@ export const getAdSetDetails = <ThrowOnError extends boolean = false>(options: O
16791
16791
  *
16792
16792
  * Other platforms return 400 for either field before anything in the request is written (use PUT /v1/ads/{adId} with `targeting` where that platform supports it).
16793
16793
  *
16794
+ * `rawTargeting` (Meta only) takes Meta's own snake_case keys, as on create, for what `targeting` cannot express: one `flexible_spec` group ORing several kinds, `exclusions`, and similar.
16795
+ *
16796
+ * - Each raw key replaces the live key of the same name; `null` removes it. Keys you don't send are kept.
16797
+ * - A raw `geo_locations` that sends any location list replaces every live location list, as above.
16798
+ * - `targeting` and `placements` in the same request are applied on top and win on the same key.
16799
+ * - Raw `flexible_spec` with a structured detailed-targeting field (interests, behaviors, work fields, incomeTier), or raw `excluded_geo_locations` with `excludedLocations`, returns 400: send that targeting in one of them.
16800
+ * - Other networks, an empty object and the retired `video_feeds` Facebook position return 400.
16801
+ *
16794
16802
  * The live read and the `incomeTier` lookup run before any other field is written, so a 502 or 422 from them leaves the ad set unchanged.
16795
16803
  *
16796
16804
  * ### Reddit Ads: budget, name and bidding
@@ -71842,6 +71842,12 @@ export type UpdateAdSetData = {
71842
71842
  *
71843
71843
  */
71844
71844
  endDate?: (string) | null;
71845
+ /**
71846
+ * Meta only. Meta-native targeting keys (snake_case, as GET /v1/ads/{adId} returns them) layered over the ad set's live targeting before `targeting` is applied. Each key replaces its live counterpart and `null` removes it.
71847
+ */
71848
+ rawTargeting?: {
71849
+ [key: string]: unknown;
71850
+ };
71845
71851
  /**
71846
71852
  * Targeting fields to change. Meta and Reddit (400 elsewhere).
71847
71853
  *
@@ -78884,6 +78890,8 @@ export type CreateStandaloneAdData = {
78884
78890
  * - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`).
78885
78891
  *
78886
78892
  * On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign objective and rejects incompatible combinations.
78893
+ *
78894
+ * With `goal: engagement`, `POST_ENGAGEMENT` also sets the ad set's destination to `ON_POST` (Ads Manager's Engagement, On your ad, Post engagement), as POST /v1/ads/boost does.
78887
78895
  */
78888
78896
  optimizationGoal?: string;
78889
78897
  /**