@zinn-digital/sdk 0.1.1540 → 0.1.1543
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 +130 -3
- package/package.json +1 -1
|
@@ -18316,6 +18316,28 @@ export interface paths {
|
|
|
18316
18316
|
patch: operations["updateAdsCopyWinners"];
|
|
18317
18317
|
trace?: never;
|
|
18318
18318
|
};
|
|
18319
|
+
"/v1/ads/connections/{connection_id}/country-campaigns": {
|
|
18320
|
+
parameters: {
|
|
18321
|
+
query?: never;
|
|
18322
|
+
header?: never;
|
|
18323
|
+
path: {
|
|
18324
|
+
connection_id: string;
|
|
18325
|
+
};
|
|
18326
|
+
cookie?: never;
|
|
18327
|
+
};
|
|
18328
|
+
/**
|
|
18329
|
+
* A customer's country campaigns, and the converting countries without one (za-75).
|
|
18330
|
+
* @description Gated on `ads.view`. Read from the reading the connection's daily job keeps (docs/1006 COUNTRYCAMP), never a network call in the request; READ ONLY — the build (za-105), the split (za-179) and the budget raise (za-144) keep their own gates. `campaigns`: every enabled campaign whose only location is one country, with its 7-day budget, share of impressions lost to budget, spend, conversions and cost per conversion, who built it (`autopilot` — an applied new-country or country-split change, `change_id` — or `you`), and what happened about its budget (`budget_flag`, za-142: `raised`, `suggested`, `ceiling`, `recent`, `flagged`); `held_by_budget` from 50% lost to budget. `countries`: every country that converted in the last 30 days inside campaigns that are not its own, against the customer's trigger (`trigger`, set with `PATCH /v1/ads/connections/{id}`): `standing` is `proposed` (a change waits for approval), `ready` (meets the trigger; the next audit proposes it), `watching` (not yet), `monthly_limit`, `excluded` (the account excludes the country) or `off` (new-country campaigns or the Campaigns mode are off). `state` is `held`, `ready`, `ok` or `none` (no reading yet, or nothing to watch). Money in micros of the account currency. The house account answers `state: none`.
|
|
18331
|
+
*/
|
|
18332
|
+
get: operations["getAdsCountryCampaigns"];
|
|
18333
|
+
put?: never;
|
|
18334
|
+
post?: never;
|
|
18335
|
+
delete?: never;
|
|
18336
|
+
options?: never;
|
|
18337
|
+
head?: never;
|
|
18338
|
+
patch?: never;
|
|
18339
|
+
trace?: never;
|
|
18340
|
+
};
|
|
18319
18341
|
"/v1/ads/connections/{connection_id}/crm-sources": {
|
|
18320
18342
|
parameters: {
|
|
18321
18343
|
query?: never;
|
|
@@ -18880,7 +18902,7 @@ export interface paths {
|
|
|
18880
18902
|
};
|
|
18881
18903
|
/**
|
|
18882
18904
|
* Matching landing pages — the connection's pages and candidate ad groups (za-N6).
|
|
18883
|
-
* @description Gated on `ads.view`. Every open page of the connection (a `candidate` ad group found by the scan, a page being written, ready to preview, publishing, live or being unpublished) and the 20 most recent closed ones. Read from our own rows — never a network call (docs/1006 §94).
|
|
18905
|
+
* @description Gated on `ads.view`. Every open page of the connection (a `candidate` ad group found by the scan, a page being written, ready to preview, publishing, live or being unpublished) and the 20 most recent closed ones. Read from our own rows — never a network call (docs/1006 §94). `alternatives_only=true` keeps only competitor alternative pages (za-109, a non-empty `rival`), as the MCP `ads_matching_pages` tool does.
|
|
18884
18906
|
*/
|
|
18885
18907
|
get: operations["listAdsMatchingPages"];
|
|
18886
18908
|
put?: never;
|
|
@@ -65080,7 +65102,7 @@ export interface components {
|
|
|
65080
65102
|
* @description za-72 `compare_page`: a competitor ad moved onto the customer's own comparison page for its rival, under the `ads` mode.
|
|
65081
65103
|
* @enum {string}
|
|
65082
65104
|
*/
|
|
65083
|
-
step: "negatives" | "pauses" | "keywords" | "budgets" | "bids" | "assets" | "compare_page" | "goals" | "reach";
|
|
65105
|
+
step: "negatives" | "pauses" | "keywords" | "budgets" | "bids" | "assets" | "compare_page" | "goals" | "reach" | "country_campaigns";
|
|
65084
65106
|
}[];
|
|
65085
65107
|
};
|
|
65086
65108
|
/** @description The organisation's autopilot decisions (za-166, docs/1006 §77). */
|
|
@@ -66241,6 +66263,52 @@ export interface components {
|
|
|
66241
66263
|
winner_list: components["schemas"]["AdsCopyWinner"][];
|
|
66242
66264
|
winners: number;
|
|
66243
66265
|
};
|
|
66266
|
+
/** @description One campaign whose only location is one country (za-75). Money in micros of the account currency; 7 days. */
|
|
66267
|
+
AdsCountryCampaign: {
|
|
66268
|
+
budget_flag: {
|
|
66269
|
+
/** Format: int64 */
|
|
66270
|
+
raise_to_micros: number;
|
|
66271
|
+
/** @enum {string} */
|
|
66272
|
+
state: "raised" | "suggested" | "ceiling" | "recent" | "flagged";
|
|
66273
|
+
} | null;
|
|
66274
|
+
/** Format: int64 */
|
|
66275
|
+
budget_micros: number;
|
|
66276
|
+
/** Format: date-time */
|
|
66277
|
+
built_at: string | null;
|
|
66278
|
+
/** @enum {string} */
|
|
66279
|
+
built_by: "autopilot" | "you";
|
|
66280
|
+
campaign: string;
|
|
66281
|
+
campaign_id: string;
|
|
66282
|
+
/** Format: uuid */
|
|
66283
|
+
change_id: string | null;
|
|
66284
|
+
conversions: number;
|
|
66285
|
+
/** Format: int64 */
|
|
66286
|
+
cost_micros: number;
|
|
66287
|
+
/** Format: int64 */
|
|
66288
|
+
cost_per_conversion_micros: number | null;
|
|
66289
|
+
/** @description ISO 3166-1 alpha-2 code. */
|
|
66290
|
+
country: string;
|
|
66291
|
+
held_by_budget: boolean;
|
|
66292
|
+
/** @description Share of impressions lost to budget, 0-1. */
|
|
66293
|
+
lost_budget: number | null;
|
|
66294
|
+
/** @enum {string} */
|
|
66295
|
+
state: "held" | "not_showing" | "limited" | "new" | "showing";
|
|
66296
|
+
/** @description The diagnosis's plain English sentence (za-76). */
|
|
66297
|
+
why: string;
|
|
66298
|
+
};
|
|
66299
|
+
/** @description A country that converted in 30 days inside campaigns that are not its own (za-75). */
|
|
66300
|
+
AdsCountryCandidate: {
|
|
66301
|
+
clicks: number;
|
|
66302
|
+
conversions: number;
|
|
66303
|
+
/** Format: int64 */
|
|
66304
|
+
cost_micros: number;
|
|
66305
|
+
/** Format: int64 */
|
|
66306
|
+
cost_per_conversion_micros: number | null;
|
|
66307
|
+
/** @description ISO 3166-1 alpha-2 code. */
|
|
66308
|
+
country: string;
|
|
66309
|
+
/** @enum {string} */
|
|
66310
|
+
standing: "proposed" | "ready" | "watching" | "monthly_limit" | "excluded" | "off";
|
|
66311
|
+
};
|
|
66244
66312
|
/** @description COUNTRYCUT — our recommended values, in the connection's currency. */
|
|
66245
66313
|
AdsCountryCutRecommended: {
|
|
66246
66314
|
currency: string;
|
|
@@ -67067,6 +67135,15 @@ export interface components {
|
|
|
67067
67135
|
dropped: number;
|
|
67068
67136
|
/** @description The last problem's code, e.g. landingNotBacked, landingNoText, landingNotServing. */
|
|
67069
67137
|
error: string;
|
|
67138
|
+
/** @description za-109: what the rival's OWN public page says, word for word, with that page's address and the date it was read. Empty when we do not know the rival's address (never guessed). */
|
|
67139
|
+
facts: {
|
|
67140
|
+
language: string;
|
|
67141
|
+
quote: string;
|
|
67142
|
+
/** Format: date */
|
|
67143
|
+
read_on: string;
|
|
67144
|
+
/** Format: uri */
|
|
67145
|
+
source_url: string;
|
|
67146
|
+
}[];
|
|
67070
67147
|
/** Format: uuid */
|
|
67071
67148
|
id: string;
|
|
67072
67149
|
keywords: string[];
|
|
@@ -67077,6 +67154,10 @@ export interface components {
|
|
|
67077
67154
|
page_url: string;
|
|
67078
67155
|
/** Format: date-time */
|
|
67079
67156
|
published_at: string | null;
|
|
67157
|
+
/** @description za-109 (docs/1006.d/features/za-109-alternative-pages.md): the competitor this ad group is named after, from the org's competitor registry; "" for a plain matching page. A rival's page is an "alternative to <rival>" page: its headline names the rival in text only, and no line compares. */
|
|
67158
|
+
rival: string;
|
|
67159
|
+
/** @description The rival's name as written on the page ("" for a plain page). */
|
|
67160
|
+
rival_name: string;
|
|
67080
67161
|
/** Format: uuid */
|
|
67081
67162
|
site_id: string;
|
|
67082
67163
|
slug: string;
|
|
@@ -144733,6 +144814,50 @@ export interface operations {
|
|
|
144733
144814
|
429: components["responses"]["TooManyRequests"];
|
|
144734
144815
|
};
|
|
144735
144816
|
};
|
|
144817
|
+
getAdsCountryCampaigns: {
|
|
144818
|
+
parameters: {
|
|
144819
|
+
query?: never;
|
|
144820
|
+
header?: never;
|
|
144821
|
+
path: {
|
|
144822
|
+
connection_id: string;
|
|
144823
|
+
};
|
|
144824
|
+
cookie?: never;
|
|
144825
|
+
};
|
|
144826
|
+
requestBody?: never;
|
|
144827
|
+
responses: {
|
|
144828
|
+
/** @description The country campaigns and the countries without one. */
|
|
144829
|
+
200: {
|
|
144830
|
+
headers: {
|
|
144831
|
+
[name: string]: unknown;
|
|
144832
|
+
};
|
|
144833
|
+
content: {
|
|
144834
|
+
"application/json": {
|
|
144835
|
+
/** Format: int64 */
|
|
144836
|
+
account_cost_per_conversion_micros: number | null;
|
|
144837
|
+
campaigns: components["schemas"]["AdsCountryCampaign"][];
|
|
144838
|
+
countries: components["schemas"]["AdsCountryCandidate"][];
|
|
144839
|
+
/** @description ISO 4217 code of the account. */
|
|
144840
|
+
currency: string;
|
|
144841
|
+
/** Format: date-time */
|
|
144842
|
+
read_at: string | null;
|
|
144843
|
+
/** @enum {string} */
|
|
144844
|
+
state: "held" | "ready" | "ok" | "none";
|
|
144845
|
+
trigger: {
|
|
144846
|
+
left_this_month: number;
|
|
144847
|
+
max_per_month: number;
|
|
144848
|
+
min_clicks: number;
|
|
144849
|
+
min_conversions: number;
|
|
144850
|
+
on: boolean;
|
|
144851
|
+
} | null;
|
|
144852
|
+
};
|
|
144853
|
+
};
|
|
144854
|
+
};
|
|
144855
|
+
401: components["responses"]["Unauthorized"];
|
|
144856
|
+
403: components["responses"]["Forbidden"];
|
|
144857
|
+
404: components["responses"]["NotFound"];
|
|
144858
|
+
429: components["responses"]["TooManyRequests"];
|
|
144859
|
+
};
|
|
144860
|
+
};
|
|
144736
144861
|
listAdsCrmSources: {
|
|
144737
144862
|
parameters: {
|
|
144738
144863
|
query?: never;
|
|
@@ -145652,7 +145777,9 @@ export interface operations {
|
|
|
145652
145777
|
};
|
|
145653
145778
|
listAdsMatchingPages: {
|
|
145654
145779
|
parameters: {
|
|
145655
|
-
query?:
|
|
145780
|
+
query?: {
|
|
145781
|
+
alternatives_only?: boolean;
|
|
145782
|
+
};
|
|
145656
145783
|
header?: never;
|
|
145657
145784
|
path: {
|
|
145658
145785
|
connection_id: 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.1543",
|
|
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>",
|