@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,688 @@
1
+ import { QuerySearchTermMetricsRequest as QuerySearchTermMetricsRequest$1, QuerySearchTermMetricsResponse as QuerySearchTermMetricsResponse$1, QueryPerformanceMetricsRequest as QueryPerformanceMetricsRequest$1, QueryPerformanceMetricsResponse as QueryPerformanceMetricsResponse$1, QueryConversionMetricsRequest as QueryConversionMetricsRequest$1, QueryConversionMetricsResponse as QueryConversionMetricsResponse$1, QueryShoppingPerformanceMetricsRequest as QueryShoppingPerformanceMetricsRequest$1, QueryShoppingPerformanceMetricsResponse as QueryShoppingPerformanceMetricsResponse$1, QuerySearchTermMetricsV2Request as QuerySearchTermMetricsV2Request$1, QuerySearchTermMetricsV2Response as QuerySearchTermMetricsV2Response$1, QueryAssetPerformanceMetricsRequest as QueryAssetPerformanceMetricsRequest$1, QueryAssetPerformanceMetricsResponse as QueryAssetPerformanceMetricsResponse$1 } from './index.typings.js';
2
+ import '@wix/sdk-types';
3
+
4
+ interface PerformanceMetrics {
5
+ /**
6
+ * Number of times the ad was shown.
7
+ * @readonly
8
+ */
9
+ impressions?: number;
10
+ /**
11
+ * Number of clicks on the ad.
12
+ * @readonly
13
+ */
14
+ clicks?: number;
15
+ /**
16
+ * Click-through rate expressed as a decimal, for example 0.05 for 5%.
17
+ * @readonly
18
+ */
19
+ ctr?: number;
20
+ /**
21
+ * Date of this metric row, in YYYY-MM-DD format.
22
+ * @readonly
23
+ */
24
+ date?: string;
25
+ /**
26
+ * Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`.
27
+ * @readonly
28
+ */
29
+ campaignResourceName?: string;
30
+ /**
31
+ * Number of phone calls initiated through the ad.
32
+ * @readonly
33
+ */
34
+ phoneCalls?: number;
35
+ /** Number of leads generated by the campaign. */
36
+ leads?: number;
37
+ /** Total amount spent in the account's currency. Already converted from micros. */
38
+ cost?: number;
39
+ /** Click count broken down by the ad network that served the ad. */
40
+ clicksByAdNetworkType?: AdNetworkTypeSegmentation;
41
+ /** Impression count broken down by the ad network that served the ad. */
42
+ impressionsByAdNetworkType?: AdNetworkTypeSegmentation;
43
+ }
44
+ interface AdNetworkTypeSegmentation {
45
+ /** Count of the metric attributed to Google Search. */
46
+ search?: number;
47
+ /**
48
+ * Count of the metric attributed to ad networks not individually listed here.
49
+ * For Smart campaigns this includes all non-search networks such as display, video, and partner networks.
50
+ * For Performance Max campaigns this captures any networks beyond the ones explicitly broken out below.
51
+ */
52
+ other?: number;
53
+ /** Count of the metric attributed to Gmail placements. */
54
+ gmail?: number;
55
+ /** Count of the metric attributed to YouTube placements. */
56
+ youtube?: number;
57
+ /** Count of the metric attributed to Google Discover placements. */
58
+ discover?: number;
59
+ /** Count of the metric attributed to the Google Display Network. */
60
+ display?: number;
61
+ /** Count of the metric attributed to Google Search partner sites. */
62
+ searchPartners?: number;
63
+ }
64
+ interface QuerySearchTermMetricsRequest {
65
+ /**
66
+ * Google Ads resource name of the Smart campaign to query, in the format `customers/{customerId}/campaigns/{campaignId}`.
67
+ * @maxLength 1000
68
+ */
69
+ campaignResourceName: string;
70
+ /**
71
+ * Filters results to search terms whose text contains this string. When omitted, all search terms are returned.
72
+ * @maxLength 1000
73
+ */
74
+ searchTermText?: string | null;
75
+ /** Filters results to an explicit list of search term texts. When combined with searchTermText, only terms matching both conditions are returned. */
76
+ searchTermTextsFilter?: SearchTermTextsFilter;
77
+ /** Date range to query. When omitted, defaults to the campaign lifetime. */
78
+ dateRange?: DateRange;
79
+ /** Sorting to apply. Defaults to descending by cost when omitted. */
80
+ sort?: SearchTermSorting;
81
+ /** Paging to apply. */
82
+ paging?: Paging;
83
+ }
84
+ interface SearchTermTextsFilter {
85
+ /** Whether to include or exclude search terms that match the provided list. */
86
+ type?: SearchTermTextFilterTypeWithLiterals;
87
+ /**
88
+ * Exact search term texts to filter by.
89
+ * @maxSize 1000
90
+ * @maxLength 1000
91
+ */
92
+ searchTermTexts?: string[] | null;
93
+ }
94
+ declare enum SearchTermTextFilterType {
95
+ /** Unknown filter type. Do not use. */
96
+ UNSPECIFIED = "UNSPECIFIED",
97
+ /** Return only search terms that appear in the provided list. */
98
+ MATCH = "MATCH",
99
+ /** Return only search terms that do not appear in the provided list. */
100
+ NOT_MATCH = "NOT_MATCH"
101
+ }
102
+ /** @enumType */
103
+ type SearchTermTextFilterTypeWithLiterals = SearchTermTextFilterType | 'UNSPECIFIED' | 'MATCH' | 'NOT_MATCH';
104
+ interface DateRange extends DateRangeRangeOneOf {
105
+ /** Custom date range */
106
+ custom?: CustomDateRange;
107
+ /** Predefined date range */
108
+ predefined?: PredefinedDateRangeWithLiterals;
109
+ }
110
+ /** @oneof */
111
+ interface DateRangeRangeOneOf {
112
+ /** Custom date range */
113
+ custom?: CustomDateRange;
114
+ /** Predefined date range */
115
+ predefined?: PredefinedDateRangeWithLiterals;
116
+ }
117
+ interface CustomDateRange {
118
+ /**
119
+ * Date in format YYYY-MM-DD
120
+ * @maxLength 20
121
+ */
122
+ from?: string;
123
+ /**
124
+ * Date in format YYYY-MM-DD
125
+ * @maxLength 20
126
+ */
127
+ to?: string;
128
+ }
129
+ declare enum PredefinedDateRange {
130
+ /** Today only. */
131
+ UNSPECIFIED = "UNSPECIFIED",
132
+ /** Today only. */
133
+ TODAY = "TODAY",
134
+ /** Yesterday only. */
135
+ YESTERDAY = "YESTERDAY",
136
+ /** The last 7 days not including today. */
137
+ LAST_7_DAYS = "LAST_7_DAYS",
138
+ /** The 5 day business week, Monday through Friday, of the previous business week. */
139
+ LAST_BUSINESS_WEEK = "LAST_BUSINESS_WEEK",
140
+ /** All days in the current month. */
141
+ THIS_MONTH = "THIS_MONTH",
142
+ /** All days in the previous month */
143
+ LAST_MONTH = "LAST_MONTH",
144
+ /** The last 14 days not including today. */
145
+ LAST_14_DAYS = "LAST_14_DAYS",
146
+ /** The last 30 days not including today. */
147
+ LAST_30_DAYS = "LAST_30_DAYS",
148
+ /** The period between the previous Sunday and the current day. */
149
+ THIS_WEEK_SUN_TODAY = "THIS_WEEK_SUN_TODAY",
150
+ /** The period between the previous Monday and the current day. */
151
+ THIS_WEEK_MON_TODAY = "THIS_WEEK_MON_TODAY",
152
+ /** The 7-day period starting with the previous Monday. */
153
+ LAST_WEEK_SUN_SAT = "LAST_WEEK_SUN_SAT",
154
+ /** The 7-day period starting with the previous Sunday. */
155
+ LAST_WEEK_MON_SUN = "LAST_WEEK_MON_SUN",
156
+ /** Since beginning of campaign */
157
+ LIFETIME = "LIFETIME"
158
+ }
159
+ /** @enumType */
160
+ type PredefinedDateRangeWithLiterals = PredefinedDateRange | 'UNSPECIFIED' | 'TODAY' | 'YESTERDAY' | 'LAST_7_DAYS' | 'LAST_BUSINESS_WEEK' | 'THIS_MONTH' | 'LAST_MONTH' | 'LAST_14_DAYS' | 'LAST_30_DAYS' | 'THIS_WEEK_SUN_TODAY' | 'THIS_WEEK_MON_TODAY' | 'LAST_WEEK_SUN_SAT' | 'LAST_WEEK_MON_SUN' | 'LIFETIME';
161
+ interface SearchTermSorting {
162
+ /** Metric field to sort by. */
163
+ field?: SearchTermQueryFieldsWithLiterals;
164
+ /** Sort direction. */
165
+ order?: SortOrderWithLiterals;
166
+ }
167
+ declare enum SearchTermQueryFields {
168
+ /** Unknown field. Do not use. */
169
+ UNSPECIFIED = "UNSPECIFIED",
170
+ /** Number of times the ad was shown for this search term. */
171
+ IMPRESSIONS = "IMPRESSIONS",
172
+ /** Number of clicks on the ad for this search term. */
173
+ CLICKS = "CLICKS",
174
+ /** Total amount spent on ads triggered by this search term, in the account's currency. */
175
+ COST = "COST",
176
+ /** The search term text entered by the user. */
177
+ SEARCH_TERM = "SEARCH_TERM"
178
+ }
179
+ /** @enumType */
180
+ type SearchTermQueryFieldsWithLiterals = SearchTermQueryFields | 'UNSPECIFIED' | 'IMPRESSIONS' | 'CLICKS' | 'COST' | 'SEARCH_TERM';
181
+ declare enum SortOrder {
182
+ /** Ascending order */
183
+ ASC = "ASC",
184
+ /** Descending order */
185
+ DESC = "DESC"
186
+ }
187
+ /** @enumType */
188
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
189
+ interface Paging {
190
+ /**
191
+ * Next page token can be used in subsequent requests to fetch the next page of results
192
+ * @maxLength 100
193
+ */
194
+ nextPageToken?: string | null;
195
+ /** Size of page to return */
196
+ pageSize?: number;
197
+ }
198
+ interface QuerySearchTermMetricsResponse {
199
+ /**
200
+ * Per-search-term metric results for the requested page.
201
+ * @maxSize 1000
202
+ */
203
+ results?: SearchTermMetrics[];
204
+ /** Aggregated totals across all search terms, not just the current page. */
205
+ summaryRow?: SearchTermMetrics;
206
+ /**
207
+ * Token to pass in the next request to retrieve the following page of results.
208
+ * @maxLength 1000
209
+ */
210
+ nextPageToken?: string | null;
211
+ }
212
+ interface SearchTermMetrics {
213
+ /**
214
+ * Number of times the ad was shown for this search term.
215
+ * @readonly
216
+ */
217
+ impressions?: number;
218
+ /**
219
+ * Number of clicks on the ad for this search term.
220
+ * @readonly
221
+ */
222
+ clicks?: number;
223
+ /**
224
+ * Total amount spent on ads triggered by this search term, in the account's currency.
225
+ * @readonly
226
+ */
227
+ cost?: number;
228
+ /**
229
+ * The search term text entered by the user that triggered the ad.
230
+ * @readonly
231
+ * @maxLength 1000
232
+ */
233
+ searchTerm?: string | null;
234
+ }
235
+ interface QueryPerformanceMetricsRequest {
236
+ /**
237
+ * Google Ads resource name of the campaign to query, in the format `customers/{customerId}/campaigns/{campaignId}`.
238
+ * @maxLength 1000
239
+ */
240
+ campaignResourceName: string;
241
+ /** Date range to query. When omitted, defaults to the campaign lifetime. */
242
+ dateRange?: DateRange;
243
+ /** Sorting to apply. Defaults to descending by date when omitted. */
244
+ sort?: PerformanceSorting;
245
+ /**
246
+ * Metrics to include in each result row. When omitted, defaults to clicks, impressions, CTR, cost, phone calls, and date.
247
+ * @maxSize 1000
248
+ */
249
+ fields?: PerformanceQueryFieldsWithLiterals[];
250
+ /** When true, the response includes previousPeriodSummaryRow and trends showing percentage changes relative to the equivalent preceding period. */
251
+ includePreviousPeriod?: boolean | null;
252
+ }
253
+ interface PerformanceSorting {
254
+ /** Metric field to sort by. */
255
+ field?: PerformanceQueryFieldsWithLiterals;
256
+ /** Sort direction. */
257
+ order?: SortOrderWithLiterals;
258
+ }
259
+ declare enum PerformanceQueryFields {
260
+ /** Unknown field. Do not use. */
261
+ UNSPECIFIED = "UNSPECIFIED",
262
+ /** Number of times the ad was shown. */
263
+ IMPRESSIONS = "IMPRESSIONS",
264
+ /** Number of clicks on the ad. */
265
+ CLICKS = "CLICKS",
266
+ /** Click-through rate expressed as a decimal, for example 0.05 for 5%. */
267
+ CTR = "CTR",
268
+ /** The date of the metric row, in YYYY-MM-DD format. */
269
+ DATE = "DATE",
270
+ /** Number of phone calls initiated through the ad. */
271
+ PHONE_CALLS = "PHONE_CALLS",
272
+ /** Number of leads generated by the campaign. */
273
+ LEADS = "LEADS",
274
+ /** Total amount spent on the campaign in the account's currency. */
275
+ COST = "COST",
276
+ /** Average cost per click in the account's currency. */
277
+ COST_PER_CLICK = "COST_PER_CLICK",
278
+ /** Click count broken down by ad network type. */
279
+ CLICKS_BY_AD_NETWORK_TYPE = "CLICKS_BY_AD_NETWORK_TYPE",
280
+ /** Impression count broken down by ad network type. */
281
+ IMPRESSIONS_BY_AD_NETWORK_TYPE = "IMPRESSIONS_BY_AD_NETWORK_TYPE"
282
+ }
283
+ /** @enumType */
284
+ type PerformanceQueryFieldsWithLiterals = PerformanceQueryFields | 'UNSPECIFIED' | 'IMPRESSIONS' | 'CLICKS' | 'CTR' | 'DATE' | 'PHONE_CALLS' | 'LEADS' | 'COST' | 'COST_PER_CLICK' | 'CLICKS_BY_AD_NETWORK_TYPE' | 'IMPRESSIONS_BY_AD_NETWORK_TYPE';
285
+ interface QueryPerformanceMetricsResponse {
286
+ /**
287
+ * Daily performance metric rows for the requested date range.
288
+ * @maxSize 1000
289
+ */
290
+ results?: PerformanceMetrics[];
291
+ /** Aggregated totals across all result rows. */
292
+ summaryRow?: PerformanceMetrics;
293
+ /** Aggregated totals for the equivalent preceding period. Only present when includePreviousPeriod was true. */
294
+ previousPeriodSummaryRow?: PerformanceMetrics;
295
+ /** Decimal percentage changes between the current and previous period summary rows. Only present when includePreviousPeriod was true. */
296
+ trends?: PerformanceMetricsTrends;
297
+ }
298
+ interface PerformanceMetricsTrends {
299
+ /**
300
+ * Impressions change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease.
301
+ * @readonly
302
+ */
303
+ impressions?: number | null;
304
+ /**
305
+ * Clicks change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease.
306
+ * @readonly
307
+ */
308
+ clicks?: number | null;
309
+ /**
310
+ * CTR change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease.
311
+ * @readonly
312
+ */
313
+ ctr?: number | null;
314
+ /**
315
+ * Phone calls change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease.
316
+ * @readonly
317
+ */
318
+ phoneCalls?: number | null;
319
+ /** Leads change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease. */
320
+ leads?: number | null;
321
+ /** Cost change as a decimal percentage, for example 0.10 for a 10% increase or -0.05 for a 5% decrease. */
322
+ cost?: number | null;
323
+ }
324
+ interface QueryConversionMetricsRequest {
325
+ /**
326
+ * Wix internal campaign ID (GUID) of the campaign to query.
327
+ * @format GUID
328
+ */
329
+ campaignId: string;
330
+ /** Date range to query. Required. */
331
+ dateRange: DateRange;
332
+ }
333
+ interface QueryConversionMetricsResponse {
334
+ /** Aggregated conversion totals for the campaign over the requested date range. */
335
+ summaryRow?: ConversionMetrics;
336
+ }
337
+ interface ConversionMetrics {
338
+ /**
339
+ * Orders / Sales
340
+ * @readonly
341
+ */
342
+ orders?: number;
343
+ /**
344
+ * Revenue
345
+ * @readonly
346
+ */
347
+ revenue?: number | null;
348
+ /**
349
+ * Date
350
+ * @readonly
351
+ */
352
+ date?: string | null;
353
+ /**
354
+ * Leads
355
+ * @readonly
356
+ */
357
+ leads?: number;
358
+ /**
359
+ * Cost per lead. Total spend on camapign on that period / Leads. If leads = 0 or spend = 0 then undefined
360
+ * @readonly
361
+ */
362
+ cpl?: number | null;
363
+ /**
364
+ * Conversion rate. Leads / Clicks. If leads = 0 or clicks = 0 then undefined
365
+ * @readonly
366
+ */
367
+ leadsConversionRate?: number | null;
368
+ /**
369
+ * Cost per purchase. Total spend on camapign on that period / Orders(Sales), If orders = 0 or spend = 0 then undefined
370
+ * @readonly
371
+ */
372
+ cpp?: number | null;
373
+ /**
374
+ * Return on ad spend. Revenue / Total spend on camapign on that period, If revenue = 0 or spend = 0 then undefined
375
+ * @readonly
376
+ */
377
+ roas?: number | null;
378
+ }
379
+ interface QueryShoppingPerformanceMetricsRequest {
380
+ /** Wix internal campaign ID (GUID) of the shopping or retail Performance Max campaign to query. */
381
+ campaignId: string;
382
+ /** Date range to query. When omitted, defaults to the campaign lifetime. */
383
+ dateRange?: DateRange;
384
+ /** Sorting to apply. Defaults to descending by date when omitted. */
385
+ sort?: PerformanceSorting;
386
+ /**
387
+ * Metrics to include in each result row. When omitted, all available fields are returned.
388
+ * @maxSize 1000
389
+ */
390
+ fields?: PerformanceQueryFieldsWithLiterals[];
391
+ /** Paging to apply. */
392
+ paging?: Paging;
393
+ /** Controls whether the response contains per-product results, a summary row, or both. */
394
+ resultSetting?: ShoppingPerformanceResultSettingWithLiterals;
395
+ }
396
+ declare enum ShoppingPerformanceResultSetting {
397
+ /** Unknown result setting. Do not use. */
398
+ UNSPECIFIED = "UNSPECIFIED",
399
+ /** Return only the summaryRow. Per-product results are omitted. */
400
+ SUMMARY_ONLY = "SUMMARY_ONLY",
401
+ /** Return only the per-product result rows. The summaryRow is omitted. */
402
+ RESULTS_ONLY = "RESULTS_ONLY",
403
+ /** Return both per-product result rows and the summaryRow. */
404
+ SUMMARY_AND_RESULTS = "SUMMARY_AND_RESULTS"
405
+ }
406
+ /** @enumType */
407
+ type ShoppingPerformanceResultSettingWithLiterals = ShoppingPerformanceResultSetting | 'UNSPECIFIED' | 'SUMMARY_ONLY' | 'RESULTS_ONLY' | 'SUMMARY_AND_RESULTS';
408
+ interface QueryShoppingPerformanceMetricsResponse {
409
+ /**
410
+ * Per-product performance metric rows for the requested page.
411
+ * @maxSize 10000
412
+ */
413
+ results?: ShoppingPerformanceMetrics[];
414
+ /** Aggregated totals across all products. */
415
+ summaryRow?: ShoppingPerformanceMetricsSummary;
416
+ /** Token to pass in the next request to retrieve the following page of results. */
417
+ nextPageToken?: string | null;
418
+ }
419
+ interface ShoppingPerformanceMetrics {
420
+ /**
421
+ * Number of times the product ad was shown.
422
+ * @readonly
423
+ */
424
+ impressions?: number;
425
+ /**
426
+ * Number of clicks on the product ad.
427
+ * @readonly
428
+ */
429
+ clicks?: number;
430
+ /**
431
+ * Click-through rate expressed as a decimal, for example 0.05 for 5%.
432
+ * @readonly
433
+ */
434
+ ctr?: number;
435
+ /**
436
+ * Date of this metric row, in YYYY-MM-DD format.
437
+ * @readonly
438
+ */
439
+ date?: string;
440
+ /**
441
+ * Google Ads resource name of the campaign, in the format `customers/{customerId}/campaigns/{campaignId}`.
442
+ * @readonly
443
+ */
444
+ campaignResourceName?: string;
445
+ /**
446
+ * Total amount spent on this product in the account's currency.
447
+ * @readonly
448
+ */
449
+ cost?: number;
450
+ /**
451
+ * Display title of the product.
452
+ * @readonly
453
+ */
454
+ productTitle?: string;
455
+ /**
456
+ * URL of the product's image.
457
+ * @readonly
458
+ */
459
+ productImageUrl?: string;
460
+ /**
461
+ * Conversion rate for this product. Always returns 0 because conversions are not queried from Google Ads for shopping campaigns.
462
+ * @readonly
463
+ */
464
+ conversionRate?: number;
465
+ /**
466
+ * Number of conversions attributed to this product. Always returns 0 because conversions are not queried from Google Ads for shopping campaigns.
467
+ * @readonly
468
+ */
469
+ conversions?: number;
470
+ /**
471
+ * Average cost per click in the account's currency.
472
+ * @readonly
473
+ */
474
+ costPerClick?: number;
475
+ /**
476
+ * Wix product ID resolved from the Google Ads product item ID.
477
+ * @readonly
478
+ */
479
+ productId?: string;
480
+ }
481
+ interface ShoppingPerformanceMetricsSummary {
482
+ /**
483
+ * Total number of conversions or purchases across all products.
484
+ * @readonly
485
+ */
486
+ totalConversions?: number;
487
+ /**
488
+ * Total revenue across all products in the account's currency.
489
+ * @readonly
490
+ */
491
+ totalRevenue?: number;
492
+ /**
493
+ * Return on ad spend (revenue divided by cost).
494
+ * @readonly
495
+ */
496
+ roas?: number;
497
+ /**
498
+ * Whether additional results exist for the campaign regardless of the current date filters.
499
+ * @readonly
500
+ */
501
+ moreResultsAvailable?: boolean;
502
+ }
503
+ interface QuerySearchTermMetricsV2Request {
504
+ /**
505
+ * Wix internal campaign ID (GUID) of the campaign to query.
506
+ * @format GUID
507
+ */
508
+ campaignId: string;
509
+ /**
510
+ * Filters results to search terms whose text contains this string. When omitted, all search terms are returned.
511
+ * @maxLength 1000
512
+ */
513
+ searchTermText?: string | null;
514
+ /** Filters results to an explicit list of search term texts. When combined with searchTermText, only terms matching both conditions are returned. */
515
+ searchTermTextsFilter?: SearchTermTextsFilter;
516
+ /** Date range to query. When omitted, defaults to the campaign lifetime. */
517
+ dateRange?: DateRange;
518
+ /** Sorting to apply. Defaults to descending by cost when omitted. */
519
+ sort?: SearchTermSorting;
520
+ /** Paging to apply. */
521
+ paging?: Paging;
522
+ }
523
+ interface QuerySearchTermMetricsV2Response {
524
+ /**
525
+ * Per-search-term metric results for the requested page.
526
+ * @maxSize 1000
527
+ */
528
+ results?: SearchTermMetrics[];
529
+ /** Aggregated totals across all search terms, not just the current page. */
530
+ summaryRow?: SearchTermMetrics;
531
+ /**
532
+ * Token to pass in the next request to retrieve the following page of results.
533
+ * @maxLength 1000
534
+ */
535
+ nextPageToken?: string | null;
536
+ }
537
+ interface QueryAssetPerformanceMetricsRequest {
538
+ /**
539
+ * Wix internal campaign ID (GUID) of the Performance Max campaign to query.
540
+ * @format GUID
541
+ */
542
+ campaignId: string;
543
+ /** Date range to query. When omitted, defaults to the campaign lifetime. */
544
+ dateRange?: DateRange;
545
+ /** Sorting to apply. Defaults to descending by impressions when omitted. */
546
+ sort?: AssetPerformanceSorting;
547
+ /**
548
+ * Metrics to include in each result row. When omitted, all available fields are returned.
549
+ * @maxSize 1000
550
+ */
551
+ fields?: AssetPerformanceQueryFieldsWithLiterals[];
552
+ /** Filters to narrow results to specific asset types. */
553
+ filter?: AssetPerformanceMetricsFilter;
554
+ }
555
+ interface AssetPerformanceSorting {
556
+ /** Metric field to sort by. */
557
+ field?: AssetPerformanceQueryFieldsWithLiterals;
558
+ /** Sort direction. */
559
+ order?: SortOrderWithLiterals;
560
+ }
561
+ declare enum AssetPerformanceQueryFields {
562
+ /** Unknown field. Do not use. */
563
+ UNSPECIFIED = "UNSPECIFIED",
564
+ /** Number of times the ad containing this asset was shown. */
565
+ IMPRESSIONS = "IMPRESSIONS",
566
+ /** Number of clicks on the ad containing this asset. */
567
+ CLICKS = "CLICKS",
568
+ /** Click-through rate for the ad containing this asset, expressed as a decimal. */
569
+ CTR = "CTR",
570
+ /** Total amount spent on ads containing this asset, in the account's currency. */
571
+ COST = "COST",
572
+ /** Whether the asset was created by the advertiser or automatically generated by Google Ads. */
573
+ ASSET_SOURCE = "ASSET_SOURCE"
574
+ }
575
+ /** @enumType */
576
+ type AssetPerformanceQueryFieldsWithLiterals = AssetPerformanceQueryFields | 'UNSPECIFIED' | 'IMPRESSIONS' | 'CLICKS' | 'CTR' | 'COST' | 'ASSET_SOURCE';
577
+ interface AssetPerformanceMetricsFilter {
578
+ /**
579
+ * Asset field types to include in results. When omitted or empty, all asset types are returned.
580
+ * @maxSize 50
581
+ */
582
+ assetTypes?: AssetFieldTypeWithLiterals[];
583
+ }
584
+ declare enum AssetFieldType {
585
+ /** Short headline shown in ads. At least 3 required; up to 15 allowed. Maximum 30 characters. */
586
+ HEADLINE = "HEADLINE",
587
+ /** Longer headline used in certain ad formats. Exactly 1 required. Maximum 90 characters. */
588
+ LONG_HEADLINE = "LONG_HEADLINE",
589
+ /** Description shown below the headline. At least 2 required; up to 4 allowed. Maximum 90 characters. */
590
+ DESCRIPTION = "DESCRIPTION",
591
+ /** Business name shown in the ad. Exactly 1 required. Maximum 25 characters. */
592
+ BUSINESS_NAME = "BUSINESS_NAME",
593
+ /** Landscape marketing image with a 1.91:1 aspect ratio (e.g. 1200x628). Multiple images allowed. */
594
+ MARKETING_IMAGE = "MARKETING_IMAGE",
595
+ /** Square marketing image with a 1:1 aspect ratio (e.g. 1200x1200). Multiple images allowed. */
596
+ SQUARE_MARKETING_IMAGE = "SQUARE_MARKETING_IMAGE",
597
+ /** Square logo with a 1:1 aspect ratio (e.g. 1200x1200). A transparent background is recommended. */
598
+ LOGO = "LOGO",
599
+ /** Portrait marketing image with a 4:5 aspect ratio (e.g. 960x1200). Multiple images allowed. */
600
+ PORTRAIT_MARKETING_IMAGE = "PORTRAIT_MARKETING_IMAGE",
601
+ /** Landscape logo with a 4:1 aspect ratio (e.g. 1200x300). */
602
+ LANDSCAPE_LOGO = "LANDSCAPE_LOGO",
603
+ /** Call-to-action button label. Select a value from CallToActionType. Optional. */
604
+ CALL_TO_ACTION_SELECTION = "CALL_TO_ACTION_SELECTION",
605
+ /** YouTube video asset identified by an 11-character video ID. 1 to 5 videos recommended. */
606
+ YOUTUBE_VIDEO = "YOUTUBE_VIDEO",
607
+ /** HTML5 media bundle (ZIP file). Mutate-only in Google Ads. */
608
+ MEDIA_BUNDLE = "MEDIA_BUNDLE"
609
+ }
610
+ /** @enumType */
611
+ type AssetFieldTypeWithLiterals = AssetFieldType | 'HEADLINE' | 'LONG_HEADLINE' | 'DESCRIPTION' | 'BUSINESS_NAME' | 'MARKETING_IMAGE' | 'SQUARE_MARKETING_IMAGE' | 'LOGO' | 'PORTRAIT_MARKETING_IMAGE' | 'LANDSCAPE_LOGO' | 'CALL_TO_ACTION_SELECTION' | 'YOUTUBE_VIDEO' | 'MEDIA_BUNDLE';
612
+ interface QueryAssetPerformanceMetricsResponse {
613
+ /**
614
+ * Per-asset performance metric rows.
615
+ * @maxSize 1000
616
+ */
617
+ results?: AssetPerformanceMetrics[];
618
+ /** Aggregated totals across all assets. */
619
+ summaryRow?: PerformanceMetrics;
620
+ }
621
+ interface AssetPerformanceMetrics {
622
+ /**
623
+ * Google Ads resource name of the asset group asset.
624
+ * @readonly
625
+ * @maxLength 1000
626
+ */
627
+ assetResourceName?: string | null;
628
+ /** Role the asset plays in the ad, for example HEADLINE, LONG_HEADLINE, DESCRIPTION, or MARKETING_IMAGE. */
629
+ assetFieldType?: AssetFieldTypeWithLiterals;
630
+ /**
631
+ * Content of the asset. For text assets this is the text itself. For image assets this is the image URL.
632
+ * @maxLength 1000
633
+ */
634
+ assetContent?: string | null;
635
+ /** Aggregated performance metrics (clicks, impressions, CTR, cost) for this asset. */
636
+ metrics?: PerformanceMetrics;
637
+ /** Google Ads performance label assigned to this asset based on its status and relative CTR. */
638
+ performanceLabel?: AssetPerformanceLabelWithLiterals;
639
+ /** Whether the asset was created by the advertiser or automatically generated by Google Ads. */
640
+ assetSource?: AssetSourceWithLiterals;
641
+ }
642
+ declare enum AssetPerformanceLabel {
643
+ /** Unknown performance label. */
644
+ UNKNOWN = "UNKNOWN",
645
+ /** Asset has been submitted but Google Ads has not yet assigned a performance label. */
646
+ PENDING = "PENDING",
647
+ /** Asset was disapproved by Google Ads policy review. */
648
+ DISAPPROVED = "DISAPPROVED",
649
+ /** Asset is in the learning phase and does not yet have enough data for a label. */
650
+ LEARNING = "LEARNING",
651
+ /** Asset CTR is below the threshold for its asset type. */
652
+ LOW = "LOW",
653
+ /** Asset CTR is between the low and excellent thresholds for its asset type. */
654
+ GOOD = "GOOD",
655
+ /** Asset CTR is at or above the excellent threshold for its asset type. */
656
+ EXCELLENT = "EXCELLENT"
657
+ }
658
+ /** @enumType */
659
+ type AssetPerformanceLabelWithLiterals = AssetPerformanceLabel | 'UNKNOWN' | 'PENDING' | 'DISAPPROVED' | 'LEARNING' | 'LOW' | 'GOOD' | 'EXCELLENT';
660
+ declare enum AssetSource {
661
+ /** Unknown asset source. */
662
+ UNKNOWN = "UNKNOWN",
663
+ /** Asset was created and uploaded by the advertiser. */
664
+ ADVERTISER = "ADVERTISER",
665
+ /** Asset was automatically generated by Google Ads. */
666
+ AUTOMATICALLY_CREATED = "AUTOMATICALLY_CREATED"
667
+ }
668
+ /** @enumType */
669
+ type AssetSourceWithLiterals = AssetSource | 'UNKNOWN' | 'ADVERTISER' | 'AUTOMATICALLY_CREATED';
670
+
671
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
672
+ getUrl: (context: any) => string;
673
+ httpMethod: K;
674
+ path: string;
675
+ pathParams: M;
676
+ __requestType: T;
677
+ __originalRequestType: S;
678
+ __responseType: Q;
679
+ __originalResponseType: R;
680
+ };
681
+ declare function querySearchTermMetrics(): __PublicMethodMetaInfo<'POST', {}, QuerySearchTermMetricsRequest$1, QuerySearchTermMetricsRequest, QuerySearchTermMetricsResponse$1, QuerySearchTermMetricsResponse>;
682
+ declare function queryPerformanceMetrics(): __PublicMethodMetaInfo<'POST', {}, QueryPerformanceMetricsRequest$1, QueryPerformanceMetricsRequest, QueryPerformanceMetricsResponse$1, QueryPerformanceMetricsResponse>;
683
+ declare function queryConversionMetrics(): __PublicMethodMetaInfo<'POST', {}, QueryConversionMetricsRequest$1, QueryConversionMetricsRequest, QueryConversionMetricsResponse$1, QueryConversionMetricsResponse>;
684
+ declare function queryShoppingPerformanceMetrics(): __PublicMethodMetaInfo<'POST', {}, QueryShoppingPerformanceMetricsRequest$1, QueryShoppingPerformanceMetricsRequest, QueryShoppingPerformanceMetricsResponse$1, QueryShoppingPerformanceMetricsResponse>;
685
+ declare function querySearchTermMetricsV2(): __PublicMethodMetaInfo<'POST', {}, QuerySearchTermMetricsV2Request$1, QuerySearchTermMetricsV2Request, QuerySearchTermMetricsV2Response$1, QuerySearchTermMetricsV2Response>;
686
+ declare function queryAssetPerformanceMetrics(): __PublicMethodMetaInfo<'POST', {}, QueryAssetPerformanceMetricsRequest$1, QueryAssetPerformanceMetricsRequest, QueryAssetPerformanceMetricsResponse$1, QueryAssetPerformanceMetricsResponse>;
687
+
688
+ export { type AdNetworkTypeSegmentation as AdNetworkTypeSegmentationOriginal, AssetFieldType as AssetFieldTypeOriginal, type AssetFieldTypeWithLiterals as AssetFieldTypeWithLiteralsOriginal, AssetPerformanceLabel as AssetPerformanceLabelOriginal, type AssetPerformanceLabelWithLiterals as AssetPerformanceLabelWithLiteralsOriginal, type AssetPerformanceMetricsFilter as AssetPerformanceMetricsFilterOriginal, type AssetPerformanceMetrics as AssetPerformanceMetricsOriginal, AssetPerformanceQueryFields as AssetPerformanceQueryFieldsOriginal, type AssetPerformanceQueryFieldsWithLiterals as AssetPerformanceQueryFieldsWithLiteralsOriginal, type AssetPerformanceSorting as AssetPerformanceSortingOriginal, AssetSource as AssetSourceOriginal, type AssetSourceWithLiterals as AssetSourceWithLiteralsOriginal, type ConversionMetrics as ConversionMetricsOriginal, type CustomDateRange as CustomDateRangeOriginal, type DateRange as DateRangeOriginal, type DateRangeRangeOneOf as DateRangeRangeOneOfOriginal, type Paging as PagingOriginal, type PerformanceMetrics as PerformanceMetricsOriginal, type PerformanceMetricsTrends as PerformanceMetricsTrendsOriginal, PerformanceQueryFields as PerformanceQueryFieldsOriginal, type PerformanceQueryFieldsWithLiterals as PerformanceQueryFieldsWithLiteralsOriginal, type PerformanceSorting as PerformanceSortingOriginal, PredefinedDateRange as PredefinedDateRangeOriginal, type PredefinedDateRangeWithLiterals as PredefinedDateRangeWithLiteralsOriginal, type QueryAssetPerformanceMetricsRequest as QueryAssetPerformanceMetricsRequestOriginal, type QueryAssetPerformanceMetricsResponse as QueryAssetPerformanceMetricsResponseOriginal, type QueryConversionMetricsRequest as QueryConversionMetricsRequestOriginal, type QueryConversionMetricsResponse as QueryConversionMetricsResponseOriginal, type QueryPerformanceMetricsRequest as QueryPerformanceMetricsRequestOriginal, type QueryPerformanceMetricsResponse as QueryPerformanceMetricsResponseOriginal, type QuerySearchTermMetricsRequest as QuerySearchTermMetricsRequestOriginal, type QuerySearchTermMetricsResponse as QuerySearchTermMetricsResponseOriginal, type QuerySearchTermMetricsV2Request as QuerySearchTermMetricsV2RequestOriginal, type QuerySearchTermMetricsV2Response as QuerySearchTermMetricsV2ResponseOriginal, type QueryShoppingPerformanceMetricsRequest as QueryShoppingPerformanceMetricsRequestOriginal, type QueryShoppingPerformanceMetricsResponse as QueryShoppingPerformanceMetricsResponseOriginal, type SearchTermMetrics as SearchTermMetricsOriginal, SearchTermQueryFields as SearchTermQueryFieldsOriginal, type SearchTermQueryFieldsWithLiterals as SearchTermQueryFieldsWithLiteralsOriginal, type SearchTermSorting as SearchTermSortingOriginal, SearchTermTextFilterType as SearchTermTextFilterTypeOriginal, type SearchTermTextFilterTypeWithLiterals as SearchTermTextFilterTypeWithLiteralsOriginal, type SearchTermTextsFilter as SearchTermTextsFilterOriginal, type ShoppingPerformanceMetrics as ShoppingPerformanceMetricsOriginal, type ShoppingPerformanceMetricsSummary as ShoppingPerformanceMetricsSummaryOriginal, ShoppingPerformanceResultSetting as ShoppingPerformanceResultSettingOriginal, type ShoppingPerformanceResultSettingWithLiterals as ShoppingPerformanceResultSettingWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type __PublicMethodMetaInfo, queryAssetPerformanceMetrics, queryConversionMetrics, queryPerformanceMetrics, querySearchTermMetrics, querySearchTermMetricsV2, queryShoppingPerformanceMetrics };