@googleapis/merchantapi 17.3.0 → 17.4.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 (43) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/accounts_v1.ts +180 -12
  3. package/accounts_v1beta.ts +179 -12
  4. package/build/accounts_v1.d.ts +102 -12
  5. package/build/accounts_v1.js +32 -0
  6. package/build/accounts_v1.js.map +1 -1
  7. package/build/accounts_v1beta.d.ts +102 -12
  8. package/build/accounts_v1beta.js +32 -0
  9. package/build/accounts_v1beta.js.map +1 -1
  10. package/build/datasources_v1.d.ts +4 -4
  11. package/build/datasources_v1beta.d.ts +4 -4
  12. package/build/inventories_v1.d.ts +26 -14
  13. package/build/inventories_v1.js.map +1 -1
  14. package/build/inventories_v1beta.d.ts +26 -14
  15. package/build/inventories_v1beta.js.map +1 -1
  16. package/build/issueresolution_v1.d.ts +3 -3
  17. package/build/issueresolution_v1beta.d.ts +3 -3
  18. package/build/products_v1.d.ts +230 -11
  19. package/build/products_v1.js.map +1 -1
  20. package/build/products_v1beta.d.ts +40 -11
  21. package/build/products_v1beta.js.map +1 -1
  22. package/build/promotions_v1.d.ts +66 -22
  23. package/build/promotions_v1.js.map +1 -1
  24. package/build/promotions_v1beta.d.ts +66 -22
  25. package/build/promotions_v1beta.js.map +1 -1
  26. package/build/reports_v1.d.ts +39 -6
  27. package/build/reports_v1.js.map +1 -1
  28. package/build/reports_v1beta.d.ts +39 -6
  29. package/build/reports_v1beta.js.map +1 -1
  30. package/build/tsconfig.tsbuildinfo +1 -1
  31. package/datasources_v1.ts +4 -4
  32. package/datasources_v1beta.ts +4 -4
  33. package/inventories_v1.ts +26 -14
  34. package/inventories_v1beta.ts +26 -14
  35. package/issueresolution_v1.ts +3 -3
  36. package/issueresolution_v1beta.ts +3 -3
  37. package/package.json +1 -1
  38. package/products_v1.ts +230 -11
  39. package/products_v1beta.ts +40 -11
  40. package/promotions_v1.ts +66 -22
  41. package/promotions_v1beta.ts +66 -22
  42. package/reports_v1.ts +39 -6
  43. package/reports_v1beta.ts +39 -6
