@zinn-digital/sdk 0.1.1433 → 0.1.1434
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/generated/schema.d.ts +72 -1
- package/package.json +1 -1
|
@@ -18306,7 +18306,7 @@ export interface paths {
|
|
|
18306
18306
|
};
|
|
18307
18307
|
/**
|
|
18308
18308
|
* The connected Google Ads account's whole structure as last read (za-262).
|
|
18309
|
-
* @description Gated on `ads.view`. Read on Temporal when the account is connected, on Refresh and weekly by the daily audit — never Google in the request. `state` is `notRead` until the first read, `ok` with `import`, or `failed` with `error` (a failed read never shows old figures as current). `import` carries the account's campaigns (status, channel, daily budget in micros, shared budget, bid strategy and its target, Google's bidding-strategy status, ad groups, keywords by match type, ads, negatives, location targets), its conversion actions and totals. Read only: nothing is written to the account. A connection on another network is a `422` `refusal.adsconnect.platformNotSupported`. `history` (za-263) is the account's OWN history read back month by month to the retention edge (400 days) after the first read — `null` until it starts; its figures are the ad-group totals now stored.
|
|
18309
|
+
* @description Gated on `ads.view`. Read on Temporal when the account is connected, on Refresh and weekly by the daily audit — never Google in the request. `state` is `notRead` until the first read, `ok` with `import`, or `failed` with `error` (a failed read never shows old figures as current). `import` carries the account's campaigns (status, channel, daily budget in micros, shared budget, bid strategy and its target, Google's bidding-strategy status, ad groups, keywords by match type, ads, negatives, location targets), its conversion actions and totals. Read only: nothing is written to the account. A connection on another network is a `422` `refusal.adsconnect.platformNotSupported`. `history` (za-263) is the account's OWN history read back month by month to the retention edge (400 days) after the first read — `null` until it starts; its figures are the ad-group totals now stored. `plan` (za-265) is the optimisation plan built from that history once it is read (and at most weekly after) — `null` until then: what WORKS (kept and protected from automatic pauses), the measured waste and the structural steps, every write a PENDING change in the approvals queue (`change_id`), never applied by itself.
|
|
18310
18310
|
*/
|
|
18311
18311
|
get: operations["getAdsImportedAccount"];
|
|
18312
18312
|
put?: never;
|
|
@@ -64655,6 +64655,76 @@ export interface components {
|
|
|
64655
64655
|
/** Format: date */
|
|
64656
64656
|
window_start: string | null;
|
|
64657
64657
|
};
|
|
64658
|
+
/** @description za-265: the imported account's plan from its own history. `state` is `ok`, `notEnoughHistory` or `noConversions` (no waste is judged on a thin or conversion-less history — `decided_by` carries the counts and the bars that decided it) or `paused` (the org is not in good standing). Money in integer micros; conversions in thousandths. */
|
|
64659
|
+
AdsImportedPlan: {
|
|
64660
|
+
/** Format: date-time */
|
|
64661
|
+
built_at: string;
|
|
64662
|
+
decided_by?: {
|
|
64663
|
+
/** Format: int64 */
|
|
64664
|
+
account_cpa_micros?: number;
|
|
64665
|
+
/** Format: int64 */
|
|
64666
|
+
clicks?: number;
|
|
64667
|
+
/** Format: int64 */
|
|
64668
|
+
conversions_milli?: number;
|
|
64669
|
+
/** Format: int64 */
|
|
64670
|
+
cost_micros?: number;
|
|
64671
|
+
days_with_data?: number;
|
|
64672
|
+
min_clicks?: number;
|
|
64673
|
+
min_days?: number;
|
|
64674
|
+
};
|
|
64675
|
+
keep?: {
|
|
64676
|
+
campaigns?: ({
|
|
64677
|
+
campaign_id?: string;
|
|
64678
|
+
name?: string;
|
|
64679
|
+
} & components["schemas"]["AdsImportedPlanFigures"])[];
|
|
64680
|
+
countries?: ({
|
|
64681
|
+
country?: string;
|
|
64682
|
+
} & components["schemas"]["AdsImportedPlanFigures"])[];
|
|
64683
|
+
keywords?: ({
|
|
64684
|
+
campaign?: string;
|
|
64685
|
+
keyword?: string;
|
|
64686
|
+
resource?: string;
|
|
64687
|
+
} & components["schemas"]["AdsImportedPlanFigures"])[];
|
|
64688
|
+
};
|
|
64689
|
+
/** @enum {string} */
|
|
64690
|
+
state: "ok" | "notEnoughHistory" | "noConversions" | "paused";
|
|
64691
|
+
structural?: components["schemas"]["AdsImportedPlanItem"][];
|
|
64692
|
+
waste?: components["schemas"]["AdsImportedPlanItem"][];
|
|
64693
|
+
};
|
|
64694
|
+
AdsImportedPlanFigures: {
|
|
64695
|
+
/** Format: int64 */
|
|
64696
|
+
clicks?: number;
|
|
64697
|
+
/** Format: int64 */
|
|
64698
|
+
conversions_milli?: number;
|
|
64699
|
+
/** Format: int64 */
|
|
64700
|
+
cost_micros?: number;
|
|
64701
|
+
};
|
|
64702
|
+
/** @description One plan item. `kind`: `searchNegative` (an EXACT negative for `term` on `campaigns`), `keywordPause` (`keyword`, `resource`), `countryExclude` (`country`, ISO 3166-1 alpha-2, with `expected_conversions` at the account's own rate), `bidForConversions` (`campaign_id`, `campaign`, `from`, `conversions_30d`, `need` — the bid-ladder rung), `sharedBudget` (`budget`, `campaigns` — a person's step) or `noConversionAction`. A write carries the pending change it queued (`change_id`, `change_status`). */
|
|
64703
|
+
AdsImportedPlanItem: {
|
|
64704
|
+
budget?: string;
|
|
64705
|
+
campaign?: string;
|
|
64706
|
+
campaign_id?: string;
|
|
64707
|
+
campaigns?: string[];
|
|
64708
|
+
/** Format: uuid */
|
|
64709
|
+
change_id?: string;
|
|
64710
|
+
change_status?: string;
|
|
64711
|
+
/** Format: int64 */
|
|
64712
|
+
clicks?: number;
|
|
64713
|
+
conversions_30d?: number;
|
|
64714
|
+
/** Format: int64 */
|
|
64715
|
+
conversions_milli?: number;
|
|
64716
|
+
/** Format: int64 */
|
|
64717
|
+
cost_micros?: number;
|
|
64718
|
+
country?: string;
|
|
64719
|
+
expected_conversions?: number;
|
|
64720
|
+
from?: string;
|
|
64721
|
+
keyword?: string;
|
|
64722
|
+
/** @enum {string} */
|
|
64723
|
+
kind: "searchNegative" | "keywordPause" | "countryExclude" | "bidForConversions" | "sharedBudget" | "noConversionAction";
|
|
64724
|
+
need?: number;
|
|
64725
|
+
resource?: string;
|
|
64726
|
+
term?: string;
|
|
64727
|
+
};
|
|
64658
64728
|
/** @description One reading of an account, or null before its first audit. `figures` depends on `kind` (docs/1006 §30): money is integer minor units (`*_minor`) or micros (`*_micros`) of the account's currency, never a float; missed clicks and conversions are estimates. */
|
|
64659
64729
|
AdsInsightReading: {
|
|
64660
64730
|
/** Format: date */
|
|
@@ -141112,6 +141182,7 @@ export interface operations {
|
|
|
141112
141182
|
error: string | null;
|
|
141113
141183
|
history: components["schemas"]["AdsImportedHistory"] | null;
|
|
141114
141184
|
import: components["schemas"]["AdsImportedAccount"] | null;
|
|
141185
|
+
plan: components["schemas"]["AdsImportedPlan"] | null;
|
|
141115
141186
|
/** Format: date-time */
|
|
141116
141187
|
read_at: string | null;
|
|
141117
141188
|
/** @enum {string} */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1434",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|