@zernio/node 0.2.1070 → 0.2.1072

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
@@ -11751,7 +11751,7 @@ type TargetingSpec = {
11751
11751
  */
11752
11752
  languages?: Array<(string)>;
11753
11753
  /**
11754
- * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. Rejected with 400 on Google (use Demand Gen audience userInterests there) and OpenAI.
11754
+ * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. On Google, applied as ad-group interest criteria (affinity and in-market categories) on Display and Search ad groups the request creates; rejected with 400 on Performance Max, on Demand Gen (use the Demand Gen audience `userInterests` there), when attaching to an existing ad group (`adSetId`), and on OpenAI. On Google, interests are create-only.
11755
11755
  */
11756
11756
  interests?: Array<{
11757
11757
  id: string;
@@ -39682,6 +39682,26 @@ type UpdateAdSetData = {
39682
39682
  *
39683
39683
  */
39684
39684
  bidStrategy?: (BidStrategy);
39685
+ /**
39686
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
39687
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
39688
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
39689
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
39690
+ * Only the flags you send are written; an unwritten flag reads back null in
39691
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
39692
+ * Applied with TikTok's adgroup/update; read it back with GET /v1/ads/ad-sets?adSetId=...&live=true.
39693
+ *
39694
+ */
39695
+ smartTargeting?: {
39696
+ /**
39697
+ * TikTok smart_audience_enabled.
39698
+ */
39699
+ audience?: boolean;
39700
+ /**
39701
+ * TikTok smart_interest_behavior_enabled.
39702
+ */
39703
+ interestsBehaviors?: boolean;
39704
+ };
39685
39705
  /**
39686
39706
  * Bid cap in WHOLE currency units (USD: 5 = $5.00; JPY: 100 = ¥100). Required when
39687
39707
  * bidStrategy is LOWEST_COST_WITH_BID_CAP or COST_CAP. Internally converted to Meta's
@@ -44254,6 +44274,26 @@ type BoostPostData = {
44254
44274
  * Meta only. Extra primary-text options Meta rotates on the boosted post (asset_feed_spec.bodies with DEGREES_OF_FREEDOM); the post keeps its own text as one of the options. Works for Facebook posts and Instagram media. Under a conversions or traffic goal Meta also wants a website URL on the options, taken from `linkUrl` (send it with a `callToAction`); engagement boosts need none.
44255
44275
  */
44256
44276
  bodies?: Array<(string)>;
44277
+ /**
44278
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
44279
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
44280
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
44281
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
44282
+ * Only the flags you send are written; an unwritten flag reads back null in
44283
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
44284
+ * Not available with smartPlus or when attaching to an existing ad set (adSetId).
44285
+ *
44286
+ */
44287
+ smartTargeting?: {
44288
+ /**
44289
+ * TikTok smart_audience_enabled.
44290
+ */
44291
+ audience?: boolean;
44292
+ /**
44293
+ * TikTok smart_interest_behavior_enabled.
44294
+ */
44295
+ interestsBehaviors?: boolean;
44296
+ };
44257
44297
  /**
44258
44298
  * Meta, or TikTok with `goal: video_views`. TikTok: ENGAGED_VIEW (6-second
44259
44299
  * Focused View, the default) or ENGAGED_VIEW_FIFTEEN (15-second views), both
@@ -44504,6 +44544,26 @@ type CreateStandaloneAdData = {
44504
44544
  *
44505
44545
  */
44506
44546
  goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'page_likes' | 'page_visits' | 'job_applicants';
44547
+ /**
44548
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
44549
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
44550
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
44551
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
44552
+ * Only the flags you send are written; an unwritten flag reads back null in
44553
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
44554
+ * Not available with smartPlus or when attaching to an existing ad set (adSetId).
44555
+ *
44556
+ */
44557
+ smartTargeting?: {
44558
+ /**
44559
+ * TikTok smart_audience_enabled.
44560
+ */
44561
+ audience?: boolean;
44562
+ /**
44563
+ * TikTok smart_interest_behavior_enabled.
44564
+ */
44565
+ interestsBehaviors?: boolean;
44566
+ };
44507
44567
  /**
44508
44568
  * Meta, or TikTok with goal video_views (ENGAGED_VIEW, the 6-second default, or ENGAGED_VIEW_FIFTEEN; both bill per view). Meta: Explicit ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`). Overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). Forwarded verbatim to Meta, which validates compatibility with the campaign objective and rejects incompatible combinations.
44509
44569
  */
package/dist/index.d.ts CHANGED
@@ -11751,7 +11751,7 @@ type TargetingSpec = {
11751
11751
  */
11752
11752
  languages?: Array<(string)>;
11753
11753
  /**
11754
- * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. Rejected with 400 on Google (use Demand Gen audience userInterests there) and OpenAI.
11754
+ * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. On Google, applied as ad-group interest criteria (affinity and in-market categories) on Display and Search ad groups the request creates; rejected with 400 on Performance Max, on Demand Gen (use the Demand Gen audience `userInterests` there), when attaching to an existing ad group (`adSetId`), and on OpenAI. On Google, interests are create-only.
11755
11755
  */
11756
11756
  interests?: Array<{
11757
11757
  id: string;
@@ -39682,6 +39682,26 @@ type UpdateAdSetData = {
39682
39682
  *
39683
39683
  */
39684
39684
  bidStrategy?: (BidStrategy);
39685
+ /**
39686
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
39687
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
39688
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
39689
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
39690
+ * Only the flags you send are written; an unwritten flag reads back null in
39691
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
39692
+ * Applied with TikTok's adgroup/update; read it back with GET /v1/ads/ad-sets?adSetId=...&live=true.
39693
+ *
39694
+ */
39695
+ smartTargeting?: {
39696
+ /**
39697
+ * TikTok smart_audience_enabled.
39698
+ */
39699
+ audience?: boolean;
39700
+ /**
39701
+ * TikTok smart_interest_behavior_enabled.
39702
+ */
39703
+ interestsBehaviors?: boolean;
39704
+ };
39685
39705
  /**
39686
39706
  * Bid cap in WHOLE currency units (USD: 5 = $5.00; JPY: 100 = ¥100). Required when
39687
39707
  * bidStrategy is LOWEST_COST_WITH_BID_CAP or COST_CAP. Internally converted to Meta's
@@ -44254,6 +44274,26 @@ type BoostPostData = {
44254
44274
  * Meta only. Extra primary-text options Meta rotates on the boosted post (asset_feed_spec.bodies with DEGREES_OF_FREEDOM); the post keeps its own text as one of the options. Works for Facebook posts and Instagram media. Under a conversions or traffic goal Meta also wants a website URL on the options, taken from `linkUrl` (send it with a `callToAction`); engagement boosts need none.
44255
44275
  */
44256
44276
  bodies?: Array<(string)>;
44277
+ /**
44278
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
44279
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
44280
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
44281
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
44282
+ * Only the flags you send are written; an unwritten flag reads back null in
44283
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
44284
+ * Not available with smartPlus or when attaching to an existing ad set (adSetId).
44285
+ *
44286
+ */
44287
+ smartTargeting?: {
44288
+ /**
44289
+ * TikTok smart_audience_enabled.
44290
+ */
44291
+ audience?: boolean;
44292
+ /**
44293
+ * TikTok smart_interest_behavior_enabled.
44294
+ */
44295
+ interestsBehaviors?: boolean;
44296
+ };
44257
44297
  /**
44258
44298
  * Meta, or TikTok with `goal: video_views`. TikTok: ENGAGED_VIEW (6-second
44259
44299
  * Focused View, the default) or ENGAGED_VIEW_FIFTEEN (15-second views), both
@@ -44504,6 +44544,26 @@ type CreateStandaloneAdData = {
44504
44544
  *
44505
44545
  */
44506
44546
  goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'page_likes' | 'page_visits' | 'job_applicants';
44547
+ /**
44548
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
44549
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
44550
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
44551
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
44552
+ * Only the flags you send are written; an unwritten flag reads back null in
44553
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
44554
+ * Not available with smartPlus or when attaching to an existing ad set (adSetId).
44555
+ *
44556
+ */
44557
+ smartTargeting?: {
44558
+ /**
44559
+ * TikTok smart_audience_enabled.
44560
+ */
44561
+ audience?: boolean;
44562
+ /**
44563
+ * TikTok smart_interest_behavior_enabled.
44564
+ */
44565
+ interestsBehaviors?: boolean;
44566
+ };
44507
44567
  /**
44508
44568
  * Meta, or TikTok with goal video_views (ENGAGED_VIEW, the 6-second default, or ENGAGED_VIEW_FIFTEEN; both bill per view). Meta: Explicit ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`). Overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). Forwarded verbatim to Meta, which validates compatibility with the campaign objective and rejects incompatible combinations.
44509
44569
  */
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.1070",
39
+ version: "0.2.1072",
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.1070",
8
+ version: "0.2.1072",
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.1070",
3
+ "version": "0.2.1072",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -10224,7 +10224,7 @@ export type TargetingSpec = {
10224
10224
  */
10225
10225
  languages?: Array<(string)>;
10226
10226
  /**
10227
- * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. Rejected with 400 on Google (use Demand Gen audience userInterests there) and OpenAI.
10227
+ * Interest entities from /v1/ads/targeting/search?dimension=interest. Each carries the platform's opaque id. On Google, applied as ad-group interest criteria (affinity and in-market categories) on Display and Search ad groups the request creates; rejected with 400 on Performance Max, on Demand Gen (use the Demand Gen audience `userInterests` there), when attaching to an existing ad group (`adSetId`), and on OpenAI. On Google, interests are create-only.
10228
10228
  */
10229
10229
  interests?: Array<{
10230
10230
  id: string;
@@ -40087,6 +40087,26 @@ export type UpdateAdSetData = {
40087
40087
  *
40088
40088
  */
40089
40089
  bidStrategy?: (BidStrategy);
40090
+ /**
40091
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
40092
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
40093
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
40094
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
40095
+ * Only the flags you send are written; an unwritten flag reads back null in
40096
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
40097
+ * Applied with TikTok's adgroup/update; read it back with GET /v1/ads/ad-sets?adSetId=...&live=true.
40098
+ *
40099
+ */
40100
+ smartTargeting?: {
40101
+ /**
40102
+ * TikTok smart_audience_enabled.
40103
+ */
40104
+ audience?: boolean;
40105
+ /**
40106
+ * TikTok smart_interest_behavior_enabled.
40107
+ */
40108
+ interestsBehaviors?: boolean;
40109
+ };
40090
40110
  /**
40091
40111
  * Bid cap in WHOLE currency units (USD: 5 = $5.00; JPY: 100 = ¥100). Required when
40092
40112
  * bidStrategy is LOWEST_COST_WITH_BID_CAP or COST_CAP. Internally converted to Meta's
@@ -44965,6 +44985,26 @@ export type BoostPostData = {
44965
44985
  * Meta only. Extra primary-text options Meta rotates on the boosted post (asset_feed_spec.bodies with DEGREES_OF_FREEDOM); the post keeps its own text as one of the options. Works for Facebook posts and Instagram media. Under a conversions or traffic goal Meta also wants a website URL on the options, taken from `linkUrl` (send it with a `callToAction`); engagement boosts need none.
44966
44986
  */
44967
44987
  bodies?: Array<(string)>;
44988
+ /**
44989
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
44990
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
44991
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
44992
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
44993
+ * Only the flags you send are written; an unwritten flag reads back null in
44994
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
44995
+ * Not available with smartPlus or when attaching to an existing ad set (adSetId).
44996
+ *
44997
+ */
44998
+ smartTargeting?: {
44999
+ /**
45000
+ * TikTok smart_audience_enabled.
45001
+ */
45002
+ audience?: boolean;
45003
+ /**
45004
+ * TikTok smart_interest_behavior_enabled.
45005
+ */
45006
+ interestsBehaviors?: boolean;
45007
+ };
44968
45008
  /**
44969
45009
  * Meta, or TikTok with `goal: video_views`. TikTok: ENGAGED_VIEW (6-second
44970
45010
  * Focused View, the default) or ENGAGED_VIEW_FIFTEEN (15-second views), both
@@ -45239,6 +45279,26 @@ export type CreateStandaloneAdData = {
45239
45279
  *
45240
45280
  */
45241
45281
  goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lead_generation' | 'lead_conversion' | 'conversions' | 'app_promotion' | 'catalog_sales' | 'page_likes' | 'page_visits' | 'job_applicants';
45282
+ /**
45283
+ * TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
45284
+ * TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
45285
+ * When on, TikTok may deliver beyond the selected audiences or interests. Available on
45286
+ * Video views, Traffic, Lead generation, App install, Web conversion and Community interaction.
45287
+ * Only the flags you send are written; an unwritten flag reads back null in
45288
+ * `nativeSettings`, so send `false` explicitly to be able to verify it is off.
45289
+ * Not available with smartPlus or when attaching to an existing ad set (adSetId).
45290
+ *
45291
+ */
45292
+ smartTargeting?: {
45293
+ /**
45294
+ * TikTok smart_audience_enabled.
45295
+ */
45296
+ audience?: boolean;
45297
+ /**
45298
+ * TikTok smart_interest_behavior_enabled.
45299
+ */
45300
+ interestsBehaviors?: boolean;
45301
+ };
45242
45302
  /**
45243
45303
  * Meta, or TikTok with goal video_views (ENGAGED_VIEW, the 6-second default, or ENGAGED_VIEW_FIFTEEN; both bill per view). Meta: Explicit ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`). Overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). Forwarded verbatim to Meta, which validates compatibility with the campaign objective and rejects incompatible combinations.
45244
45304
  */