@getlatedev/node 0.2.1686 → 0.2.1688
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -4737,7 +4737,7 @@ type AdRuleEvaluation = {
|
|
|
4737
4737
|
/**
|
|
4738
4738
|
* Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal`, `days_live`, `days_since_change`, `budget_level` and `channel_type`; an ad set rule all but `days_since_change`, plus `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
|
|
4739
4739
|
*
|
|
4740
|
-
* A keyword rule reads `name` (the keyword text), `campaign_name`, `adset_name`, `campaign_id`, `adset_id` and `
|
|
4740
|
+
* A keyword rule reads `name` (the keyword text), `campaign_name`, `adset_name`, `campaign_id`, `adset_id`, `match_type` and `blocked_by_negative`. A search term rule reads those (`name` is the term) plus `search_term_status`.
|
|
4741
4741
|
*
|
|
4742
4742
|
*/
|
|
4743
4743
|
type AdRuleFilters = Array<({
|
|
@@ -4806,8 +4806,8 @@ type AdRuleGroups = Array<{
|
|
|
4806
4806
|
* - They read a daily history Zernio fetches from Google. A day keeps its 50,000 rows that spent most.
|
|
4807
4807
|
* - Every daily window works, `today` included: today is refreshed at most once an hour.
|
|
4808
4808
|
* - A new rule's first runs load its days a few at a time, and fail until all are in.
|
|
4809
|
-
* - Paused keywords are not judged.
|
|
4810
|
-
* - Google lists only
|
|
4809
|
+
* - A keyword rule judges every serving keyword, one with no traffic at zero. Paused keywords are not judged.
|
|
4810
|
+
* - Google lists only search terms that showed at least once, so a search term rule takes `impressions` with `>` or `>=`, never `<` or `<=`.
|
|
4811
4811
|
*
|
|
4812
4812
|
* They take `spend`, `impressions`, `clicks`, `conversions`, `ctr`, `cpc`, `cpm`, `cpa` and `roas` over whole days, no `usual`, `of`, `top` or `bottom`, and `compareTo` only as `campaign`. A keyword rule can `notify` or `pause`; a search term rule only notifies.
|
|
4813
4813
|
*
|
|
@@ -36575,7 +36575,7 @@ type ConnectAdsData = {
|
|
|
36575
36575
|
/**
|
|
36576
36576
|
* Scope ad sync to multiple platform ad accounts (same platform support and id shapes as `adAccountId`). Repeat the param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate (`?adAccountIds=act_1,act_2`).
|
|
36577
36577
|
*
|
|
36578
|
-
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed.
|
|
36578
|
+
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed. Where ad accounts are already split into one account each, the call only adds accounts for new ids and never removes one (disconnect that account instead).
|
|
36579
36579
|
* - On Meta only the scoped ad accounts get webhook subscriptions, including when the call starts a fresh OAuth.
|
|
36580
36580
|
* - On Meta, ad accounts left out of the scope are unsubscribed from Zernio's ad-account webhooks (unless another connection still holds them) and are no longer stored, so syncs do not add them back. `GET /v1/ads/accounts` lists them (`selected: false`) only with `live=true`; passing them again reselects them.
|
|
36581
36581
|
* - On TikTok, advertisers left out of the scope are no longer synced or stored either, and are listed (`selected: false`) only with `live=true`.
|
package/dist/index.d.ts
CHANGED
|
@@ -4737,7 +4737,7 @@ type AdRuleEvaluation = {
|
|
|
4737
4737
|
/**
|
|
4738
4738
|
* Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal`, `days_live`, `days_since_change`, `budget_level` and `channel_type`; an ad set rule all but `days_since_change`, plus `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
|
|
4739
4739
|
*
|
|
4740
|
-
* A keyword rule reads `name` (the keyword text), `campaign_name`, `adset_name`, `campaign_id`, `adset_id` and `
|
|
4740
|
+
* A keyword rule reads `name` (the keyword text), `campaign_name`, `adset_name`, `campaign_id`, `adset_id`, `match_type` and `blocked_by_negative`. A search term rule reads those (`name` is the term) plus `search_term_status`.
|
|
4741
4741
|
*
|
|
4742
4742
|
*/
|
|
4743
4743
|
type AdRuleFilters = Array<({
|
|
@@ -4806,8 +4806,8 @@ type AdRuleGroups = Array<{
|
|
|
4806
4806
|
* - They read a daily history Zernio fetches from Google. A day keeps its 50,000 rows that spent most.
|
|
4807
4807
|
* - Every daily window works, `today` included: today is refreshed at most once an hour.
|
|
4808
4808
|
* - A new rule's first runs load its days a few at a time, and fail until all are in.
|
|
4809
|
-
* - Paused keywords are not judged.
|
|
4810
|
-
* - Google lists only
|
|
4809
|
+
* - A keyword rule judges every serving keyword, one with no traffic at zero. Paused keywords are not judged.
|
|
4810
|
+
* - Google lists only search terms that showed at least once, so a search term rule takes `impressions` with `>` or `>=`, never `<` or `<=`.
|
|
4811
4811
|
*
|
|
4812
4812
|
* They take `spend`, `impressions`, `clicks`, `conversions`, `ctr`, `cpc`, `cpm`, `cpa` and `roas` over whole days, no `usual`, `of`, `top` or `bottom`, and `compareTo` only as `campaign`. A keyword rule can `notify` or `pause`; a search term rule only notifies.
|
|
4813
4813
|
*
|
|
@@ -36575,7 +36575,7 @@ type ConnectAdsData = {
|
|
|
36575
36575
|
/**
|
|
36576
36576
|
* Scope ad sync to multiple platform ad accounts (same platform support and id shapes as `adAccountId`). Repeat the param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate (`?adAccountIds=act_1,act_2`).
|
|
36577
36577
|
*
|
|
36578
|
-
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed.
|
|
36578
|
+
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed. Where ad accounts are already split into one account each, the call only adds accounts for new ids and never removes one (disconnect that account instead).
|
|
36579
36579
|
* - On Meta only the scoped ad accounts get webhook subscriptions, including when the call starts a fresh OAuth.
|
|
36580
36580
|
* - On Meta, ad accounts left out of the scope are unsubscribed from Zernio's ad-account webhooks (unless another connection still holds them) and are no longer stored, so syncs do not add them back. `GET /v1/ads/accounts` lists them (`selected: false`) only with `live=true`; passing them again reselects them.
|
|
36581
36581
|
* - On TikTok, advertisers left out of the scope are no longer synced or stored either, and are listed (`selected: false`) only with `live=true`.
|
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.
|
|
39
|
+
version: "0.2.1688",
|
|
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.
|
|
8
|
+
version: "0.2.1688",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3086,6 +3086,8 @@ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(option
|
|
|
3086
3086
|
* Starts the Google Ads OAuth flow and creates a standalone ads SocialAccount (googleads) with no parent.
|
|
3087
3087
|
*
|
|
3088
3088
|
* - If the account already exists and has at least one discovered Google Ads customer account, returns alreadyConnected: true.
|
|
3089
|
+
* - When the profile's accounts are already one per ad account of a single Google login, it also returns alreadyConnected: true and adds an account per new `adAccountIds` entry. Existing accounts are never de-scoped, and `accountId` is a reused account.
|
|
3090
|
+
* - Accounts of several Google logins return an authUrl to sign in again.
|
|
3089
3091
|
* - When the existing connection has zero customer accounts (metadata.googleAdsCustomerIds is empty) or is flagged needsReconnection, it returns an authUrl instead. Completing it reconnects the same account (same accountId) and re-runs ad account discovery.
|
|
3090
3092
|
*
|
|
3091
3093
|
* Discovery includes the client accounts under every manager (MCC) the Google user can reach. It also includes Google Ads test accounts, which Google always reports with status CLOSED.
|
|
@@ -2315,7 +2315,7 @@ export type AdRuleEvaluation = {
|
|
|
2315
2315
|
/**
|
|
2316
2316
|
* Narrows the objects the rule checks. Every filter must hold. A campaign rule reads `name`, `campaign_id`, `goal`, `days_live`, `days_since_change`, `budget_level` and `channel_type`; an ad set rule all but `days_since_change`, plus `campaign_name` and `adset_id`; an ad rule also `adset_name` and `ad_id`.
|
|
2317
2317
|
*
|
|
2318
|
-
* A keyword rule reads `name` (the keyword text), `campaign_name`, `adset_name`, `campaign_id`, `adset_id` and `
|
|
2318
|
+
* A keyword rule reads `name` (the keyword text), `campaign_name`, `adset_name`, `campaign_id`, `adset_id`, `match_type` and `blocked_by_negative`. A search term rule reads those (`name` is the term) plus `search_term_status`.
|
|
2319
2319
|
*
|
|
2320
2320
|
*/
|
|
2321
2321
|
export type AdRuleFilters = Array<({
|
|
@@ -2386,8 +2386,8 @@ export type AdRuleGroups = Array<{
|
|
|
2386
2386
|
* - They read a daily history Zernio fetches from Google. A day keeps its 50,000 rows that spent most.
|
|
2387
2387
|
* - Every daily window works, `today` included: today is refreshed at most once an hour.
|
|
2388
2388
|
* - A new rule's first runs load its days a few at a time, and fail until all are in.
|
|
2389
|
-
* - Paused keywords are not judged.
|
|
2390
|
-
* - Google lists only
|
|
2389
|
+
* - A keyword rule judges every serving keyword, one with no traffic at zero. Paused keywords are not judged.
|
|
2390
|
+
* - Google lists only search terms that showed at least once, so a search term rule takes `impressions` with `>` or `>=`, never `<` or `<=`.
|
|
2391
2391
|
*
|
|
2392
2392
|
* They take `spend`, `impressions`, `clicks`, `conversions`, `ctr`, `cpc`, `cpm`, `cpa` and `roas` over whole days, no `usual`, `of`, `top` or `bottom`, and `compareTo` only as `campaign`. A keyword rule can `notify` or `pause`; a search term rule only notifies.
|
|
2393
2393
|
*
|
|
@@ -35714,7 +35714,7 @@ export type ConnectAdsData = {
|
|
|
35714
35714
|
/**
|
|
35715
35715
|
* Scope ad sync to multiple platform ad accounts (same platform support and id shapes as `adAccountId`). Repeat the param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate (`?adAccountIds=act_1,act_2`).
|
|
35716
35716
|
*
|
|
35717
|
-
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed.
|
|
35717
|
+
* - Persisted server-side; the latest call wins. De-scoped ad accounts have their synced ads, campaigns, ad sets and keywords removed. Where ad accounts are already split into one account each, the call only adds accounts for new ids and never removes one (disconnect that account instead).
|
|
35718
35718
|
* - On Meta only the scoped ad accounts get webhook subscriptions, including when the call starts a fresh OAuth.
|
|
35719
35719
|
* - On Meta, ad accounts left out of the scope are unsubscribed from Zernio's ad-account webhooks (unless another connection still holds them) and are no longer stored, so syncs do not add them back. `GET /v1/ads/accounts` lists them (`selected: false`) only with `live=true`; passing them again reselects them.
|
|
35720
35720
|
* - On TikTok, advertisers left out of the scope are no longer synced or stored either, and are listed (`selected: false`) only with `live=true`.
|