@wix/auto_sdk_promote-google-ads_performance-metrics 1.0.0

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.
Files changed (52) hide show
  1. package/build/cjs/index.d.ts +70 -0
  2. package/build/cjs/index.js +697 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +816 -0
  5. package/build/cjs/index.typings.js +638 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +688 -0
  8. package/build/cjs/meta.js +534 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +616 -0
  11. package/build/cjs/schemas.js +981 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +70 -0
  14. package/build/es/index.mjs +658 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +816 -0
  17. package/build/es/index.typings.mjs +599 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +688 -0
  20. package/build/es/meta.mjs +492 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +616 -0
  24. package/build/es/schemas.mjs +933 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +70 -0
  27. package/build/internal/cjs/index.js +697 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +816 -0
  30. package/build/internal/cjs/index.typings.js +638 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +688 -0
  33. package/build/internal/cjs/meta.js +534 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +616 -0
  36. package/build/internal/cjs/schemas.js +981 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +70 -0
  39. package/build/internal/es/index.mjs +658 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +816 -0
  42. package/build/internal/es/index.typings.mjs +599 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +688 -0
  45. package/build/internal/es/meta.mjs +492 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +616 -0
  48. package/build/internal/es/schemas.mjs +933 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,981 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ QueryAssetPerformanceMetricsRequest: () => QueryAssetPerformanceMetricsRequest,
