@zinn-digital/sdk 0.1.1492 → 0.1.1494
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 +376 -0
- package/package.json +1 -1
|
@@ -16123,6 +16123,26 @@ export interface paths {
|
|
|
16123
16123
|
patch?: never;
|
|
16124
16124
|
trace?: never;
|
|
16125
16125
|
};
|
|
16126
|
+
"/v1/ads/analytics/forecast": {
|
|
16127
|
+
parameters: {
|
|
16128
|
+
query?: never;
|
|
16129
|
+
header?: never;
|
|
16130
|
+
path?: never;
|
|
16131
|
+
cookie?: never;
|
|
16132
|
+
};
|
|
16133
|
+
/**
|
|
16134
|
+
* This month's spend so far, the month-end forecast with its band, and the spend ceiling it is held against (za-284).
|
|
16135
|
+
* @description Always the CURRENT month (UTC), over the screen's network, account, campaign, country, device and product/site filters (its date range does not apply). The forecast is the pacing card's own, per account: what it spent this month before today plus its mean daily spend over the last `rate_days` complete days for every day left, today included (on the account's own weekday pattern when its pacing strategy is `day_of_week`). The band is a MODEL: each day left varies like the last `rate_days` did, days independent, accounts summed by variance; `low`..`high` is the central `band_pct`% and never below what is spent. `days` is one point per day of the month: `actual` (cumulative spend) before today, `mid`/`low`/`high` from today to the month's last day. `ceiling`: the organisation's one cross-network monthly ceiling when every live account of it is in scope, else the sum of the accounts' own monthly ceilings; `complete` is false when an account in scope that spends has none (`missing` counts them), and `comparable` is false under a campaign, country, device or product/site filter (a ceiling is per account). `state`: `no_spend`, `no_ceiling`, `at_ceiling` (spent), `over` (the forecast passes it), `at_risk` (the band's top passes it) or `under`. Gated on `ads.view` like the other analytics reads. Stored rows only. Money is integer micros of the reporting `currency` at the current stored rate (`fx`).
|
|
16136
|
+
*/
|
|
16137
|
+
get: operations["getAdsAnalyticsForecast"];
|
|
16138
|
+
put?: never;
|
|
16139
|
+
post?: never;
|
|
16140
|
+
delete?: never;
|
|
16141
|
+
options?: never;
|
|
16142
|
+
head?: never;
|
|
16143
|
+
patch?: never;
|
|
16144
|
+
trace?: never;
|
|
16145
|
+
};
|
|
16126
16146
|
"/v1/ads/analytics/funnel": {
|
|
16127
16147
|
parameters: {
|
|
16128
16148
|
query?: never;
|
|
@@ -16163,6 +16183,46 @@ export interface paths {
|
|
|
16163
16183
|
patch?: never;
|
|
16164
16184
|
trace?: never;
|
|
16165
16185
|
};
|
|
16186
|
+
"/v1/ads/analytics/markers": {
|
|
16187
|
+
parameters: {
|
|
16188
|
+
query?: never;
|
|
16189
|
+
header?: never;
|
|
16190
|
+
path?: never;
|
|
16191
|
+
cookie?: never;
|
|
16192
|
+
};
|
|
16193
|
+
/**
|
|
16194
|
+
* What happened on each day of the chart - the changes made and the anomalies, each anomaly linked to the changes before it (za-284).
|
|
16195
|
+
* @description Over the same filters as the other analytics reads. Per bucket of the chart's grain: the changes APPLIED to an ad account in scope (an undone change too - it happened, then it was taken back), split by who made them (`zinn`: the daily audit, the autopilot, Simple mode, the assistant; `you`: a person in the dashboard or the customer's own API key), and the changes Google made in the account by itself (`google`; `google_breaks` of them broke one of the customer's own rules). `anomalies` are the days whose spend or conversions left the account's own pattern of the 14 days before (at least 7 of them with data): beyond three standard deviations, half the mean and a floor of one unit of the currency or two conversions. Today is never judged. Each anomaly counts the changes in the `link_days` days up to it (`linked`), and `linked_first_day`..`linked_last_day` is the window `GET /v1/ads/analytics/markers/items` lists them in. Changes are account-level: with a campaign, country, device or product/site filter they are still the whole account's, and `narrowed` says so. Gated on `ads.view` over the organisations the person can view; `org_id` narrows to that organisation and its client organisations; no organisation is a 404. Stored rows only, counted in the database. Anomaly values are integer micros of the reporting `currency` (conversions in thousandths).
|
|
16196
|
+
*/
|
|
16197
|
+
get: operations["getAdsAnalyticsMarkers"];
|
|
16198
|
+
put?: never;
|
|
16199
|
+
post?: never;
|
|
16200
|
+
delete?: never;
|
|
16201
|
+
options?: never;
|
|
16202
|
+
head?: never;
|
|
16203
|
+
patch?: never;
|
|
16204
|
+
trace?: never;
|
|
16205
|
+
};
|
|
16206
|
+
"/v1/ads/analytics/markers/items": {
|
|
16207
|
+
parameters: {
|
|
16208
|
+
query?: never;
|
|
16209
|
+
header?: never;
|
|
16210
|
+
path?: never;
|
|
16211
|
+
cookie?: never;
|
|
16212
|
+
};
|
|
16213
|
+
/**
|
|
16214
|
+
* The changes behind a chart marker, newest first, paged, each with its Undo state (za-284).
|
|
16215
|
+
* @description The changes applied (`changes`) and the changes Google made by itself (`google`) in `marker_first`..`marker_last` (UTC days; default the screen's window), each list paged by the same `offset` and `limit` with its own full `count`. The window must lie inside the screen's window or the `link_days` before it (an anomaly's link window), else 422. A change carries `can_undo` while its 30-day Undo is open (`POST /v1/ads/changes/{change_id}/undo`); a Google change carries `undoable` while its Undo can still be asked for (`POST /v1/ads/connections/{connection_id}/google-changes/{change_id}/undo`). Same gate and filters as `GET /v1/ads/analytics/markers`.
|
|
16216
|
+
*/
|
|
16217
|
+
get: operations["listAdsAnalyticsMarkerItems"];
|
|
16218
|
+
put?: never;
|
|
16219
|
+
post?: never;
|
|
16220
|
+
delete?: never;
|
|
16221
|
+
options?: never;
|
|
16222
|
+
head?: never;
|
|
16223
|
+
patch?: never;
|
|
16224
|
+
trace?: never;
|
|
16225
|
+
};
|
|
16166
16226
|
"/v1/ads/analytics/summary": {
|
|
16167
16227
|
parameters: {
|
|
16168
16228
|
query?: never;
|
|
@@ -63744,6 +63804,27 @@ export interface components {
|
|
|
63744
63804
|
connection_id: string;
|
|
63745
63805
|
data: components["schemas"]["AdsAllowedTerm"][];
|
|
63746
63806
|
};
|
|
63807
|
+
AdsAnalyticsAnomaly: {
|
|
63808
|
+
change_pct: number;
|
|
63809
|
+
/** Format: date */
|
|
63810
|
+
day: string;
|
|
63811
|
+
/** @enum {string} */
|
|
63812
|
+
direction: "up" | "down";
|
|
63813
|
+
/**
|
|
63814
|
+
* Format: int64
|
|
63815
|
+
* @description The mean of the baseline days.
|
|
63816
|
+
*/
|
|
63817
|
+
expected: number;
|
|
63818
|
+
linked: components["schemas"]["AdsAnalyticsMarkerCounts"];
|
|
63819
|
+
/** Format: date */
|
|
63820
|
+
linked_first_day: string;
|
|
63821
|
+
/** Format: date */
|
|
63822
|
+
linked_last_day: string;
|
|
63823
|
+
/** @enum {string} */
|
|
63824
|
+
metric: "cost_micros" | "conversions_milli";
|
|
63825
|
+
/** Format: int64 */
|
|
63826
|
+
value: number;
|
|
63827
|
+
};
|
|
63747
63828
|
AdsAnalyticsBreakdown: components["schemas"]["AdsAnalyticsFrame"] & {
|
|
63748
63829
|
/** @enum {string} */
|
|
63749
63830
|
by: "network" | "connection" | "campaign" | "country" | "device" | "offering";
|
|
@@ -63774,6 +63855,56 @@ export interface components {
|
|
|
63774
63855
|
/** Format: int64 */
|
|
63775
63856
|
value_micros: number;
|
|
63776
63857
|
};
|
|
63858
|
+
AdsAnalyticsForecast: {
|
|
63859
|
+
accounts: number;
|
|
63860
|
+
band_pct: number;
|
|
63861
|
+
ceiling: {
|
|
63862
|
+
comparable: boolean;
|
|
63863
|
+
complete: boolean;
|
|
63864
|
+
/** Format: int64 */
|
|
63865
|
+
micros: number | null;
|
|
63866
|
+
missing: number;
|
|
63867
|
+
/** @enum {string} */
|
|
63868
|
+
source: "" | "accounts" | "cross" | "mixed";
|
|
63869
|
+
};
|
|
63870
|
+
currency: string;
|
|
63871
|
+
days: components["schemas"]["AdsAnalyticsForecastDay"][];
|
|
63872
|
+
days_left: number;
|
|
63873
|
+
/** Format: int64 */
|
|
63874
|
+
forecast_micros: number;
|
|
63875
|
+
fx: components["schemas"]["AdsAnalyticsFx"][];
|
|
63876
|
+
/** Format: int64 */
|
|
63877
|
+
high_micros: number;
|
|
63878
|
+
/** Format: int64 */
|
|
63879
|
+
low_micros: number;
|
|
63880
|
+
/** Format: date */
|
|
63881
|
+
month_first_day: string;
|
|
63882
|
+
/** Format: date */
|
|
63883
|
+
month_last_day: string;
|
|
63884
|
+
rate_days: number;
|
|
63885
|
+
/** Format: int64 */
|
|
63886
|
+
spent_micros: number;
|
|
63887
|
+
/** @enum {string} */
|
|
63888
|
+
state: "no_spend" | "no_ceiling" | "at_ceiling" | "over" | "at_risk" | "under";
|
|
63889
|
+
/** Format: date */
|
|
63890
|
+
today: string;
|
|
63891
|
+
unconverted: string[];
|
|
63892
|
+
};
|
|
63893
|
+
AdsAnalyticsForecastDay: {
|
|
63894
|
+
/**
|
|
63895
|
+
* Format: int64
|
|
63896
|
+
* @description Cumulative spend, before today.
|
|
63897
|
+
*/
|
|
63898
|
+
actual: number | null;
|
|
63899
|
+
/** Format: date */
|
|
63900
|
+
day: string;
|
|
63901
|
+
/** Format: int64 */
|
|
63902
|
+
high: number | null;
|
|
63903
|
+
/** Format: int64 */
|
|
63904
|
+
low: number | null;
|
|
63905
|
+
/** Format: int64 */
|
|
63906
|
+
mid: number | null;
|
|
63907
|
+
};
|
|
63777
63908
|
AdsAnalyticsFrame: {
|
|
63778
63909
|
accounts: number;
|
|
63779
63910
|
/** @enum {string} */
|
|
@@ -63793,6 +63924,8 @@ export interface components {
|
|
|
63793
63924
|
range: string;
|
|
63794
63925
|
/** @description Currencies left out of the blended figures for want of a stored rate; `???` stands for accounts whose currency is not known. */
|
|
63795
63926
|
unconverted: string[];
|
|
63927
|
+
/** @description za-283: networks in scope whose figures are NOT in this read because the network does not report the level it reads (a country board or filter reads country figures; X reports no country). Shown as a note, never as zero. Absent on a read cached before za-283's device car. */
|
|
63928
|
+
unreported_networks?: string[];
|
|
63796
63929
|
};
|
|
63797
63930
|
AdsAnalyticsFunnel: components["schemas"]["AdsAnalyticsFrame"] & {
|
|
63798
63931
|
/** @description `false` when a filter the customer's own outcomes cannot follow is set (they carry no campaign, country, device or product/site). */
|
|
@@ -63938,6 +64071,95 @@ export interface components {
|
|
|
63938
64071
|
/** Format: date */
|
|
63939
64072
|
last_day: string;
|
|
63940
64073
|
};
|
|
64074
|
+
AdsAnalyticsMarkerBucket: {
|
|
64075
|
+
anomalies: components["schemas"]["AdsAnalyticsAnomaly"][];
|
|
64076
|
+
/** Format: date */
|
|
64077
|
+
bucket: string;
|
|
64078
|
+
google: number;
|
|
64079
|
+
google_breaks: number;
|
|
64080
|
+
you: number;
|
|
64081
|
+
zinn: number;
|
|
64082
|
+
};
|
|
64083
|
+
AdsAnalyticsMarkerChange: {
|
|
64084
|
+
account: string;
|
|
64085
|
+
action_class: string;
|
|
64086
|
+
/** Format: date-time */
|
|
64087
|
+
applied_at: string | null;
|
|
64088
|
+
can_undo: boolean;
|
|
64089
|
+
/** Format: uuid */
|
|
64090
|
+
connection_id: string;
|
|
64091
|
+
decided_by: string;
|
|
64092
|
+
/** Format: uuid */
|
|
64093
|
+
id: string;
|
|
64094
|
+
network: string;
|
|
64095
|
+
proposed_by: string;
|
|
64096
|
+
/** @enum {string} */
|
|
64097
|
+
status: "applied" | "undone";
|
|
64098
|
+
summary: {
|
|
64099
|
+
[key: string]: unknown;
|
|
64100
|
+
};
|
|
64101
|
+
/** Format: date-time */
|
|
64102
|
+
undo_until: string | null;
|
|
64103
|
+
/** @enum {string} */
|
|
64104
|
+
who: "zinn" | "you";
|
|
64105
|
+
};
|
|
64106
|
+
AdsAnalyticsMarkerCounts: {
|
|
64107
|
+
/** @description Changes Google made in the account by itself. */
|
|
64108
|
+
google: number;
|
|
64109
|
+
/** @description Changes a person made in the dashboard or the customer's own API key made. */
|
|
64110
|
+
you: number;
|
|
64111
|
+
/** @description Changes Zinn® Ads made (the audit, the autopilot, Simple mode, the assistant). */
|
|
64112
|
+
zinn: number;
|
|
64113
|
+
};
|
|
64114
|
+
AdsAnalyticsMarkerGoogleChange: {
|
|
64115
|
+
account: string;
|
|
64116
|
+
/** @enum {string} */
|
|
64117
|
+
actor: "auto_apply" | "recommendation" | "google";
|
|
64118
|
+
/** Format: date-time */
|
|
64119
|
+
changed_at: string;
|
|
64120
|
+
changed_fields: string[];
|
|
64121
|
+
/** Format: uuid */
|
|
64122
|
+
connection_id: string;
|
|
64123
|
+
/** Format: uuid */
|
|
64124
|
+
id: string;
|
|
64125
|
+
network: string;
|
|
64126
|
+
operation: string;
|
|
64127
|
+
resource_type: string;
|
|
64128
|
+
undo_requested: boolean;
|
|
64129
|
+
undoable: boolean;
|
|
64130
|
+
/** @enum {string} */
|
|
64131
|
+
verdict: "within_rules" | "risky" | "needs_approval" | "breaks_rule";
|
|
64132
|
+
};
|
|
64133
|
+
AdsAnalyticsMarkerItems: {
|
|
64134
|
+
changes: {
|
|
64135
|
+
count: number;
|
|
64136
|
+
rows: components["schemas"]["AdsAnalyticsMarkerChange"][];
|
|
64137
|
+
};
|
|
64138
|
+
/** Format: date */
|
|
64139
|
+
first_day: string;
|
|
64140
|
+
google: {
|
|
64141
|
+
count: number;
|
|
64142
|
+
rows: components["schemas"]["AdsAnalyticsMarkerGoogleChange"][];
|
|
64143
|
+
};
|
|
64144
|
+
/** Format: date */
|
|
64145
|
+
last_day: string;
|
|
64146
|
+
limit: number;
|
|
64147
|
+
offset: number;
|
|
64148
|
+
};
|
|
64149
|
+
AdsAnalyticsMarkers: {
|
|
64150
|
+
accounts: number;
|
|
64151
|
+
buckets: components["schemas"]["AdsAnalyticsMarkerBucket"][];
|
|
64152
|
+
currency: string;
|
|
64153
|
+
/** Format: date */
|
|
64154
|
+
first_day: string;
|
|
64155
|
+
/** @enum {string} */
|
|
64156
|
+
grain: "day" | "week" | "month";
|
|
64157
|
+
/** Format: date */
|
|
64158
|
+
last_day: string;
|
|
64159
|
+
link_days: number;
|
|
64160
|
+
narrowed: boolean;
|
|
64161
|
+
unconverted: string[];
|
|
64162
|
+
};
|
|
63941
64163
|
AdsAnalyticsPoint: components["schemas"]["AdsAnalyticsFigures"] & {
|
|
63942
64164
|
/** Format: date */
|
|
63943
64165
|
bucket: string;
|
|
@@ -138989,6 +139211,56 @@ export interface operations {
|
|
|
138989
139211
|
429: components["responses"]["TooManyRequests"];
|
|
138990
139212
|
};
|
|
138991
139213
|
};
|
|
139214
|
+
getAdsAnalyticsForecast: {
|
|
139215
|
+
parameters: {
|
|
139216
|
+
query?: {
|
|
139217
|
+
/** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
|
|
139218
|
+
campaign?: components["parameters"]["AdsAnalyticsCampaign"];
|
|
139219
|
+
compare?: components["parameters"]["AdsAnalyticsCompare"];
|
|
139220
|
+
/** @description Comma-separated ad-account connection ids. */
|
|
139221
|
+
connection?: components["parameters"]["AdsAnalyticsConnection"];
|
|
139222
|
+
/** @description Comma-separated ISO 3166-1 alpha-2 codes. Reads the country-level figures. */
|
|
139223
|
+
country?: components["parameters"]["AdsAnalyticsCountry"];
|
|
139224
|
+
/** @description Reporting currency (ISO 4217). Default the one currency in play, else the organisation's. */
|
|
139225
|
+
currency?: components["parameters"]["AdsAnalyticsCurrency"];
|
|
139226
|
+
/** @description Comma-separated devices: `mobile`, `desktop`, `tablet`, `tv`, `other` (za-282). Reads the device-level figures (Google Ads accounts, campaign grain). No stored level is split by both country and device, so `device` with `country` is refused (422, field `device`). */
|
|
139227
|
+
device?: components["parameters"]["AdsAnalyticsDevice"];
|
|
139228
|
+
from?: components["parameters"]["AdsAnalyticsFrom"];
|
|
139229
|
+
/** @description Bucket size. Default day up to 92 days, week up to 366, month beyond. */
|
|
139230
|
+
grain?: components["parameters"]["AdsAnalyticsGrain"];
|
|
139231
|
+
/** @description Comma-separated networks (google, microsoft, meta, linkedin, tiktok, x, pinterest, amazon). */
|
|
139232
|
+
network?: components["parameters"]["AdsAnalyticsNetwork"];
|
|
139233
|
+
/** @description Comma-separated product/site ids (za-290), or `unassigned`. */
|
|
139234
|
+
offering?: components["parameters"]["AdsAnalyticsOffering"];
|
|
139235
|
+
org_id?: string;
|
|
139236
|
+
/** @description The period. `custom` takes `from` and `to`. */
|
|
139237
|
+
range?: components["parameters"]["AdsAnalyticsRange"];
|
|
139238
|
+
to?: components["parameters"]["AdsAnalyticsTo"];
|
|
139239
|
+
};
|
|
139240
|
+
header?: never;
|
|
139241
|
+
path?: never;
|
|
139242
|
+
cookie?: never;
|
|
139243
|
+
};
|
|
139244
|
+
requestBody?: never;
|
|
139245
|
+
responses: {
|
|
139246
|
+
/** @description The month-end forecast. */
|
|
139247
|
+
200: {
|
|
139248
|
+
headers: {
|
|
139249
|
+
[name: string]: unknown;
|
|
139250
|
+
};
|
|
139251
|
+
content: {
|
|
139252
|
+
"application/json": {
|
|
139253
|
+
data: components["schemas"]["AdsAnalyticsForecast"];
|
|
139254
|
+
};
|
|
139255
|
+
};
|
|
139256
|
+
};
|
|
139257
|
+
401: components["responses"]["Unauthorized"];
|
|
139258
|
+
403: components["responses"]["Forbidden"];
|
|
139259
|
+
404: components["responses"]["NotFound"];
|
|
139260
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
139261
|
+
429: components["responses"]["TooManyRequests"];
|
|
139262
|
+
};
|
|
139263
|
+
};
|
|
138992
139264
|
getAdsAnalyticsFunnel: {
|
|
138993
139265
|
parameters: {
|
|
138994
139266
|
query?: {
|
|
@@ -139089,6 +139361,110 @@ export interface operations {
|
|
|
139089
139361
|
429: components["responses"]["TooManyRequests"];
|
|
139090
139362
|
};
|
|
139091
139363
|
};
|
|
139364
|
+
getAdsAnalyticsMarkers: {
|
|
139365
|
+
parameters: {
|
|
139366
|
+
query?: {
|
|
139367
|
+
/** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
|
|
139368
|
+
campaign?: components["parameters"]["AdsAnalyticsCampaign"];
|
|
139369
|
+
compare?: components["parameters"]["AdsAnalyticsCompare"];
|
|
139370
|
+
/** @description Comma-separated ad-account connection ids. */
|
|
139371
|
+
connection?: components["parameters"]["AdsAnalyticsConnection"];
|
|
139372
|
+
/** @description Comma-separated ISO 3166-1 alpha-2 codes. Reads the country-level figures. */
|
|
139373
|
+
country?: components["parameters"]["AdsAnalyticsCountry"];
|
|
139374
|
+
/** @description Reporting currency (ISO 4217). Default the one currency in play, else the organisation's. */
|
|
139375
|
+
currency?: components["parameters"]["AdsAnalyticsCurrency"];
|
|
139376
|
+
/** @description Comma-separated devices: `mobile`, `desktop`, `tablet`, `tv`, `other` (za-282). Reads the device-level figures (Google Ads accounts, campaign grain). No stored level is split by both country and device, so `device` with `country` is refused (422, field `device`). */
|
|
139377
|
+
device?: components["parameters"]["AdsAnalyticsDevice"];
|
|
139378
|
+
from?: components["parameters"]["AdsAnalyticsFrom"];
|
|
139379
|
+
/** @description Bucket size. Default day up to 92 days, week up to 366, month beyond. */
|
|
139380
|
+
grain?: components["parameters"]["AdsAnalyticsGrain"];
|
|
139381
|
+
/** @description Comma-separated networks (google, microsoft, meta, linkedin, tiktok, x, pinterest, amazon). */
|
|
139382
|
+
network?: components["parameters"]["AdsAnalyticsNetwork"];
|
|
139383
|
+
/** @description Comma-separated product/site ids (za-290), or `unassigned`. */
|
|
139384
|
+
offering?: components["parameters"]["AdsAnalyticsOffering"];
|
|
139385
|
+
org_id?: string;
|
|
139386
|
+
/** @description The period. `custom` takes `from` and `to`. */
|
|
139387
|
+
range?: components["parameters"]["AdsAnalyticsRange"];
|
|
139388
|
+
to?: components["parameters"]["AdsAnalyticsTo"];
|
|
139389
|
+
};
|
|
139390
|
+
header?: never;
|
|
139391
|
+
path?: never;
|
|
139392
|
+
cookie?: never;
|
|
139393
|
+
};
|
|
139394
|
+
requestBody?: never;
|
|
139395
|
+
responses: {
|
|
139396
|
+
/** @description The markers per bucket. */
|
|
139397
|
+
200: {
|
|
139398
|
+
headers: {
|
|
139399
|
+
[name: string]: unknown;
|
|
139400
|
+
};
|
|
139401
|
+
content: {
|
|
139402
|
+
"application/json": {
|
|
139403
|
+
data: components["schemas"]["AdsAnalyticsMarkers"];
|
|
139404
|
+
};
|
|
139405
|
+
};
|
|
139406
|
+
};
|
|
139407
|
+
401: components["responses"]["Unauthorized"];
|
|
139408
|
+
403: components["responses"]["Forbidden"];
|
|
139409
|
+
404: components["responses"]["NotFound"];
|
|
139410
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
139411
|
+
429: components["responses"]["TooManyRequests"];
|
|
139412
|
+
};
|
|
139413
|
+
};
|
|
139414
|
+
listAdsAnalyticsMarkerItems: {
|
|
139415
|
+
parameters: {
|
|
139416
|
+
query?: {
|
|
139417
|
+
/** @description Comma-separated `<connection_id>:<campaign_id>` tokens. */
|
|
139418
|
+
campaign?: components["parameters"]["AdsAnalyticsCampaign"];
|
|
139419
|
+
compare?: components["parameters"]["AdsAnalyticsCompare"];
|
|
139420
|
+
/** @description Comma-separated ad-account connection ids. */
|
|
139421
|
+
connection?: components["parameters"]["AdsAnalyticsConnection"];
|
|
139422
|
+
/** @description Comma-separated ISO 3166-1 alpha-2 codes. Reads the country-level figures. */
|
|
139423
|
+
country?: components["parameters"]["AdsAnalyticsCountry"];
|
|
139424
|
+
/** @description Reporting currency (ISO 4217). Default the one currency in play, else the organisation's. */
|
|
139425
|
+
currency?: components["parameters"]["AdsAnalyticsCurrency"];
|
|
139426
|
+
/** @description Comma-separated devices: `mobile`, `desktop`, `tablet`, `tv`, `other` (za-282). Reads the device-level figures (Google Ads accounts, campaign grain). No stored level is split by both country and device, so `device` with `country` is refused (422, field `device`). */
|
|
139427
|
+
device?: components["parameters"]["AdsAnalyticsDevice"];
|
|
139428
|
+
from?: components["parameters"]["AdsAnalyticsFrom"];
|
|
139429
|
+
/** @description Bucket size. Default day up to 92 days, week up to 366, month beyond. */
|
|
139430
|
+
grain?: components["parameters"]["AdsAnalyticsGrain"];
|
|
139431
|
+
limit?: number;
|
|
139432
|
+
marker_first?: string;
|
|
139433
|
+
marker_last?: string;
|
|
139434
|
+
/** @description Comma-separated networks (google, microsoft, meta, linkedin, tiktok, x, pinterest, amazon). */
|
|
139435
|
+
network?: components["parameters"]["AdsAnalyticsNetwork"];
|
|
139436
|
+
/** @description Comma-separated product/site ids (za-290), or `unassigned`. */
|
|
139437
|
+
offering?: components["parameters"]["AdsAnalyticsOffering"];
|
|
139438
|
+
offset?: number;
|
|
139439
|
+
org_id?: string;
|
|
139440
|
+
/** @description The period. `custom` takes `from` and `to`. */
|
|
139441
|
+
range?: components["parameters"]["AdsAnalyticsRange"];
|
|
139442
|
+
to?: components["parameters"]["AdsAnalyticsTo"];
|
|
139443
|
+
};
|
|
139444
|
+
header?: never;
|
|
139445
|
+
path?: never;
|
|
139446
|
+
cookie?: never;
|
|
139447
|
+
};
|
|
139448
|
+
requestBody?: never;
|
|
139449
|
+
responses: {
|
|
139450
|
+
/** @description One page of each list. */
|
|
139451
|
+
200: {
|
|
139452
|
+
headers: {
|
|
139453
|
+
[name: string]: unknown;
|
|
139454
|
+
};
|
|
139455
|
+
content: {
|
|
139456
|
+
"application/json": {
|
|
139457
|
+
data: components["schemas"]["AdsAnalyticsMarkerItems"];
|
|
139458
|
+
};
|
|
139459
|
+
};
|
|
139460
|
+
};
|
|
139461
|
+
401: components["responses"]["Unauthorized"];
|
|
139462
|
+
403: components["responses"]["Forbidden"];
|
|
139463
|
+
404: components["responses"]["NotFound"];
|
|
139464
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
139465
|
+
429: components["responses"]["TooManyRequests"];
|
|
139466
|
+
};
|
|
139467
|
+
};
|
|
139092
139468
|
getAdsAnalyticsSummary: {
|
|
139093
139469
|
parameters: {
|
|
139094
139470
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1494",
|
|
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>",
|