@getlatedev/node 0.2.1227 → 0.2.1228

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
@@ -46927,7 +46927,7 @@ type ListAdAccountsData = {
46927
46927
  */
46928
46928
  adAccountId?: string;
46929
46929
  /**
46930
- * Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms.
46930
+ * Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms. On every platform, each item's `selected` flags selection membership without narrowing the list.
46931
46931
  */
46932
46932
  inScopeOnly?: boolean;
46933
46933
  /**
@@ -47069,6 +47069,10 @@ type ListAdAccountsResponse = ({
47069
47069
  * Meta and X only. Always present on every Meta and X account. Human-readable reason when selectable is false; null when selectable.
47070
47070
  */
47071
47071
  unusableReason?: (string) | null;
47072
+ /**
47073
+ * Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` will answer 403 `ad_account_not_selected`.
47074
+ */
47075
+ selected?: boolean;
47072
47076
  }>;
47073
47077
  /**
47074
47078
  * Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.
package/dist/index.d.ts CHANGED
@@ -46927,7 +46927,7 @@ type ListAdAccountsData = {
46927
46927
  */
46928
46928
  adAccountId?: string;
46929
46929
  /**
46930
- * Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms.
46930
+ * Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms. On every platform, each item's `selected` flags selection membership without narrowing the list.
46931
46931
  */
46932
46932
  inScopeOnly?: boolean;
46933
46933
  /**
@@ -47069,6 +47069,10 @@ type ListAdAccountsResponse = ({
47069
47069
  * Meta and X only. Always present on every Meta and X account. Human-readable reason when selectable is false; null when selectable.
47070
47070
  */
47071
47071
  unusableReason?: (string) | null;
47072
+ /**
47073
+ * Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` will answer 403 `ad_account_not_selected`.
47074
+ */
47075
+ selected?: boolean;
47072
47076
  }>;
47073
47077
  /**
47074
47078
  * Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.
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: "@getlatedev/node",
39
- version: "0.2.1227",
39
+ version: "0.2.1228",
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: "@getlatedev/node",
8
- version: "0.2.1227",
8
+ version: "0.2.1228",
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": "@getlatedev/node",
3
- "version": "0.2.1227",
3
+ "version": "0.2.1228",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12602,6 +12602,13 @@ export const createAdAccount = <ThrowOnError extends boolean = false>(options: O
12602
12602
  * For Reddit Ads (`redditads`): every Reddit ad account the connected Reddit user can reach,
12603
12603
  * with `businessId`, `approvalStatus` (Reddit's `admin_approval`), `timezone` and `type`.
12604
12604
  *
12605
+ * Every listed ad account carries `selected`: whether it is in the connection's ad-account
12606
+ * selection (the ad accounts picked at connect time or in the dashboard picker, the ones
12607
+ * Zernio syncs). On a connection without a selection every ad account is `selected: true`.
12608
+ * Writes through /v1/ads endpoints to an ad account with `selected: false` are being
12609
+ * restricted and will answer `403 ad_account_not_selected`; add it to the selection first
12610
+ * (dashboard picker, or `GET /v1/connect/{platform}/ads` with `adAccountIds`).
12611
+ *
12605
12612
  */
12606
12613
  export const listAdAccounts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListAdAccountsData, ThrowOnError>) => {
12607
12614
  return (options?.client ?? client).get<ListAdAccountsResponse, ListAdAccountsError, ThrowOnError>({
@@ -47720,7 +47720,7 @@ export type ListAdAccountsData = {
47720
47720
  */
47721
47721
  adAccountId?: string;
47722
47722
  /**
47723
- * Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms.
47723
+ * Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms. On every platform, each item's `selected` flags selection membership without narrowing the list.
47724
47724
  */
47725
47725
  inScopeOnly?: boolean;
47726
47726
  /**
@@ -47863,6 +47863,10 @@ export type ListAdAccountsResponse = ({
47863
47863
  * Meta and X only. Always present on every Meta and X account. Human-readable reason when selectable is false; null when selectable.
47864
47864
  */
47865
47865
  unusableReason?: (string) | null;
47866
+ /**
47867
+ * Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` will answer 403 `ad_account_not_selected`.
47868
+ */
47869
+ selected?: boolean;
47866
47870
  }>;
47867
47871
  /**
47868
47872
  * Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.