34
+ QueryAssetPerformanceMetricsResponse: () => QueryAssetPerformanceMetricsResponse,
35
+ QueryConversionMetricsRequest: () => QueryConversionMetricsRequest,
36
+ QueryConversionMetricsResponse: () => QueryConversionMetricsResponse,
37
+ QueryPerformanceMetricsRequest: () => QueryPerformanceMetricsRequest,
38
+ QueryPerformanceMetricsResponse: () => QueryPerformanceMetricsResponse,
39
+ QuerySearchTermMetricsRequest: () => QuerySearchTermMetricsRequest,
40
+ QuerySearchTermMetricsResponse: () => QuerySearchTermMetricsResponse,
41
+ QuerySearchTermMetricsV2Request: () => QuerySearchTermMetricsV2Request,
42
+ QuerySearchTermMetricsV2Response: () => QuerySearchTermMetricsV2Response,
43
+ QueryShoppingPerformanceMetricsRequest: () => QueryShoppingPerformanceMetricsRequest,
44
+ QueryShoppingPerformanceMetricsResponse: () => QueryShoppingPerformanceMetricsResponse
45
+ });
46
+ module.exports = __toCommonJS(schemas_exports);
47
+
48
+ // src/promote-paid-ads-google-ads-v1-performance-metrics-performance-metrics.schemas.ts
49
+ var z = __toESM(require("zod"));
50
+ var QuerySearchTermMetricsRequest = z.object({
51
+ campaignResourceName: z.string().describe(
52
+ "Google Ads resource name of the Smart campaign to query, in the format `customers/{customerId}/campaigns/{campaignId}`."
53
+ ).max(1e3),
54
+ options: z.object({
55
+ searchTermText: z.string().describe(
56
+ "Filters results to search terms whose text contains this string. When omitted, all search terms are returned."
57
+ ).max(1e3).optional().nullable(),
58
+ searchTermTextsFilter: z.object({
59
+ type: z.enum(["UNSPECIFIED", "MATCH", "NOT_MATCH"]).optional(),
60
+ searchTermTexts: z.array(z.string()).max(1e3).optional()
61
+ }).describe(
62
+ "Filters results to an explicit list of search term texts. When combined with searchTermText, only terms matching both conditions are returned."
63
+ ).optional(),
64
+ dateRange: z.intersection(
65
+ z.object({}),
66
+ z.xor([
67
+ z.object({
68
+ custom: z.never().optional(),
69
+ predefined: z.never().optional()
70
+ }),
71
+ z.object({
72
+ predefined: z.never().optional(),
73
+ custom: z.object({
74
+ from: z.string().describe("Date in format YYYY-MM-DD").max(20).optional(),
75
+ to: z.string().describe("Date in format YYYY-MM-DD").max(20).optional()
76
+ }).describe("Custom date range")
77
+ }),
78
+ z.object({
79
+ custom: z.never().optional(),
80
+ predefined: z.enum([
81
+ "UNSPECIFIED",
82
+ "TODAY",
83
+ "YESTERDAY",
84
+ "LAST_7_DAYS",
85
+ "LAST_BUSINESS_WEEK",
86
+ "THIS_MONTH",
87
+ "LAST_MONTH",
88
+ "LAST_14_DAYS",
89
+ "LAST_30_DAYS",
90
+ "THIS_WEEK_SUN_TODAY",
91
+ "THIS_WEEK_MON_TODAY",
92
+ "LAST_WEEK_SUN_SAT",
93
+ "LAST_WEEK_MON_SUN",
94
+ "LIFETIME"
95
+ ]).describe("Predefined date range")
96
+ })
97
+ ])
98
+ ).describe(
99
+ "Date range to query. When omitted, defaults to the campaign lifetime."
100
+ ).optional(),
101
+ sort: z.object({
102
+ field: z.enum([
103
+ "UNSPECIFIED",
104
+ "IMPRESSIONS",
105
+ "CLICKS",
106
+ "COST",
107
+ "SEARCH_TERM"
108
+ ]).optional(),
109
+ order: z.enum(["ASC", "DESC"]).optional()
110
+ }).describe(
111
+ "Sorting to apply. Defaults to descending by cost when omitted."
112
+ ).optional(),
113
+ paging: z.object({
114
+ nextPageToken: z.string().describe(
115
+ "Next page token can be used in subsequent requests to fetch the next page of results"
116
+ ).max(100).optional().nullable(),
117
+ pageSize: z.number().int().describe("Size of page to return").optional()
118
+ }).describe("Paging to apply.").optional()
119
+ }).optional()
120
+ });
121
+ var QuerySearchTermMetricsResponse = z.object({
122
+ results: z.array(
123
+ z.object({
124
+ impressions: z.number().int().describe("Number of times the ad was shown for this search term.").optional(),
125
+ clicks: z.number().int().describe("Number of clicks on the ad for this search term.").optional(),
126
+ cost: z.number().describe(
127
+ "Total amount spent on ads triggered by this search term, in the account's currency."
128
+ ).optional(),
129
+ searchTerm: z.string().describe(
130
+ "The search term text entered by the user that triggered the ad."
131
+ ).max(1e3).optional().nullable()
132
+ })
133
+ ).max(1e3).optional(),
134
+ summaryRow: z.object({
135
+ impressions: z.number().int().describe("Number of times the ad was shown for this search term.").optional(),
136
+ clicks: z.number().int().describe("Number of clicks on the ad for this search term.").optional(),
137
+ cost: z.number().describe(
138
+ "Total amount spent on ads triggered by this search term, in the account's currency."
139
+ ).optional(),
140
+ searchTerm: z.string().describe(
141
+ "The search term text entered by the user that triggered the ad."
142
+ ).max(1e3).optional().nullable()
143
+ }).describe(
144
+ "Aggregated totals across all search terms, not just the current page."
145
+ ).optional(),
146
+ nextPageToken: z.string().describe(
147
+ "Token to pass in the next request to retrieve the following page of results."
148
+ ).max(1e3).optional().nullable()
149
+ });
150
+ var QueryPerformanceMetricsRequest = z.object({
151
+ campaignResourceName: z.string().describe(
152
+ "Google Ads resource name of the campaign to query, in the format `customers/{customerId}/campaigns/{campaignId}`."
153
+ ).max(1e3),
154
+ options: z.object({
155
+ dateRange: z.intersection(
156
+ z.object({}),
157
+ z.xor([
158
+ z.object({
159
+ custom: z.never().optional(),
160
+ predefined: z.never().optional()
161
+ }),
162
+ z.object({
163
+ predefined: z.never().optional(),
164
+ custom: z.object({
165
+ from: z.string().describe("Date in format YYYY-MM-DD").max(20).optional(),
166
+ to: z.string().describe("Date in format YYYY-MM-DD").max(20).optional()
167
+ }).describe("Custom date range")
168
+ }),
169
+ z.object({
170
+ custom: z.never().optional(),
171
+ predefined: z.enum([
172
+ "UNSPECIFIED",
173
+ "TODAY",
174
+ "YESTERDAY",
175
+ "LAST_7_DAYS",
176
+ "LAST_BUSINESS_WEEK",
177
+ "THIS_MONTH",
178
+ "LAST_MONTH",
179
+ "LAST_14_DAYS",
180
+ "LAST_30_DAYS",
181
+ "THIS_WEEK_SUN_TODAY",
182
+ "THIS_WEEK_MON_TODAY",
183
+ "LAST_WEEK_SUN_SAT",
184
+ "LAST_WEEK_MON_SUN",
185
+ "LIFETIME"
186
+ ]).describe("Predefined date range")
187
+ })
188
+ ])
189
+ ).describe(
190
+ "Date range to query. When omitted, defaults to the campaign lifetime."
191
+ ).optional(),
192
+ sort: z.object({
193
+ field: z.enum([
194
+ "UNSPECIFIED",
195
+ "IMPRESSIONS",
196
+ "CLICKS",
197
+ "CTR",
198
+ "DATE",
199
+ "PHONE_CALLS",
200
+ "LEADS",
201
+ "COST",
202
+ "COST_PER_CLICK",
203
+ "CLICKS_BY_AD_NETWORK_TYPE",
204
+ "IMPRESSIONS_BY_AD_NETWORK_TYPE"
205
+ ]).optional(),
206
+ order: z.enum(["ASC", "DESC"]).optional()
207
+ }).describe(
208
+ "Sorting to apply. Defaults to descending by date when omitted."
209
+ ).optional(),
210
+ fields: z.array(
211
+ z.enum([
212
+ "UNSPECIFIED",
213
+ "IMPRESSIONS",
214
+ "CLICKS",
215
+ "CTR",
216
+ "DATE",
217
+ "PHONE_CALLS",
218
+ "LEADS",
219
+ "COST",
220
+ "COST_PER_CLICK",
221
+ "CLICKS_BY_AD_NETWORK_TYPE",
222
+ "IMPRESSIONS_BY_AD_NETWORK_TYPE"
223
+ ])
224
+ ).max(1e3).optional(),
225
+ includePreviousPeriod: z.boolean().describe(
226
+ "When true, the response includes previousPeriodSummaryRow and trends showing percentage changes relative to the equivalent preceding period."
227
+ ).optional().nullable()
228
+ }).optional()
229
+ });
230
+ var QueryPerformanceMetricsResponse = z.object({
231
+ results: z.array(
232
+ z.object({
233
+ impressions: z.number().int().describe("Number of times the ad was shown.").optional(),
234
+ clicks: z.number().int().describe("Number of clicks on the ad.").optional(),
235
+ ctr: z.number().describe(
236
+ "Click-through rate expressed as a decimal, for example 0.05 for 5%."
237
+ ).optional(),
238
+ date: z.string().describe("Date of this metric row, in YYYY-MM-DD format.").optional(),
239
+ campaignResourceName: z.string().describe(
240
+ "Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`."
241
+ ).optional(),
242
+ phoneCalls: z.number().int().describe("Number of phone calls initiated through the ad.").optional(),
243
+ leads: z.number().int().describe("Number of leads generated by the campaign.").optional(),
244
+ cost: z.number().describe(
245
+ "Total amount spent in the account's currency. Already converted from micros."
246
+ ).optional(),
247
+ clicksByAdNetworkType: z.object({
248
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
249
+ other: z.number().int().describe(
250
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
251
+ ).optional(),
252
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
253
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
254
+ discover: z.number().int().describe(
255
+ "Count of the metric attributed to Google Discover placements."
256
+ ).optional(),
257
+ display: z.number().int().describe(
258
+ "Count of the metric attributed to the Google Display Network."
259
+ ).optional(),
260
+ searchPartners: z.number().int().describe(
261
+ "Count of the metric attributed to Google Search partner sites."
262
+ ).optional()
263
+ }).describe(
264
+ "Click count broken down by the ad network that served the ad."
265
+ ).optional(),
266
+ impressionsByAdNetworkType: z.object({
267
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
268
+ other: z.number().int().describe(
269
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
270
+ ).optional(),
271
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
272
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
273
+ discover: z.number().int().describe(
274
+ "Count of the metric attributed to Google Discover placements."
275
+ ).optional(),
276
+ display: z.number().int().describe(
277
+ "Count of the metric attributed to the Google Display Network."
278
+ ).optional(),
279
+ searchPartners: z.number().int().describe(
280
+ "Count of the metric attributed to Google Search partner sites."
281
+ ).optional()
282
+ }).describe(
283
+ "Impression count broken down by the ad network that served the ad."
284
+ ).optional()
285
+ })
286
+ ).max(1e3).optional(),
287
+ summaryRow: z.object({
288
+ impressions: z.number().int().describe("Number of times the ad was shown.").optional(),
289
+ clicks: z.number().int().describe("Number of clicks on the ad.").optional(),
290
+ ctr: z.number().describe(
291
+ "Click-through rate expressed as a decimal, for example 0.05 for 5%."
292
+ ).optional(),
293
+ date: z.string().describe("Date of this metric row, in YYYY-MM-DD format.").optional(),
294
+ campaignResourceName: z.string().describe(
295
+ "Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`."
296
+ ).optional(),
297
+ phoneCalls: z.number().int().describe("Number of phone calls initiated through the ad.").optional(),
298
+ leads: z.number().int().describe("Number of leads generated by the campaign.").optional(),
299
+ cost: z.number().describe(
300
+ "Total amount spent in the account's currency. Already converted from micros."
301
+ ).optional(),
302
+ clicksByAdNetworkType: z.object({
303
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
304
+ other: z.number().int().describe(
305
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
306
+ ).optional(),
307
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
308
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
309
+ discover: z.number().int().describe(
310
+ "Count of the metric attributed to Google Discover placements."
311
+ ).optional(),
312
+ display: z.number().int().describe(
313
+ "Count of the metric attributed to the Google Display Network."
314
+ ).optional(),
315
+ searchPartners: z.number().int().describe(
316
+ "Count of the metric attributed to Google Search partner sites."
317
+ ).optional()
318
+ }).describe(
319
+ "Click count broken down by the ad network that served the ad."
320
+ ).optional(),
321
+ impressionsByAdNetworkType: z.object({
322
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
323
+ other: z.number().int().describe(
324
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
325
+ ).optional(),
326
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
327
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
328
+ discover: z.number().int().describe(
329
+ "Count of the metric attributed to Google Discover placements."
330
+ ).optional(),
331
+ display: z.number().int().describe(
332
+ "Count of the metric attributed to the Google Display Network."
333
+ ).optional(),
334
+ searchPartners: z.number().int().describe(
335
+ "Count of the metric attributed to Google Search partner sites."
336
+ ).optional()
337
+ }).describe(
338
+ "Impression count broken down by the ad network that served the ad."
339
+ ).optional()
340
+ }).describe("Aggregated totals across all result rows.").optional(),
341
+ previousPeriodSummaryRow: z.object({
342
+ impressions: z.number().int().describe("Number of times the ad was shown.").optional(),
343
+ clicks: z.number().int().describe("Number of clicks on the ad.").optional(),
344
+ ctr: z.number().describe(
345
+ "Click-through rate expressed as a decimal, for example 0.05 for 5%."
346
+ ).optional(),
347
+ date: z.string().describe("Date of this metric row, in YYYY-MM-DD format.").optional(),
348
+ campaignResourceName: z.string().describe(
349
+ "Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`."
350
+ ).optional(),
351
+ phoneCalls: z.number().int().describe("Number of phone calls initiated through the ad.").optional(),
352
+ leads: z.number().int().describe("Number of leads generated by the campaign.").optional(),
353
+ cost: z.number().describe(
354
+ "Total amount spent in the account's currency. Already converted from micros."
355
+ ).optional(),
356
+ clicksByAdNetworkType: z.object({
357
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
358
+ other: z.number().int().describe(
359
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
360
+ ).optional(),
361
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
362
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
363
+ discover: z.number().int().describe(
364
+ "Count of the metric attributed to Google Discover placements."
365
+ ).optional(),
366
+ display: z.number().int().describe(
367
+ "Count of the metric attributed to the Google Display Network."
368
+ ).optional(),
369
+ searchPartners: z.number().int().describe(
370
+ "Count of the metric attributed to Google Search partner sites."
371
+ ).optional()
372
+ }).describe(
373
+ "Click count broken down by the ad network that served the ad."
374
+ ).optional(),
375
+ impressionsByAdNetworkType: z.object({
376
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
377
+ other: z.number().int().describe(
378
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
379
+ ).optional(),
380
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
381
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
382
+ discover: z.number().int().describe(
383
+ "Count of the metric attributed to Google Discover placements."
384
+ ).optional(),
385
+ display: z.number().int().describe(
386
+ "Count of the metric attributed to the Google Display Network."
387
+ ).optional(),
388
+ searchPartners: z.number().int().describe(
389
+ "Count of the metric attributed to Google Search partner sites."
390
+ ).optional()
391
+ }).describe(
392
+ "Impression count broken down by the ad network that served the ad."
393
+ ).optional()
394
+ }).describe(
395
+ "Aggregated totals for the equivalent preceding period. Only present when includePreviousPeriod was true."
396
+ ).optional(),
397
+ trends: z.object({
398
+ impressions: z.number().describe(
399
+ "Impressions change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease."
400
+ ).optional().nullable(),
401
+ clicks: z.number().describe(
402
+ "Clicks change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease."
403
+ ).optional().nullable(),
404
+ ctr: z.number().describe(
405
+ "CTR change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease."
406
+ ).optional().nullable(),
407
+ phoneCalls: z.number().describe(
408
+ "Phone calls change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease."
409
+ ).optional().nullable(),
410
+ leads: z.number().describe(
411
+ "Leads change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease."
412
+ ).optional().nullable(),
413
+ cost: z.number().describe(
414
+ "Cost change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease."
415
+ ).optional().nullable()
416
+ }).describe(
417
+ "Decimal percentage changes between the current and previous period summary rows. Only present when includePreviousPeriod was true."
418
+ ).optional()
419
+ });
420
+ var QueryConversionMetricsRequest = z.object({
421
+ campaignId: z.string().describe("Wix internal campaign ID (GUID) of the campaign to query.").regex(
422
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
423
+ "Must be a valid GUID"
424
+ ),
425
+ options: z.object({
426
+ dateRange: z.intersection(
427
+ z.object({}),
428
+ z.xor([
429
+ z.object({
430
+ custom: z.never().optional(),
431
+ predefined: z.never().optional()
432
+ }),
433
+ z.object({
434
+ predefined: z.never().optional(),
435
+ custom: z.object({
436
+ from: z.string().describe("Date in format YYYY-MM-DD").max(20).optional(),
437
+ to: z.string().describe("Date in format YYYY-MM-DD").max(20).optional()
438
+ }).describe("Custom date range")
439
+ }),
440
+ z.object({
441
+ custom: z.never().optional(),
442
+ predefined: z.enum([
443
+ "UNSPECIFIED",
444
+ "TODAY",
445
+ "YESTERDAY",
446
+ "LAST_7_DAYS",
447
+ "LAST_BUSINESS_WEEK",
448
+ "THIS_MONTH",
449
+ "LAST_MONTH",
450
+ "LAST_14_DAYS",
451
+ "LAST_30_DAYS",
452
+ "THIS_WEEK_SUN_TODAY",
453
+ "THIS_WEEK_MON_TODAY",
454
+ "LAST_WEEK_SUN_SAT",
455
+ "LAST_WEEK_MON_SUN",
456
+ "LIFETIME"
457
+ ]).describe("Predefined date range")
458
+ })
459
+ ])
460
+ ).describe("Date range to query. Required.")
461
+ })
462
+ });
463
+ var QueryConversionMetricsResponse = z.object({
464
+ summaryRow: z.object({
465
+ orders: z.number().int().describe("Orders / Sales").optional(),
466
+ revenue: z.number().describe("Revenue").optional().nullable(),
467
+ date: z.string().describe("Date").optional().nullable(),
468
+ leads: z.number().int().describe("Leads").optional(),
469
+ cpl: z.number().describe(
470
+ "Cost per lead. Total spend on camapign on that period / Leads. If leads = 0 or spend = 0 then undefined"
471
+ ).optional().nullable(),
472
+ leadsConversionRate: z.number().describe(
473
+ "Conversion rate. Leads / Clicks. If leads = 0 or clicks = 0 then undefined"
474
+ ).optional().nullable(),
475
+ cpp: z.number().describe(
476
+ "Cost per purchase. Total spend on camapign on that period / Orders(Sales), If orders = 0 or spend = 0 then undefined"
477
+ ).optional().nullable(),
478
+ roas: z.number().describe(
479
+ "Return on ad spend. Revenue / Total spend on camapign on that period, If revenue = 0 or spend = 0 then undefined"
480
+ ).optional().nullable()
481
+ }).describe(
482
+ "Aggregated conversion totals for the campaign over the requested date range."
483
+ ).optional()
484
+ });
485
+ var QueryShoppingPerformanceMetricsRequest = z.object({
486
+ campaignId: z.string().describe(
487
+ "Wix internal campaign ID (GUID) of the shopping or retail Performance Max campaign to query."
488
+ ),
489
+ options: z.object({
490
+ dateRange: z.intersection(
491
+ z.object({}),
492
+ z.xor([
493
+ z.object({
494
+ custom: z.never().optional(),
495
+ predefined: z.never().optional()
496
+ }),
497
+ z.object({
498
+ predefined: z.never().optional(),
499
+ custom: z.object({
500
+ from: z.string().describe("Date in format YYYY-MM-DD").max(20).optional(),
501
+ to: z.string().describe("Date in format YYYY-MM-DD").max(20).optional()
502
+ }).describe("Custom date range")
503
+ }),
504
+ z.object({
505
+ custom: z.never().optional(),
506
+ predefined: z.enum([
507
+ "UNSPECIFIED",
508
+ "TODAY",
509
+ "YESTERDAY",
510
+ "LAST_7_DAYS",
511
+ "LAST_BUSINESS_WEEK",
512
+ "THIS_MONTH",
513
+ "LAST_MONTH",
514
+ "LAST_14_DAYS",
515
+ "LAST_30_DAYS",
516
+ "THIS_WEEK_SUN_TODAY",
517
+ "THIS_WEEK_MON_TODAY",
518
+ "LAST_WEEK_SUN_SAT",
519
+ "LAST_WEEK_MON_SUN",
520
+ "LIFETIME"
521
+ ]).describe("Predefined date range")
522
+ })
523
+ ])
524
+ ).describe(
525
+ "Date range to query. When omitted, defaults to the campaign lifetime."
526
+ ).optional(),
527
+ sort: z.object({
528
+ field: z.enum([
529
+ "UNSPECIFIED",
530
+ "IMPRESSIONS",
531
+ "CLICKS",
532
+ "CTR",
533
+ "DATE",
534
+ "PHONE_CALLS",
535
+ "LEADS",
536
+ "COST",
537
+ "COST_PER_CLICK",
538
+ "CLICKS_BY_AD_NETWORK_TYPE",
539
+ "IMPRESSIONS_BY_AD_NETWORK_TYPE"
540
+ ]).optional(),
541
+ order: z.enum(["ASC", "DESC"]).optional()
542
+ }).describe(
543
+ "Sorting to apply. Defaults to descending by date when omitted."
544
+ ).optional(),
545
+ fields: z.array(
546
+ z.enum([
547
+ "UNSPECIFIED",
548
+ "IMPRESSIONS",
549
+ "CLICKS",
550
+ "CTR",
551
+ "DATE",
552
+ "PHONE_CALLS",
553
+ "LEADS",
554
+ "COST",
555
+ "COST_PER_CLICK",
556
+ "CLICKS_BY_AD_NETWORK_TYPE",
557
+ "IMPRESSIONS_BY_AD_NETWORK_TYPE"
558
+ ])
559
+ ).max(1e3).optional(),
560
+ paging: z.object({
561
+ nextPageToken: z.string().describe(
562
+ "Next page token can be used in subsequent requests to fetch the next page of results"
563
+ ).max(100).optional().nullable(),
564
+ pageSize: z.number().int().describe("Size of page to return").optional()
565
+ }).describe("Paging to apply.").optional(),
566
+ resultSetting: z.enum([
567
+ "UNSPECIFIED",
568
+ "SUMMARY_ONLY",
569
+ "RESULTS_ONLY",
570
+ "SUMMARY_AND_RESULTS"
571
+ ]).optional()
572
+ }).optional()
573
+ });
574
+ var QueryShoppingPerformanceMetricsResponse = z.object({
575
+ results: z.array(
576
+ z.object({
577
+ impressions: z.number().int().describe("Number of times the product ad was shown.").optional(),
578
+ clicks: z.number().int().describe("Number of clicks on the product ad.").optional(),
579
+ ctr: z.number().describe(
580
+ "Click-through rate expressed as a decimal, for example 0.05 for 5%."
581
+ ).optional(),
582
+ date: z.string().describe("Date of this metric row, in YYYY-MM-DD format.").optional(),
583
+ campaignResourceName: z.string().describe(
584
+ "Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`."
585
+ ).optional(),
586
+ cost: z.number().describe(
587
+ "Total amount spent on this product in the account's currency."
588
+ ).optional(),
589
+ productTitle: z.string().describe("Display title of the product.").optional(),
590
+ productImageUrl: z.string().describe("URL of the product's image.").optional(),
591
+ conversionRate: z.number().describe(
592
+ "Conversion rate for this product. Always returns 0 because conversions are not queried from Google Ads for shopping campaigns."
593
+ ).optional(),
594
+ conversions: z.number().describe(
595
+ "Number of conversions attributed to this product. Always returns 0 because conversions are not queried from Google Ads for shopping campaigns."
596
+ ).optional(),
597
+ costPerClick: z.number().describe("Average cost per click in the account's currency.").optional(),
598
+ productId: z.string().describe(
599
+ "Wix product ID resolved from the Google Ads product item ID."
600
+ ).optional()
601
+ })
602
+ ).max(1e4).optional(),
603
+ summaryRow: z.object({
604
+ totalConversions: z.number().int().describe(
605
+ "Total number of conversions or purchases across all products."
606
+ ).optional(),
607
+ totalRevenue: z.number().describe(
608
+ "Total revenue across all products in the account's currency."
609
+ ).optional(),
610
+ roas: z.number().describe("Return on ad spend (revenue divided by cost).").optional(),
611
+ moreResultsAvailable: z.boolean().describe(
612
+ "Whether additional results exist for the campaign regardless of the current date filters."
613
+ ).optional()
614
+ }).describe("Aggregated totals across all products.").optional(),
615
+ nextPageToken: z.string().describe(
616
+ "Token to pass in the next request to retrieve the following page of results."
617
+ ).optional().nullable()
618
+ });
619
+ var QuerySearchTermMetricsV2Request = z.object({
620
+ campaignId: z.string().describe("Wix internal campaign ID (GUID) of the campaign to query.").regex(
621
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
622
+ "Must be a valid GUID"
623
+ ),
624
+ options: z.object({
625
+ searchTermText: z.string().describe(
626
+ "Filters results to search terms whose text contains this string. When omitted, all search terms are returned."
627
+ ).max(1e3).optional().nullable(),
628
+ searchTermTextsFilter: z.object({
629
+ type: z.enum(["UNSPECIFIED", "MATCH", "NOT_MATCH"]).optional(),
630
+ searchTermTexts: z.array(z.string()).max(1e3).optional()
631
+ }).describe(
632
+ "Filters results to an explicit list of search term texts. When combined with searchTermText, only terms matching both conditions are returned."
633
+ ).optional(),
634
+ dateRange: z.intersection(
635
+ z.object({}),
636
+ z.xor([
637
+ z.object({
638
+ custom: z.never().optional(),
639
+ predefined: z.never().optional()
640
+ }),
641
+ z.object({
642
+ predefined: z.never().optional(),
643
+ custom: z.object({
644
+ from: z.string().describe("Date in format YYYY-MM-DD").max(20).optional(),
645
+ to: z.string().describe("Date in format YYYY-MM-DD").max(20).optional()
646
+ }).describe("Custom date range")
647
+ }),
648
+ z.object({
649
+ custom: z.never().optional(),
650
+ predefined: z.enum([
651
+ "UNSPECIFIED",
652
+ "TODAY",
653
+ "YESTERDAY",
654
+ "LAST_7_DAYS",
655
+ "LAST_BUSINESS_WEEK",
656
+ "THIS_MONTH",
657
+ "LAST_MONTH",
658
+ "LAST_14_DAYS",
659
+ "LAST_30_DAYS",
660
+ "THIS_WEEK_SUN_TODAY",
661
+ "THIS_WEEK_MON_TODAY",
662
+ "LAST_WEEK_SUN_SAT",
663
+ "LAST_WEEK_MON_SUN",
664
+ "LIFETIME"
665
+ ]).describe("Predefined date range")
666
+ })
667
+ ])
668
+ ).describe(
669
+ "Date range to query. When omitted, defaults to the campaign lifetime."
670
+ ).optional(),
671
+ sort: z.object({
672
+ field: z.enum([
673
+ "UNSPECIFIED",
674
+ "IMPRESSIONS",
675
+ "CLICKS",
676
+ "COST",
677
+ "SEARCH_TERM"
678
+ ]).optional(),
679
+ order: z.enum(["ASC", "DESC"]).optional()
680
+ }).describe(
681
+ "Sorting to apply. Defaults to descending by cost when omitted."
682
+ ).optional(),
683
+ paging: z.object({
684
+ nextPageToken: z.string().describe(
685
+ "Next page token can be used in subsequent requests to fetch the next page of results"
686
+ ).max(100).optional().nullable(),
687
+ pageSize: z.number().int().describe("Size of page to return").optional()
688
+ }).describe("Paging to apply.").optional()
689
+ }).optional()
690
+ });
691
+ var QuerySearchTermMetricsV2Response = z.object({
692
+ results: z.array(
693
+ z.object({
694
+ impressions: z.number().int().describe("Number of times the ad was shown for this search term.").optional(),
695
+ clicks: z.number().int().describe("Number of clicks on the ad for this search term.").optional(),
696
+ cost: z.number().describe(
697
+ "Total amount spent on ads triggered by this search term, in the account's currency."
698
+ ).optional(),
699
+ searchTerm: z.string().describe(
700
+ "The search term text entered by the user that triggered the ad."
701
+ ).max(1e3).optional().nullable()
702
+ })
703
+ ).max(1e3).optional(),
704
+ summaryRow: z.object({
705
+ impressions: z.number().int().describe("Number of times the ad was shown for this search term.").optional(),
706
+ clicks: z.number().int().describe("Number of clicks on the ad for this search term.").optional(),
707
+ cost: z.number().describe(
708
+ "Total amount spent on ads triggered by this search term, in the account's currency."
709
+ ).optional(),
710
+ searchTerm: z.string().describe(
711
+ "The search term text entered by the user that triggered the ad."
712
+ ).max(1e3).optional().nullable()
713
+ }).describe(
714
+ "Aggregated totals across all search terms, not just the current page."
715
+ ).optional(),
716
+ nextPageToken: z.string().describe(
717
+ "Token to pass in the next request to retrieve the following page of results."
718
+ ).max(1e3).optional().nullable()
719
+ });
720
+ var QueryAssetPerformanceMetricsRequest = z.object({
721
+ campaignId: z.string().describe(
722
+ "Wix internal campaign ID (GUID) of the Performance Max campaign to query."
723
+ ).regex(
724
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
725
+ "Must be a valid GUID"
726
+ ),
727
+ options: z.object({
728
+ dateRange: z.intersection(
729
+ z.object({}),
730
+ z.xor([
731
+ z.object({
732
+ custom: z.never().optional(),
733
+ predefined: z.never().optional()
734
+ }),
735
+ z.object({
736
+ predefined: z.never().optional(),
737
+ custom: z.object({
738
+ from: z.string().describe("Date in format YYYY-MM-DD").max(20).optional(),
739
+ to: z.string().describe("Date in format YYYY-MM-DD").max(20).optional()
740
+ }).describe("Custom date range")
741
+ }),
742
+ z.object({
743
+ custom: z.never().optional(),
744
+ predefined: z.enum([
745
+ "UNSPECIFIED",
746
+ "TODAY",
747
+ "YESTERDAY",
748
+ "LAST_7_DAYS",
749
+ "LAST_BUSINESS_WEEK",
750
+ "THIS_MONTH",
751
+ "LAST_MONTH",
752
+ "LAST_14_DAYS",
753
+ "LAST_30_DAYS",
754
+ "THIS_WEEK_SUN_TODAY",
755
+ "THIS_WEEK_MON_TODAY",
756
+ "LAST_WEEK_SUN_SAT",
757
+ "LAST_WEEK_MON_SUN",
758
+ "LIFETIME"
759
+ ]).describe("Predefined date range")
760
+ })
761
+ ])
762
+ ).describe(
763
+ "Date range to query. When omitted, defaults to the campaign lifetime."
764
+ ).optional(),
765
+ sort: z.object({
766
+ field: z.enum([
767
+ "UNSPECIFIED",
768
+ "IMPRESSIONS",
769
+ "CLICKS",
770
+ "CTR",
771
+ "COST",
772
+ "ASSET_SOURCE"
773
+ ]).optional(),
774
+ order: z.enum(["ASC", "DESC"]).optional()
775
+ }).describe(
776
+ "Sorting to apply. Defaults to descending by impressions when omitted."
777
+ ).optional(),
778
+ fields: z.array(
779
+ z.enum([
780
+ "UNSPECIFIED",
781
+ "IMPRESSIONS",
782
+ "CLICKS",
783
+ "CTR",
784
+ "COST",
785
+ "ASSET_SOURCE"
786
+ ])
787
+ ).max(1e3).optional(),
788
+ filter: z.object({
789
+ assetTypes: z.array(
790
+ z.enum([
791
+ "HEADLINE",
792
+ "LONG_HEADLINE",
793
+ "DESCRIPTION",
794
+ "BUSINESS_NAME",
795
+ "MARKETING_IMAGE",
796
+ "SQUARE_MARKETING_IMAGE",
797
+ "LOGO",
798
+ "PORTRAIT_MARKETING_IMAGE",
799
+ "LANDSCAPE_LOGO",
800
+ "CALL_TO_ACTION_SELECTION",
801
+ "YOUTUBE_VIDEO",
802
+ "MEDIA_BUNDLE"
803
+ ])
804
+ ).max(50).optional()
805
+ }).describe("Filters to narrow results to specific asset types.").optional()
806
+ }).optional()
807
+ });
808
+ var QueryAssetPerformanceMetricsResponse = z.object({
809
+ results: z.array(
810
+ z.object({
811
+ assetResourceName: z.string().describe("Google Ads resource name of the asset group asset.").max(1e3).optional().nullable(),
812
+ assetFieldType: z.enum([
813
+ "HEADLINE",
814
+ "LONG_HEADLINE",
815
+ "DESCRIPTION",
816
+ "BUSINESS_NAME",
817
+ "MARKETING_IMAGE",
818
+ "SQUARE_MARKETING_IMAGE",
819
+ "LOGO",
820
+ "PORTRAIT_MARKETING_IMAGE",
821
+ "LANDSCAPE_LOGO",
822
+ "CALL_TO_ACTION_SELECTION",
823
+ "YOUTUBE_VIDEO",
824
+ "MEDIA_BUNDLE"
825
+ ]).describe(
826
+ "Role the asset plays in the ad, for example HEADLINE, LONG_HEADLINE, DESCRIPTION, or MARKETING_IMAGE."
827
+ ).optional(),
828
+ assetContent: z.string().describe(
829
+ "Content of the asset. For text assets this is the text itself. For image assets this is the image URL."
830
+ ).max(1e3).optional().nullable(),
831
+ metrics: z.object({
832
+ impressions: z.number().int().describe("Number of times the ad was shown.").optional(),
833
+ clicks: z.number().int().describe("Number of clicks on the ad.").optional(),
834
+ ctr: z.number().describe(
835
+ "Click-through rate expressed as a decimal, for example 0.05 for 5%."
836
+ ).optional(),
837
+ date: z.string().describe("Date of this metric row, in YYYY-MM-DD format.").optional(),
838
+ campaignResourceName: z.string().describe(
839
+ "Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`."
840
+ ).optional(),
841
+ phoneCalls: z.number().int().describe("Number of phone calls initiated through the ad.").optional(),
842
+ leads: z.number().int().describe("Number of leads generated by the campaign.").optional(),
843
+ cost: z.number().describe(
844
+ "Total amount spent in the account's currency. Already converted from micros."
845
+ ).optional(),
846
+ clicksByAdNetworkType: z.object({
847
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
848
+ other: z.number().int().describe(
849
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
850
+ ).optional(),
851
+ gmail: z.number().int().describe(
852
+ "Count of the metric attributed to Gmail placements."
853
+ ).optional(),
854
+ youtube: z.number().int().describe(
855
+ "Count of the metric attributed to YouTube placements."
856
+ ).optional(),
857
+ discover: z.number().int().describe(
858
+ "Count of the metric attributed to Google Discover placements."
859
+ ).optional(),
860
+ display: z.number().int().describe(
861
+ "Count of the metric attributed to the Google Display Network."
862
+ ).optional(),
863
+ searchPartners: z.number().int().describe(
864
+ "Count of the metric attributed to Google Search partner sites."
865
+ ).optional()
866
+ }).describe(
867
+ "Click count broken down by the ad network that served the ad."
868
+ ).optional(),
869
+ impressionsByAdNetworkType: z.object({
870
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
871
+ other: z.number().int().describe(
872
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
873
+ ).optional(),
874
+ gmail: z.number().int().describe(
875
+ "Count of the metric attributed to Gmail placements."
876
+ ).optional(),
877
+ youtube: z.number().int().describe(
878
+ "Count of the metric attributed to YouTube placements."
879
+ ).optional(),
880
+ discover: z.number().int().describe(
881
+ "Count of the metric attributed to Google Discover placements."
882
+ ).optional(),
883
+ display: z.number().int().describe(
884
+ "Count of the metric attributed to the Google Display Network."
885
+ ).optional(),
886
+ searchPartners: z.number().int().describe(
887
+ "Count of the metric attributed to Google Search partner sites."
888
+ ).optional()
889
+ }).describe(
890
+ "Impression count broken down by the ad network that served the ad."
891
+ ).optional()
892
+ }).describe(
893
+ "Aggregated performance metrics (clicks, impressions, CTR, cost) for this asset."
894
+ ).optional(),
895
+ performanceLabel: z.enum([
896
+ "UNKNOWN",
897
+ "PENDING",
898
+ "DISAPPROVED",
899
+ "LEARNING",
900
+ "LOW",
901
+ "GOOD",
902
+ "EXCELLENT"
903
+ ]).describe(
904
+ "Google Ads performance label assigned to this asset based on its status and relative CTR."
905
+ ).optional(),
906
+ assetSource: z.enum(["UNKNOWN", "ADVERTISER", "AUTOMATICALLY_CREATED"]).describe(
907
+ "Whether the asset was created by the advertiser or automatically generated by Google Ads."
908
+ ).optional()
909
+ })
910
+ ).max(1e3).optional(),
911
+ summaryRow: z.object({
912
+ impressions: z.number().int().describe("Number of times the ad was shown.").optional(),
913
+ clicks: z.number().int().describe("Number of clicks on the ad.").optional(),
914
+ ctr: z.number().describe(
915
+ "Click-through rate expressed as a decimal, for example 0.05 for 5%."
916
+ ).optional(),
917
+ date: z.string().describe("Date of this metric row, in YYYY-MM-DD format.").optional(),
918
+ campaignResourceName: z.string().describe(
919
+ "Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`."
920
+ ).optional(),
921
+ phoneCalls: z.number().int().describe("Number of phone calls initiated through the ad.").optional(),
922
+ leads: z.number().int().describe("Number of leads generated by the campaign.").optional(),
923
+ cost: z.number().describe(
924
+ "Total amount spent in the account's currency. Already converted from micros."
925
+ ).optional(),
926
+ clicksByAdNetworkType: z.object({
927
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
928
+ other: z.number().int().describe(
929
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
930
+ ).optional(),
931
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
932
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
933
+ discover: z.number().int().describe(
934
+ "Count of the metric attributed to Google Discover placements."
935
+ ).optional(),
936
+ display: z.number().int().describe(
937
+ "Count of the metric attributed to the Google Display Network."
938
+ ).optional(),
939
+ searchPartners: z.number().int().describe(
940
+ "Count of the metric attributed to Google Search partner sites."
941
+ ).optional()
942
+ }).describe(
943
+ "Click count broken down by the ad network that served the ad."
944
+ ).optional(),
945
+ impressionsByAdNetworkType: z.object({
946
+ search: z.number().int().describe("Count of the metric attributed to Google Search.").optional(),
947
+ other: z.number().int().describe(
948
+ "Count of the metric attributed to ad networks not individually listed here.\nFor Smart campaigns this includes all non-search networks such as display, video, and partner networks.\nFor Performance Max campaigns this captures any networks beyond the ones explicitly broken out below."
949
+ ).optional(),
950
+ gmail: z.number().int().describe("Count of the metric attributed to Gmail placements.").optional(),
951
+ youtube: z.number().int().describe("Count of the metric attributed to YouTube placements.").optional(),
952
+ discover: z.number().int().describe(
953
+ "Count of the metric attributed to Google Discover placements."
954
+ ).optional(),
955
+ display: z.number().int().describe(
956
+ "Count of the metric attributed to the Google Display Network."
957
+ ).optional(),
958
+ searchPartners: z.number().int().describe(
959
+ "Count of the metric attributed to Google Search partner sites."
960
+ ).optional()
961
+ }).describe(
962
+ "Impression count broken down by the ad network that served the ad."
963
+ ).optional()
964
+ }).describe("Aggregated totals across all assets.").optional()
965
+ });
966
+ // Annotate the CommonJS export names for ESM import in node:
967
+ 0 && (module.exports = {
968
+ QueryAssetPerformanceMetricsRequest,
969
+ QueryAssetPerformanceMetricsResponse,
970
+ QueryConversionMetricsRequest,
971
+ QueryConversionMetricsResponse,
972
+ QueryPerformanceMetricsRequest,
973
+ QueryPerformanceMetricsResponse,
974
+ QuerySearchTermMetricsRequest,
975
+ QuerySearchTermMetricsResponse,
976
+ QuerySearchTermMetricsV2Request,
977
+ QuerySearchTermMetricsV2Response,
978
+ QueryShoppingPerformanceMetricsRequest,
979
+ QueryShoppingPerformanceMetricsResponse
980
+ });
981
+ //# sourceMappingURL=schemas.js.map