@zinn-digital/sdk 0.1.1542 → 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 +113 -1
- 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;
|
|
@@ -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;
|
|
@@ -144746,6 +144814,50 @@ export interface operations {
|
|
|
144746
144814
|
429: components["responses"]["TooManyRequests"];
|
|
144747
144815
|
};
|
|
144748
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
|
+
};
|
|
144749
144861
|
listAdsCrmSources: {
|
|
144750
144862
|
parameters: {
|
|
144751
144863
|
query?: never;
|
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>",
|