@@ -75,31 +75,43 @@ export declare namespace merchantapi_promotions_v1beta {
75
75
  */
76
76
  export interface Schema$Attributes {
77
77
  /**
78
- * Optional. Product filter by [brand exclusion](https://support.google.com/merchants/answer/13861679?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
78
+ * Optional. This field defines the audience a promotion will be visible to.
79
+ */
80
+ audience?: string | null;
81
+ /**
82
+ * Optional. Product filter by [brand exclusion](https://support.google.com/merchants/answer/13861679?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
79
83
  */
80
84
  brandExclusion?: string[] | null;
81
85
  /**
82
- * Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
86
+ * Optional. Product filter by brand for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
83
87
  */
84
88
  brandInclusion?: string[] | null;
85
89
  /**
86
- * Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355&sjid=17642868584668136159-NC) attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value [some attributes are required](https://support.google.com/merchants/answer/6393006?ref_topic=7322920).
90
+ * Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355) attribute to signal the type of promotion that you are running. Depending on type of the selected coupon value [some attributes are required](https://support.google.com/merchants/answer/6393006?ref_topic=7322920).
87
91
  */
88
92
  couponValueType?: string | null;
89
93
  /**
90
- * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion.
94
+ * Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` field is set to `CUSTOM`, this field must be set.
95
+ */
96
+ customRedemptionRestriction?: string | null;
97
+ /**
98
+ * Optional. Event applicability for this promotion. When present, this field indicates you are creating a [sales event](https://support.google.com/merchants/answer/15523289) and not a product promotion. Exactly one of `product_applicability` or `event_applicability` must be set.
99
+ */
100
+ eventApplicability?: string | null;
101
+ /**
102
+ * Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355) for the promotion.
91
103
  */
92
104
  freeGiftDescription?: string | null;
93
105
  /**
94
- * Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion.
106
+ * Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355) for the promotion.
95
107
  */
96
108
  freeGiftItemId?: string | null;
97
109
  /**
98
- * Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion.
110
+ * Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355) for the promotion.
99
111
  */
100
112
  freeGiftValue?: Schema$Price;
101
113
  /**
102
- * Optional. Generic redemption code for the promotion. To be used with the `offerType` field and must meet the [minimum requirements](https://support.google.com/merchants/answer/13837405?ref_topic=13773355&sjid=17642868584668136159-NC).
114
+ * Optional. Generic redemption code for the promotion. To be used with the `offerType` field and must meet the [minimum requirements](https://support.google.com/merchants/answer/13837405?ref_topic=13773355).
103
115
  */
104
116
  genericRedemptionCode?: string | null;
105
117
  /**
@@ -107,23 +119,27 @@ export declare namespace merchantapi_promotions_v1beta {
107
119
  */
108
120
  getThisQuantityDiscounted?: string | null;
109
121
  /**
110
- * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/13837298?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC). exclusion for the promotion.
122
+ * Optional. A list of Google product categories for this promotion. Set if `EventApplicability` is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on eligible values for product categories, checkout the `google_product_category` attribute in the [Promotion data specification](https://support.google.com/merchants/answer/2906014).
123
+ */
124
+ googleProductCategories?: string[] | null;
125
+ /**
126
+ * Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/13837298?ref_topic=13773355). The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355). exclusion for the promotion.
111
127
  */
112
128
  itemGroupIdExclusion?: string[] | null;
113
129
  /**
114
- * Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [product_applicability] attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
130
+ * Optional. Product filter by item group ID for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability [product_applicability] attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
115
131
  */
116
132
  itemGroupIdInclusion?: string[] | null;
117
133
  /**
118
- * Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
134
+ * Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
119
135
  */
120
136
  itemIdExclusion?: string[] | null;
121
137
  /**
122
- * Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
138
+ * Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
123
139
  */
124
140
  itemIdInclusion?: string[] | null;
125
141
  /**
126
- * Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion.
142
+ * Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355) for the promotion.
127
143
  */
128
144
  limitQuantity?: string | null;
129
145
  /**
@@ -131,20 +147,40 @@ export declare namespace merchantapi_promotions_v1beta {
131
147
  */
132
148
  limitValue?: Schema$Price;
133
149
  /**
134
- * Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion.
150
+ * Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355) for the promotion.
135
151
  */
136
152
  longTitle?: string | null;
137
153
  /**
138
- * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion.
154
+ * Optional. The maximum monetary discount a customer can receive for the promotion. This field is only supported with the `Percent off` coupon value type.
155
+ */
156
+ maxDiscountAmount?: Schema$Price;
157
+ /**
158
+ * Optional. Maximum money off amount for a promotion with `MONEY_OFF_RANGE` coupon value type. At least one of `min_money_off_amount` or `max_money_off_amount` must be present when the coupon value type is `MONEY_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned.
159
+ */
160
+ maxMoneyOffAmount?: Schema$Price;
161
+ /**
162
+ * Optional. Maximum percent off for a promotion with `PERCENT_OFF_RANGE` coupon value type. At least one of `min_percent_off` or `max_percent_off` must be present when the coupon value type is `PERCENT_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned.
163
+ */
164
+ maxPercentOff?: string | null;
165
+ /**
166
+ * Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355) for the promotion.
139
167
  */
140
168
  minimumPurchaseAmount?: Schema$Price;
141
169
  minimumPurchaseQuantity?: string | null;
142
170
  /**
143
- * Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355&sjid=17642868584668136159-NC) offered in the promotion.
171
+ * Optional. Minimum money off amount for a promotion with `MONEY_OFF_RANGE` coupon value type. At least one of `min_money_off_amount` or `max_money_off_amount` must be present when the coupon value type is `MONEY_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned.
172
+ */
173
+ minMoneyOffAmount?: Schema$Price;
174
+ /**
175
+ * Optional. Minimum percent off for a promotion with `PERCENT_OFF_RANGE` coupon value type. At least one of `min_percent_off` or `max_percent_off` must be present when the coupon value type is `PERCENT_OFF_RANGE`. If neither is provided an `INVALID_PROMOTION_MISSING_BENEFIT_OR_RESTRICTION` error is returned.
176
+ */
177
+ minPercentOff?: string | null;
178
+ /**
179
+ * Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355) offered in the promotion.
144
180
  */
145
181
  moneyOffAmount?: Schema$Price;
146
182
  /**
147
- * Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355&sjid=17642868584668136159-NC) of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion.
183
+ * Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355) of the promotion. Use this attribute to indicate whether or not customers need a coupon code to redeem your promotion.
148
184
  */
149
185
  offerType?: string | null;
150
186
  /**
@@ -152,19 +188,19 @@ export declare namespace merchantapi_promotions_v1beta {
152
188
  */
153
189
  percentOff?: string | null;
154
190
  /**
155
- * Required. Applicability of the promotion to either all products or [only specific products](https://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC).
191
+ * Optional. Applicability of the promotion to either all products or [only specific products](https://support.google.com/merchants/answer/6396257). Exactly one of `product_applicability` or `event_applicability` must be set.
156
192
  */
157
193
  productApplicability?: string | null;
158
194
  /**
159
- * Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
195
+ * Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355) for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
160
196
  */
161
197
  productTypeExclusion?: string[] | null;
162
198
  /**
163
- * Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355&sjid=17642868584668136159-NC).
199
+ * Optional. Product filter by product type for the promotion. The product filter attributes only applies when the products eligible for promotion product applicability `product_applicability` attribute is set to [specific_products](https://support.google.com/merchants/answer/13837299?ref_topic=13773355).
164
200
  */
165
201
  productTypeInclusion?: string[] | null;
166
202
  /**
167
- * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465?sjid=5155774230887277618-NC)
203
+ * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465)
168
204
  */
169
205
  promotionDestinations?: string[] | null;
170
206
  /**
@@ -179,16 +215,24 @@ export declare namespace merchantapi_promotions_v1beta {
179
215
  * Optional. URL to the page on the merchant's site where the promotion shows. Local Inventory ads promotions throw an error if no `promotion_url` is included. URL is used to confirm that the promotion is valid and can be redeemed.
180
216
  */
181
217
  promotionUrl?: string | null;
218
+ /**
219
+ * Optional. A restriction customers must meet before they can redeem the promotion.
220
+ */
221
+ redemptionRestriction?: string | null;
222
+ /**
223
+ * Optional. A list of [regions](https://support.google.com/merchants/answer/15406457?#howregionswork) where the promotion is applicable. Must be set if `audience` is set to `LOCATION`.
224
+ */
225
+ regionIdInclusion?: string[] | null;
182
226
  /**
183
227
  * Optional. Whether the promotion applies to [all stores, or only specified stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC). Local Inventory ads promotions throw an error if no store applicability is included. An `INVALID_ARGUMENT` error is thrown if `store_applicability` is set to `ALL_STORES` and `store_codes_inclusion` or `score_code_exclusion` is set to a value.
184
228
  */
185
229
  storeApplicability?: string | null;
186
230
  /**
187
- * Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355&sjid=17642868584668136159-NC).
231
+ * Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355).
188
232
  */
189
233
  storeCodesExclusion?: string[] | null;
190
234
  /**
191
- * Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355&sjid=17642868584668136159-NC) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355&sjid=17642868584668136159-NC). Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the [Local product inventory data specification](https://support.google.com/merchants/answer/3061342) for more information.
235
+ * Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355) for the promotion. The store filter attributes only applies when the `store_applicability` attribute is set to [specific_stores](https://support.google.com/merchants/answer/13857563?ref_topic=13773355). Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the [Local product inventory data specification](https://support.google.com/merchants/answer/3061342) for more information.
192
236
  */
193
237
  storeCodesInclusion?: string[] | null;
194
238
  }
@@ -1 +1 @@
1
- {"version":3,"file":"promotions_v1beta.js","sourceRoot":"","sources":["../promotions_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,6BAA6B,CA07B7C;AA17BD,WAAiB,6BAA6B;IAgE5C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QACtB,OAAO,CAAoB;QAC3B,QAAQ,CAAoB;QAE5B,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,i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EAA8C,CAAC;gBACxD,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE,CAAC;gBAC5C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;YACf,CAAC;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;YACzE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,yCAAyC,CAAC,CAAC,OAAO,CAChE,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,QAAQ,CAAC;gBAC1B,UAAU,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAA,oCAAgB,EAAgC,UAAU,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;KACF;IAjcY,0DAA4B,+BAicxC,CAAA;AAiCH,CAAC,EAt+BgB,6BAA6B,6CAA7B,6BAA6B,QAs+B7C"}
@@ -375,11 +375,11 @@ export declare namespace merchantapi_reports_v1 {
375
375
  */
376
376
  export interface Schema$ItemIssueSeverity {
377
377
  /**
378
- * Aggregated severity of the issue for all reporting contexts it affects. **This field can be used for filtering the results.**
378
+ * Aggregated severity of the issue for all reporting contexts it affects. Reporting contexts included in the computation of the aggregated severity can be restricted using a filter on the `reporting_context` field. **This field can be used for filtering the results.**
379
379
  */
380
380
  aggregatedSeverity?: string | null;
381
381
  /**
382
- * Issue severity per reporting context.
382
+ * Issue severity per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field.
383
383
  */
384
384
  severityPerReportingContext?: Schema$IssueSeverityPerReportingContext[];
385
385
  }
@@ -721,6 +721,10 @@ export declare namespace merchantapi_reports_v1 {
721
721
  * [Product type (5th level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) in merchant's own product taxonomy. Segment.
722
722
  */
723
723
  productTypeL5?: string | null;
724
+ /**
725
+ * Store type to which metrics apply. Can be `ONLINE_STORE` or `LOCAL_STORES`. Segment. For `LOCAL_STORES` store type, further segmentation by a specific store is not available.
726
+ */
727
+ storeType?: string | null;
724
728
  /**
725
729
  * Title of the product. Segment.
726
730
  */
@@ -772,11 +776,11 @@ export declare namespace merchantapi_reports_v1 {
772
776
  resourceType?: string | null;
773
777
  }
774
778
  /**
775
- * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as in Products sub-API but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query.
779
+ * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as a [Product resource in Products sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products) but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query.
776
780
  */
777
781
  export interface Schema$ProductView {
778
782
  /**
779
- * Aggregated status.
783
+ * Aggregated status across all reporting contexts. Reporting contexts included in the computation of the aggregated status can be restricted using a filter on the `reporting_context` field.
780
784
  */
781
785
  aggregatedReportingContextStatus?: string | null;
782
786
  /**
@@ -883,10 +887,18 @@ export declare namespace merchantapi_reports_v1 {
883
887
  * Product type (5th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406).
884
888
  */
885
889
  productTypeL5?: string | null;
890
+ /**
891
+ * Reporting context to restrict the query to. Restricts the reporting contexts returned in `status_per_reporting_context` and `item_issues`, and used to compute `aggregated_reporting_context_status`. **This field can only be used in the `WHERE` clause and cannot be selected in the `SELECT` clause.**
892
+ */
893
+ reportingContext?: string | null;
886
894
  /**
887
895
  * Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source.
888
896
  */
889
897
  shippingLabel?: string | null;
898
+ /**
899
+ * Detailed product status per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field. Equivalent to `ProductStatus.destination_statuses` in Products API. **This field cannot be used for sorting or filtering the results.**
900
+ */
901
+ statusPerReportingContext?: Schema$StatusPerReportingContext[];
890
902
  /**
891
903
  * Link to the processed image of the product, hosted on the Google infrastructure.
892
904
  */
@@ -946,7 +958,7 @@ export declare namespace merchantapi_reports_v1 {
946
958
  */
947
959
  export interface Schema$SearchRequest {
948
960
  /**
949
- * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 5000 are coerced to 5000.
961
+ * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 100,000 are coerced to 100,000.
950
962
  */
951
963
  pageSize?: number | null;
952
964
  /**
@@ -954,7 +966,7 @@ export declare namespace merchantapi_reports_v1 {
954
966
  */
955
967
  pageToken?: string | null;
956
968
  /**
957
- * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_{api_version\}/accounts.reports).
969
+ * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the Available fields.
958
970
  */
959
971
  query?: string | null;
960
972
  }
@@ -971,6 +983,27 @@ export declare namespace merchantapi_reports_v1 {
971
983
  */
972
984
  results?: Schema$ReportRow[];
973
985
  }
986
+ /**
987
+ * Status of the product for a specific reporting context. Equivalent to `DestinationStatus` in Products API.
988
+ */
989
+ export interface Schema$StatusPerReportingContext {
990
+ /**
991
+ * List of approved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
992
+ */
993
+ approvedCountries?: string[] | null;
994
+ /**
995
+ * List of disapproved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
996
+ */
997
+ disapprovedCountries?: string[] | null;
998
+ /**
999
+ * List of pending countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
1000
+ */
1001
+ pendingCountries?: string[] | null;
1002
+ /**
1003
+ * Reporting context the status applies to.
1004
+ */
1005
+ reportingContext?: string | null;
1006
+ }
974
1007
  export class Resource$Accounts {
975
1008
  context: APIRequestContext;
976
1009
  reports: Resource$Accounts$Reports;
@@ -1 +1 @@
1
- {"version":3,"file":"reports_v1.js","sourceRoot":"","sources":["../reports_v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,sBAAsB,CA8oCtC;AA9oCD,WAAiB,sBAAsB;IAgErC;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QACtB,OAAO,CAAoB;QAC3B,QAAQ,CAAoB;QAE5B,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;KACF;IAZY,kCAAW,cAYvB,CAAA;IAw4BD,MAA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AAC;YAC7D,CAAC;QACH,CAAC;KACF;IAzJY,gDAAyB,4BAyJrC,CAAA;AAaH,CAAC,EA/qCgB,sBAAsB,sCAAtB,sBAAsB,QA+qCtC"}
@@ -375,11 +375,11 @@ export declare namespace merchantapi_reports_v1beta {
375
375
  */
376
376
  export interface Schema$ItemIssueSeverity {
377
377
  /**
378
- * Aggregated severity of the issue for all reporting contexts it affects. **This field can be used for filtering the results.**
378
+ * Aggregated severity of the issue for all reporting contexts it affects. Reporting contexts included in the computation of the aggregated severity can be restricted using a filter on the `reporting_context` field. **This field can be used for filtering the results.**
379
379
  */
380
380
  aggregatedSeverity?: string | null;
381
381
  /**
382
- * Issue severity per reporting context.
382
+ * Issue severity per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field.
383
383
  */
384
384
  severityPerReportingContext?: Schema$IssueSeverityPerReportingContext[];
385
385
  }
@@ -721,6 +721,10 @@ export declare namespace merchantapi_reports_v1beta {
721
721
  * [Product type (5th level)](https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type) in merchant's own product taxonomy. Segment.
722
722
  */
723
723
  productTypeL5?: string | null;
724
+ /**
725
+ * Store type to which metrics apply. Can be `ONLINE_STORE` or `LOCAL_STORES`. Segment. For `LOCAL_STORES` store type, further segmentation by a specific store is not available.
726
+ */
727
+ storeType?: string | null;
724
728
  /**
725
729
  * Title of the product. Segment.
726
730
  */
@@ -772,11 +776,11 @@ export declare namespace merchantapi_reports_v1beta {
772
776
  resourceType?: string | null;
773
777
  }
774
778
  /**
775
- * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as in Products sub-API but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query.
779
+ * Fields available for query in `product_view` table. Products in the current inventory. Products in this table are the same as a [Product resource in Products sub-API](https://developers.google.com/merchant/api/reference/rest/products_v1/accounts.products) but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by `id` or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query.
776
780
  */
777
781
  export interface Schema$ProductView {
778
782
  /**
779
- * Aggregated status.
783
+ * Aggregated status across all reporting contexts. Reporting contexts included in the computation of the aggregated status can be restricted using a filter on the `reporting_context` field.
780
784
  */
781
785
  aggregatedReportingContextStatus?: string | null;
782
786
  /**
@@ -883,10 +887,18 @@ export declare namespace merchantapi_reports_v1beta {
883
887
  * Product type (5th level) in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324406).
884
888
  */
885
889
  productTypeL5?: string | null;
890
+ /**
891
+ * Reporting context to restrict the query to. Restricts the reporting contexts returned in `status_per_reporting_context` and `item_issues`, and used to compute `aggregated_reporting_context_status`. **This field can only be used in the `WHERE` clause and cannot be selected in the `SELECT` clause.**
892
+ */
893
+ reportingContext?: string | null;
886
894
  /**
887
895
  * Normalized [shipping label](https://support.google.com/merchants/answer/6324504) specified in the data source.
888
896
  */
889
897
  shippingLabel?: string | null;
898
+ /**
899
+ * Detailed product status per reporting context. Reporting contexts included in this list can be restricted using a filter on the `reporting_context` field. Equivalent to `ProductStatus.destination_statuses` in Products API. **This field cannot be used for sorting or filtering the results.**
900
+ */
901
+ statusPerReportingContext?: Schema$StatusPerReportingContext[];
890
902
  /**
891
903
  * Link to the processed image of the product, hosted on the Google infrastructure.
892
904
  */
@@ -946,7 +958,7 @@ export declare namespace merchantapi_reports_v1beta {
946
958
  */
947
959
  export interface Schema$SearchRequest {
948
960
  /**
949
- * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 5000 are coerced to 5000.
961
+ * Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 100,000 are coerced to 100,000.
950
962
  */
951
963
  pageSize?: number | null;
952
964
  /**
@@ -954,7 +966,7 @@ export declare namespace merchantapi_reports_v1beta {
954
966
  */
955
967
  pageToken?: string | null;
956
968
  /**
957
- * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_{api_version\}/accounts.reports).
969
+ * Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the Available fields.
958
970
  */
959
971
  query?: string | null;
960
972
  }
@@ -971,6 +983,27 @@ export declare namespace merchantapi_reports_v1beta {
971
983
  */
972
984
  results?: Schema$ReportRow[];
973
985
  }
986
+ /**
987
+ * Status of the product for a specific reporting context. Equivalent to `DestinationStatus` in Products API.
988
+ */
989
+ export interface Schema$StatusPerReportingContext {
990
+ /**
991
+ * List of approved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
992
+ */
993
+ approvedCountries?: string[] | null;
994
+ /**
995
+ * List of disapproved countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
996
+ */
997
+ disapprovedCountries?: string[] | null;
998
+ /**
999
+ * List of pending countries in the reporting context, represented in [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, for example, `US`.
1000
+ */
1001
+ pendingCountries?: string[] | null;
1002
+ /**
1003
+ * Reporting context the status applies to.
1004
+ */
1005
+ reportingContext?: string | null;
1006
+ }
974
1007
  export class Resource$Accounts {
975
1008
  context: APIRequestContext;
976
1009
  reports: Resource$Accounts$Reports;
@@ -1 +1 @@
1
- {"version":3,"file":"reports_v1beta.js","sourceRoot":"","sources":["../reports_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;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