@zernio/node 0.2.1068 → 0.2.1070

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
@@ -39480,7 +39480,7 @@ type ListAdSetsResponse = ({
39480
39480
  */
39481
39481
  billingEvent?: (string) | null;
39482
39482
  /**
39483
- * TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
39483
+ * TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. schedule_start_time and schedule_end_time are UTC wall clocks (YYYY-MM-DD HH:MM:SS). location_ids holds TikTok's native location ids (GeoNames ids for countries); GET /v1/ads/targeting/search?dimension=geo returns them as `platformId` on country results. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
39484
39484
  */
39485
39485
  nativeSettings?: {
39486
39486
  [key: string]: unknown;
@@ -46165,6 +46165,10 @@ type SearchAdTargetingData = {
46165
46165
  * Account ID (a connected account on the target ad platform).
46166
46166
  */
46167
46167
  accountId: string;
46168
+ /**
46169
+ * TikTok only: the advertiser to search as, when the connection holds several. Each TikTok advertiser has its own targetable regions and catalogs. Defaults to the connection's first advertiser; an advertiser the connection does not hold returns 400.
46170
+ */
46171
+ adAccountId?: string;
46168
46172
  /**
46169
46173
  * ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.
46170
46174
  */
@@ -46213,6 +46217,10 @@ type SearchAdTargetingResponse = ({
46213
46217
  * 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.
46214
46218
  */
46215
46219
  countryCode?: string;
46220
+ /**
46221
+ * Only on `country` results: the platform's own id for the country, which `id` replaced with the ISO code (TikTok's native location_id, a GeoNames id such as 2635167 for GB; Meta's country key; Google's geo target constant id; X's targeting value; LinkedIn's geo URN). Use it to match a country against what the platform reports back, e.g. `location_ids` in a TikTok `nativeSettings` read.
46222
+ */
46223
+ platformId?: string;
46216
46224
  }>;
46217
46225
  });
46218
46226
  type SearchAdTargetingError = (unknown | ErrorResponse);
package/dist/index.d.ts CHANGED
@@ -39480,7 +39480,7 @@ type ListAdSetsResponse = ({
39480
39480
  */
39481
39481
  billingEvent?: (string) | null;
39482
39482
  /**
39483
- * TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
39483
+ * TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. schedule_start_time and schedule_end_time are UTC wall clocks (YYYY-MM-DD HH:MM:SS). location_ids holds TikTok's native location ids (GeoNames ids for countries); GET /v1/ads/targeting/search?dimension=geo returns them as `platformId` on country results. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
39484
39484
  */
39485
39485
  nativeSettings?: {
39486
39486
  [key: string]: unknown;
@@ -46165,6 +46165,10 @@ type SearchAdTargetingData = {
46165
46165
  * Account ID (a connected account on the target ad platform).
46166
46166
  */
46167
46167
  accountId: string;
46168
+ /**
46169
+ * TikTok only: the advertiser to search as, when the connection holds several. Each TikTok advertiser has its own targetable regions and catalogs. Defaults to the connection's first advertiser; an advertiser the connection does not hold returns 400.
46170
+ */
46171
+ adAccountId?: string;
46168
46172
  /**
46169
46173
  * ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.
46170
46174
  */
@@ -46213,6 +46217,10 @@ type SearchAdTargetingResponse = ({
46213
46217
  * 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.
46214
46218
  */
46215
46219
  countryCode?: string;
46220
+ /**
46221
+ * Only on `country` results: the platform's own id for the country, which `id` replaced with the ISO code (TikTok's native location_id, a GeoNames id such as 2635167 for GB; Meta's country key; Google's geo target constant id; X's targeting value; LinkedIn's geo URN). Use it to match a country against what the platform reports back, e.g. `location_ids` in a TikTok `nativeSettings` read.
46222
+ */
46223
+ platformId?: string;
46216
46224
  }>;
46217
46225
  });
46218
46226
  type SearchAdTargetingError = (unknown | ErrorResponse);
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.1068",
39
+ version: "0.2.1070",
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.1068",
8
+ version: "0.2.1070",
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.1068",
3
+ "version": "0.2.1070",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9781,7 +9781,8 @@ export const updateCampaignTargeting = <ThrowOnError extends boolean = false>(op
9781
9781
  * It also returns `nativeSettings`: TikTok's own adgroup/get record for the ad group, verbatim and
9782
9782
  * read in that same call (budget, budget_mode, schedule, placements, locations, ages, gender,
9783
9783
  * languages, interests, actions, audiences and exclusions), plus the advertiser's currency and
9784
- * timezone (TikTok's schedule times are in that timezone). `configReadAt` says when it was read; it
9784
+ * timezone. TikTok's `schedule_start_time` / `schedule_end_time` are UTC wall clocks
9785
+ * ("YYYY-MM-DD HH:MM:SS", no offset); Ads Manager displays them in `advertiser_timezone`. `configReadAt` says when it was read; it
9785
9786
  * is null on every row whose native settings were not read now, so never treat a null as a match.
9786
9787
  * These are read, not retained create payloads, and are not stored.
9787
9788
  */
@@ -12108,7 +12109,8 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
12108
12109
  * TikTok geo searches return every matching level in one list (`type` is
12109
12110
  * `country`, `region`, `city`, `district`, or `metro` for DMA areas), and
12110
12111
  * `geoType` is not applied. Results are scoped to the advertiser's targetable
12111
- * markets. A `country` result's id is its ISO 3166-1 alpha-2 code, for
12112
+ * markets (pass `adAccountId` when the connection holds several advertisers). A
12113
+ * two-letter `q` also matches a country by ISO code (`q=GB` returns the United Kingdom first). A `country` result's id is its ISO 3166-1 alpha-2 code, for
12112
12114
  * `targeting.countries`; every other id is TikTok's numeric location id,
12113
12115
  * usable in `regions`/`cities`/`metros` keys on `POST /v1/ads/create`.
12114
12116
  *
@@ -39871,7 +39871,7 @@ export type ListAdSetsResponse = ({
39871
39871
  */
39872
39872
  billingEvent?: (string) | null;
39873
39873
  /**
39874
- * TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
39874
+ * TikTok only, only with `live=true` and only on rows read live. TikTok's adgroup/get record verbatim (snake_case, TikTok's own names and enums): operation_status, optimization_goal, optimization_event, billing_event, bid_type, bid_price, budget, budget_mode, pacing, schedule_type, schedule_start_time, schedule_end_time, dayparting, placement_type, placements, location_ids, age_groups, gender, languages, interest_category_ids, interest_keyword_ids, actions, audience_ids, excluded_audience_ids, operating_systems, frequency, frequency_schedule, smart_audience_enabled, smart_interest_behavior_enabled. schedule_start_time and schedule_end_time are UTC wall clocks (YYYY-MM-DD HH:MM:SS). location_ids holds TikTok's native location ids (GeoNames ids for countries); GET /v1/ads/targeting/search?dimension=geo returns them as `platformId` on country results. Plus advertiser_currency and advertiser_timezone from TikTok's advertiser/info. A field TikTok does not return is absent.
39875
39875
  */
39876
39876
  nativeSettings?: {
39877
39877
  [key: string]: unknown;
@@ -46945,6 +46945,10 @@ export type SearchAdTargetingData = {
46945
46945
  * Account ID (a connected account on the target ad platform).
46946
46946
  */
46947
46947
  accountId: string;
46948
+ /**
46949
+ * TikTok only: the advertiser to search as, when the connection holds several. Each TikTok advertiser has its own targetable regions and catalogs. Defaults to the connection's first advertiser; an advertiser the connection does not hold returns 400.
46950
+ */
46951
+ adAccountId?: string;
46948
46952
  /**
46949
46953
  * ISO 3166-1 alpha-2 country code (e.g. NL) to scope a geo search.
46950
46954
  */
@@ -46994,6 +46998,10 @@ export type SearchAdTargetingResponse = ({
46994
46998
  * 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.
46995
46999
  */
46996
47000
  countryCode?: string;
47001
+ /**
47002
+ * Only on `country` results: the platform's own id for the country, which `id` replaced with the ISO code (TikTok's native location_id, a GeoNames id such as 2635167 for GB; Meta's country key; Google's geo target constant id; X's targeting value; LinkedIn's geo URN). Use it to match a country against what the platform reports back, e.g. `location_ids` in a TikTok `nativeSettings` read.
47003
+ */
47004
+ platformId?: string;
46997
47005
  }>;
46998
47006
  });
46999
47007