@zernio/node 0.2.720 → 0.2.721

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
@@ -980,7 +980,7 @@ declare class Zernio {
980
980
  * adlibrary API
981
981
  */
982
982
  adlibrary: {
983
- searchAdLibrary: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAdLibraryResponse, unknown, ThrowOnError>;
983
+ searchAdLibrary: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAdLibraryResponse, unknown, ThrowOnError>;
984
984
  };
985
985
  /**
986
986
  * adaudiences API
@@ -35563,11 +35563,11 @@ type SearchAdTargetingError = (unknown | {
35563
35563
  error?: string;
35564
35564
  });
35565
35565
  type SearchAdLibraryData = {
35566
- query: {
35566
+ query?: {
35567
35567
  /**
35568
- * Zernio SocialAccount id (facebook / instagram / metaads for Meta, linkedin / linkedinads for LinkedIn). Its token is the one that searches.
35568
+ * Zernio SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account just selects the platform.
35569
35569
  */
35570
- accountId: string;
35570
+ accountId?: string;
35571
35571
  /**
35572
35572
  * Meta only.
35573
35573
  */
@@ -35604,6 +35604,10 @@ type SearchAdLibraryData = {
35604
35604
  * Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
35605
35605
  */
35606
35606
  pageIds?: string;
35607
+ /**
35608
+ * Which archive to search. `meta` needs no accountId. Required unless accountId is given.
35609
+ */
35610
+ platform?: 'meta' | 'linkedin';
35607
35611
  /**
35608
35612
  * Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
35609
35613
  */
package/dist/index.d.ts CHANGED
@@ -980,7 +980,7 @@ declare class Zernio {
980
980
  * adlibrary API
981
981
  */
982
982
  adlibrary: {
983
- searchAdLibrary: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAdLibraryResponse, unknown, ThrowOnError>;
983
+ searchAdLibrary: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchAdLibraryResponse, unknown, ThrowOnError>;
984
984
  };
985
985
  /**
986
986
  * adaudiences API
@@ -35563,11 +35563,11 @@ type SearchAdTargetingError = (unknown | {
35563
35563
  error?: string;
35564
35564
  });
35565
35565
  type SearchAdLibraryData = {
35566
- query: {
35566
+ query?: {
35567
35567
  /**
35568
- * Zernio SocialAccount id (facebook / instagram / metaads for Meta, linkedin / linkedinads for LinkedIn). Its token is the one that searches.
35568
+ * Zernio SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account just selects the platform.
35569
35569
  */
35570
- accountId: string;
35570
+ accountId?: string;
35571
35571
  /**
35572
35572
  * Meta only.
35573
35573
  */
@@ -35604,6 +35604,10 @@ type SearchAdLibraryData = {
35604
35604
  * Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
35605
35605
  */
35606
35606
  pageIds?: string;
35607
+ /**
35608
+ * Which archive to search. `meta` needs no accountId. Required unless accountId is given.
35609
+ */
35610
+ platform?: 'meta' | 'linkedin';
35607
35611
  /**
35608
35612
  * Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
35609
35613
  */
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.720",
39
+ version: "0.2.721",
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.720",
8
+ version: "0.2.721",
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.720",
3
+ "version": "0.2.721",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9563,19 +9563,18 @@ export const searchAdTargeting = <ThrowOnError extends boolean = false>(options:
9563
9563
 
9564
9564
  /**
9565
9565
  * Search the public Ad Library
9566
- * Competitor and market research over the platform's public ad archive, searched with the
9567
- * customer's own connected token (no extra scope): Meta's Ad Library (`GET /ads_archive`) for
9568
- * a `facebook` / `instagram` / `metaads` account, LinkedIn's Ad Library (`GET /rest/adLibrary`)
9569
- * for a `linkedin` / `linkedinads` account. Rows are returned in the platform's raw shape under
9570
- * `data`; `paging.after` is an opaque cursor on both (`null` when exhausted).
9566
+ * Competitor and market research over the public ad archives. Meta's Ad Library
9567
+ * (`GET /ads_archive`) is searched with Zernio's own developer access, so `platform=meta` needs
9568
+ * no connected account at all. LinkedIn's Ad Library (`GET /rest/adLibrary`) runs on a connected
9569
+ * `linkedin` / `linkedinads` account, passed as `accountId`. Passing a Meta account as `accountId`
9570
+ * also selects Meta. Rows are returned in the platform's raw shape under `data`; `paging.after`
9571
+ * is an opaque cursor on both (`null` when exhausted).
9571
9572
  *
9572
9573
  * **Meta coverage.** Political and social-issue ads are searchable worldwide. Every other ad is
9573
9574
  * in the archive only if it was delivered to the EU or UK within the last year, so a US-only
9574
9575
  * commercial advertiser is invisible. Spend, impressions and demographics are political-only
9575
- * fields and are left out of the default projection; request them via `fields`. Meta serves the
9576
- * archive only to people who confirmed their identity and location at facebook.com/ID: until the
9577
- * Facebook user behind the connection has done so, the call fails with
9578
- * `meta_identity_confirmation_required` (403).
9576
+ * fields and are left out of the default projection; request them via `fields`. All customers
9577
+ * share Zernio's Meta quota, so a `429` means back off for a minute.
9579
9578
  *
9580
9579
  * **LinkedIn coverage.** Ads served after June 1 2023, worldwide, kept for a year after their
9581
9580
  * last impression. EU-delivered ads carry impression ranges and the disclosed targeting facets.
@@ -9586,7 +9585,7 @@ export const searchAdTargeting = <ThrowOnError extends boolean = false>(options:
9586
9585
  * `advertiser` is LinkedIn-only. Passing a param the account's platform does not support is a 400
9587
9586
  * naming the param.
9588
9587
  */
9589
- export const searchAdLibrary = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => {
9588
+ export const searchAdLibrary = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<SearchAdLibraryData, ThrowOnError>) => {
9590
9589
  return (options?.client ?? client).get<SearchAdLibraryResponse, SearchAdLibraryError, ThrowOnError>({
9591
9590
  ...options,
9592
9591
  url: '/v1/ads/library'
@@ -36220,11 +36220,11 @@ export type SearchAdTargetingError = (unknown | {
36220
36220
  });
36221
36221
 
36222
36222
  export type SearchAdLibraryData = {
36223
- query: {
36223
+ query?: {
36224
36224
  /**
36225
- * Zernio SocialAccount id (facebook / instagram / metaads for Meta, linkedin / linkedinads for LinkedIn). Its token is the one that searches.
36225
+ * Zernio SocialAccount id. Required for LinkedIn (linkedin / linkedinads: its token searches). Optional for Meta, where any facebook / instagram / metaads account just selects the platform.
36226
36226
  */
36227
- accountId: string;
36227
+ accountId?: string;
36228
36228
  /**
36229
36229
  * Meta only.
36230
36230
  */
@@ -36261,6 +36261,10 @@ export type SearchAdLibraryData = {
36261
36261
  * Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
36262
36262
  */
36263
36263
  pageIds?: string;
36264
+ /**
36265
+ * Which archive to search. `meta` needs no accountId. Required unless accountId is given.
36266
+ */
36267
+ platform?: 'meta' | 'linkedin';
36264
36268
  /**
36265
36269
  * Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
36266
36270
  */