@zinn-digital/sdk 0.1.1649 → 0.1.1652
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 +35 -7
- package/package.json +1 -1
|
@@ -16960,7 +16960,7 @@ export interface paths {
|
|
|
16960
16960
|
query?: never;
|
|
16961
16961
|
header?: never;
|
|
16962
16962
|
path: {
|
|
16963
|
-
action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again";
|
|
16963
|
+
action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again" | "withdraw";
|
|
16964
16964
|
change_id: string;
|
|
16965
16965
|
};
|
|
16966
16966
|
cookie?: never;
|
|
@@ -16968,8 +16968,8 @@ export interface paths {
|
|
|
16968
16968
|
get?: never;
|
|
16969
16969
|
put?: never;
|
|
16970
16970
|
/**
|
|
16971
|
-
* Approve, reject, undo, or allow a rejected change again.
|
|
16972
|
-
* @description Gated on `ads.manage`; audit action `ads.change_<action>`. `approve` sends exactly the proposed request to Google in the background (202); a kill switch, the spend ceiling or the organisation's standing can still refuse it (`refused`). When the send meets Google's daily operation allowance the change stays `approved` with `summary.deferred_to` (when it is sent — automatically, by the same workflow), never refused. za-326 r3: an approval does not override a network's learning phase — an automatic change approved while the network says its unit is learning stays `approved` with `summary.learning` (`rule`, `network`) and `summary.deferred_to` (when learning is read again), and is sent once learning ends. `undo` sends the change's inverse (202) — allowed with the kill switch on; an Undo that meets the same allowance leaves the change `applied` with `summary.undo_deferred_to` and is sent after the reset by the same Undo workflow (never recorded as failed), even when that is past the Undo window. A rejection binds the item on Google, Microsoft Ads and X alike. `reject` answers 200. A rejected negative keyword or keyword (same account, text, match type and level) is never proposed or sent again by any producer — the gate refuses it `rejectedBefore`, whether or not it still collides — until `allow_again` (200, a rejected change only, else `notRejected`; leaves `summary.allowed_again` `{by, at}`); `undo_allow_again` (200, else `notAllowedAgain`) puts the rejection back.
|
|
16971
|
+
* Approve, reject, undo, withdraw, or allow a rejected change again.
|
|
16972
|
+
* @description Gated on `ads.manage`; audit action `ads.change_<action>`. `approve` sends exactly the proposed request to Google in the background (202); a kill switch, the spend ceiling or the organisation's standing can still refuse it (`refused`). When the send meets Google's daily operation allowance the change stays `approved` with `summary.deferred_to` (when it is sent — automatically, by the same workflow), never refused. za-326 r3: an approval does not override a network's learning phase — an automatic change approved while the network says its unit is learning stays `approved` with `summary.learning` (`rule`, `network`) and `summary.deferred_to` (when learning is read again), and is sent once learning ends. ZA326-FU: the wait stops — the change is `refused` with `error` `learningUnread` after 4 re-checks in a row that could not read the learning state, or `learningNoEnd` 14 days after the wait began — and `withdraw` (200) takes the person's approval back while it waits (`rejected`, `summary.withdrawn` `{by, at}`, audit action `ads.change_withdraw`; else `notWaitingForLearning`). `undo` sends the change's inverse (202) — allowed with the kill switch on; an Undo that meets the same allowance leaves the change `applied` with `summary.undo_deferred_to` and is sent after the reset by the same Undo workflow (never recorded as failed), even when that is past the Undo window. A rejection binds the item on Google, Microsoft Ads and X alike. `reject` answers 200. A rejected negative keyword or keyword (same account, text, match type and level) is never proposed or sent again by any producer — the gate refuses it `rejectedBefore`, whether or not it still collides — until `allow_again` (200, a rejected change only, else `notRejected`; leaves `summary.allowed_again` `{by, at}`); `undo_allow_again` (200, else `notAllowedAgain`) puts the rejection back.
|
|
16973
16973
|
*/
|
|
16974
16974
|
post: operations["decideAdsChange"];
|
|
16975
16975
|
delete?: never;
|
|
@@ -66456,6 +66456,10 @@ export interface components {
|
|
|
66456
66456
|
gate_cap_micros?: number;
|
|
66457
66457
|
have: number;
|
|
66458
66458
|
have_7d: number;
|
|
66459
|
+
/** @description za-329: the checks holding the step up (empty when none). */
|
|
66460
|
+
health?: components["schemas"]["AdsSmartBidHealthItem"][];
|
|
66461
|
+
/** @description za-329: ready to step up, but held until the conversion-health checks pass (`health`). */
|
|
66462
|
+
health_short?: boolean;
|
|
66459
66463
|
/** @description Conversions the next step needs in window_days (vendor minimum x 1.5 */
|
|
66460
66464
|
need: number;
|
|
66461
66465
|
/** @description Demand Gen: conversions also needed in the last 7 days (0: none). */
|
|
@@ -67044,7 +67048,7 @@ export interface components {
|
|
|
67044
67048
|
/** @enum {string|null} */
|
|
67045
67049
|
source: "auto" | "person" | "launch" | null;
|
|
67046
67050
|
};
|
|
67047
|
-
/** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the network says its ad set is learning carries `learning` (`rule`: an `AdsAuditRun` `learning_held` code, `network`: the network's name). A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
|
|
67051
|
+
/** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the network says its ad set is learning carries `learning` (`rule`: an `AdsAuditRun` `learning_held` code, `network`: the network's name; ZA326-FU: `bid_strategy` is the 14-day za-183 freeze, which in an `approve` class queues the change and a person's approval sends it). While it waits it also carries `learning_unread` (re-checks in a row that could not read the learning state) and `learning_since`; all three go when the wait ends (sent, refused, failed, withdrawn) or when the change is queued again and nothing holds it. A withdrawn change carries `withdrawn` (`by`, `at`). A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
|
|
67048
67052
|
AdsChange: {
|
|
67049
67053
|
action_class: string;
|
|
67050
67054
|
/** Format: date-time */
|
|
@@ -68294,7 +68298,7 @@ export interface components {
|
|
|
68294
68298
|
/** Format: int64 */
|
|
68295
68299
|
cost_micros?: number;
|
|
68296
68300
|
};
|
|
68297
|
-
/** @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`). */
|
|
68301
|
+
/** @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`). za-329: a `bidForConversions` item is never written from the plan (`via: ladder`): the bid ladder proposes the switch once its data gate and its conversion-health gate pass, and `health` lists the checks holding it. */
|
|
68298
68302
|
AdsImportedPlanItem: {
|
|
68299
68303
|
budget?: string;
|
|
68300
68304
|
campaign?: string;
|
|
@@ -68313,12 +68317,19 @@ export interface components {
|
|
|
68313
68317
|
country?: string;
|
|
68314
68318
|
expected_conversions?: number;
|
|
68315
68319
|
from?: string;
|
|
68320
|
+
/** @description za-329: the conversion-health checks holding the bid ladder's switch (empty: none, or not judged yet). */
|
|
68321
|
+
health?: components["schemas"]["AdsSmartBidHealthItem"][];
|
|
68316
68322
|
keyword?: string;
|
|
68317
68323
|
/** @enum {string} */
|
|
68318
68324
|
kind: "searchNegative" | "keywordPause" | "countryExclude" | "bidForConversions" | "sharedBudget" | "noConversionAction";
|
|
68319
68325
|
need?: number;
|
|
68320
68326
|
resource?: string;
|
|
68321
68327
|
term?: string;
|
|
68328
|
+
/**
|
|
68329
|
+
* @description za-329: the producer that proposes this step (the bid ladder, behind its gates).
|
|
68330
|
+
* @enum {string}
|
|
68331
|
+
*/
|
|
68332
|
+
via?: "ladder";
|
|
68322
68333
|
};
|
|
68323
68334
|
/** @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. */
|
|
68324
68335
|
AdsInsightReading: {
|
|
@@ -71056,6 +71067,23 @@ export interface components {
|
|
|
71056
71067
|
wait_for_update_ms?: number;
|
|
71057
71068
|
};
|
|
71058
71069
|
AdsSiteTagUpdate: components["schemas"]["AdsSiteTagSettings"];
|
|
71070
|
+
/** @description za-329: one conversion-health check that holds a step up onto a conversion strategy. `failing`: the check found a problem (fix it); `unreadable`: it could not be read, which holds too (never a pass). */
|
|
71071
|
+
AdsSmartBidHealthItem: {
|
|
71072
|
+
/** @description free_primary / duplicate_primary / tracking_reason: the conversion actions' names. */
|
|
71073
|
+
actions: string[];
|
|
71074
|
+
/** @description duplicate_primary: the conversion category counted twice. */
|
|
71075
|
+
category: string;
|
|
71076
|
+
/** @enum {string} */
|
|
71077
|
+
code: "primary_7d" | "tracking" | "tracking_reason" | "dedupe" | "free_primary" | "duplicate_primary" | "enhanced" | "uploads";
|
|
71078
|
+
/** @description uploads: open upload or goal problems; tracking_reason: actions with a tracking fault. */
|
|
71079
|
+
count: number;
|
|
71080
|
+
/** @description dedupe: the network's name. */
|
|
71081
|
+
network: string;
|
|
71082
|
+
/** @enum {string} */
|
|
71083
|
+
state: "failing" | "unreadable";
|
|
71084
|
+
/** @description tracking: the tracking check's status (`gap`, `unreadable`). */
|
|
71085
|
+
status: string;
|
|
71086
|
+
};
|
|
71059
71087
|
AdsSocial: {
|
|
71060
71088
|
accounts: {
|
|
71061
71089
|
/** Format: uuid */
|
|
@@ -144316,14 +144344,14 @@ export interface operations {
|
|
|
144316
144344
|
query?: never;
|
|
144317
144345
|
header?: never;
|
|
144318
144346
|
path: {
|
|
144319
|
-
action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again";
|
|
144347
|
+
action: "approve" | "reject" | "undo" | "allow_again" | "undo_allow_again" | "withdraw";
|
|
144320
144348
|
change_id: string;
|
|
144321
144349
|
};
|
|
144322
144350
|
cookie?: never;
|
|
144323
144351
|
};
|
|
144324
144352
|
requestBody?: never;
|
|
144325
144353
|
responses: {
|
|
144326
|
-
/** @description Rejected. */
|
|
144354
|
+
/** @description Rejected, withdrawn, or allowed again. */
|
|
144327
144355
|
200: {
|
|
144328
144356
|
headers: {
|
|
144329
144357
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1652",
|
|
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>",
|