@googleapis/merchantapi 1.1.0 → 4.1.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 +45 -0
  2. package/accounts_v1beta.ts +675 -87
  3. package/build/accounts_v1beta.d.ts +344 -85
  4. package/build/accounts_v1beta.js +138 -1
  5. package/build/accounts_v1beta.js.map +1 -1
  6. package/build/conversions_v1beta.d.ts +15 -10
  7. package/build/conversions_v1beta.js.map +1 -1
  8. package/build/datasources_v1beta.d.ts +187 -19
  9. package/build/datasources_v1beta.js +39 -0
  10. package/build/datasources_v1beta.js.map +1 -1
  11. package/build/index.d.ts +5 -0
  12. package/build/index.js +4 -1
  13. package/build/index.js.map +1 -1
  14. package/build/inventories_v1beta.d.ts +13 -5
  15. package/build/inventories_v1beta.js.map +1 -1
  16. package/build/lfp_v1beta.d.ts +13 -5
  17. package/build/lfp_v1beta.js.map +1 -1
  18. package/build/notifications_v1beta.d.ts +14 -6
  19. package/build/notifications_v1beta.js.map +1 -1
  20. package/build/products_v1beta.d.ts +81 -16
  21. package/build/products_v1beta.js +32 -0
  22. package/build/products_v1beta.js.map +1 -1
  23. package/build/promotions_v1beta.d.ts +14 -6
  24. package/build/promotions_v1beta.js.map +1 -1
  25. package/build/quota_v1beta.d.ts +14 -6
  26. package/build/quota_v1beta.js.map +1 -1
  27. package/build/reports_v1beta.d.ts +13 -5
  28. package/build/reports_v1beta.js.map +1 -1
  29. package/build/reviews_v1beta.d.ts +786 -0
  30. package/build/reviews_v1beta.js +322 -0
  31. package/build/reviews_v1beta.js.map +1 -0
  32. package/conversions_v1beta.ts +15 -10
  33. package/datasources_v1beta.ts +267 -19
  34. package/index.ts +13 -1
  35. package/inventories_v1beta.ts +13 -5
  36. package/lfp_v1beta.ts +13 -5
  37. package/notifications_v1beta.ts +14 -6
  38. package/package.json +1 -1
  39. package/products_v1beta.ts +157 -16
  40. package/promotions_v1beta.ts +14 -6
  41. package/quota_v1beta.ts +14 -6
  42. package/reports_v1beta.ts +13 -5
  43. package/reviews_v1beta.ts +1465 -0
@@ -269,9 +269,9 @@ export namespace merchantapi_products_v1beta {
269
269
  */
270
270
  googleProductCategory?: string | null;
271
271
  /**
272
- * Global Trade Item Number ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the item.
272
+ * Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the item. You can provide up to 10 GTINs.
273
273
  */
274
- gtin?: string | null;
274
+ gtin?: string[] | null;
275
275
  /**
276
276
  * Set this value to false when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Defaults to true, if not provided.
277
277
  */
@@ -469,7 +469,11 @@ export namespace merchantapi_products_v1beta {
469
469
  */
470
470
  subscriptionCost?: Schema$SubscriptionCost;
471
471
  /**
472
- * The tax category of the product, used to configure detailed tax nexus in account-level tax settings.
472
+ * The list of sustainability incentive programs.
473
+ */
474
+ sustainabilityIncentives?: Schema$ProductSustainabilityIncentive[];
475
+ /**
476
+ * The tax category of the product.
473
477
  */
474
478
  taxCategory?: string | null;
475
479
  /**
@@ -739,6 +743,10 @@ export namespace merchantapi_products_v1beta {
739
743
  * The label of the loyalty program. This is an internal label that uniquely identifies the relationship between a merchant entity and a loyalty program entity. The label must be provided so that the system can associate the assets below (for example, price and points) with a merchant. The corresponding program must be linked to the merchant account.
740
744
  */
741
745
  programLabel?: string | null;
746
+ /**
747
+ * The label of the shipping benefit. If the field has value, this offer has loyalty shipping benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for the given loyalty tier.
748
+ */
749
+ shippingLabel?: string | null;
742
750
  /**
743
751
  * The label of the tier within the loyalty program. Must match one of the labels within the program.
744
752
  */
@@ -786,7 +794,7 @@ export namespace merchantapi_products_v1beta {
786
794
  */
787
795
  feedLabel?: string | null;
788
796
  /**
789
- * The name of the product. Format: `"{product.name=accounts/{account\}/products/{product\}\}"`
797
+ * The name of the product. Format: `"{product.name=accounts/{account\}/products/{product\}\}"` where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is "accounts/123/products/online~en~US~sku123"
790
798
  */
791
799
  name?: string | null;
792
800
  /**
@@ -807,19 +815,19 @@ export namespace merchantapi_products_v1beta {
807
815
  */
808
816
  export interface Schema$ProductChange {
809
817
  /**
810
- * The new value of the changed resource or attribute.
818
+ * The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
811
819
  */
812
820
  newValue?: string | null;
813
821
  /**
814
- * The old value of the changed resource or attribute.
822
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
815
823
  */
816
824
  oldValue?: string | null;
817
825
  /**
818
- * Countries that have the change (if applicable)
826
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
819
827
  */
820
828
  regionCode?: string | null;
821
829
  /**
822
- * Reporting contexts that have the change (if applicable)
830
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
823
831
  */
824
832
  reportingContext?: string | null;
825
833
  }
@@ -854,7 +862,7 @@ export namespace merchantapi_products_v1beta {
854
862
  value?: number | null;
855
863
  }
856
864
  /**
857
- * This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces. Product inputs, rules and supplemental data source data are combined to create the processed product. Required product input attributes to pass data validation checks are primarily defined in the [Products Data Specification](https://support.google.com/merchants/answer/188494). The following attributes are required: feedLabel, contentLanguage and offerId. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. All fields in the product input and its sub-messages match the English name of their corresponding attribute in the vertical spec with [some exceptions](https://support.google.com/merchants/answer/7052112).
865
+ * This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces. Product inputs, rules and supplemental data source data are combined to create the processed Product. Required product input attributes to pass data validation checks are primarily defined in the [Products Data Specification](https://support.google.com/merchants/answer/188494). The following attributes are required: feedLabel, contentLanguage and offerId. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. All fields in the product input and its sub-messages match the English name of their corresponding attribute in the vertical spec with [some exceptions](https://support.google.com/merchants/answer/7052112).
858
866
  */
859
867
  export interface Schema$ProductInput {
860
868
  /**
@@ -862,7 +870,7 @@ export namespace merchantapi_products_v1beta {
862
870
  */
863
871
  attributes?: Schema$Attributes;
864
872
  /**
865
- * Required. Immutable. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
873
+ * Immutable. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
866
874
  */
867
875
  channel?: string | null;
868
876
  /**
@@ -878,7 +886,7 @@ export namespace merchantapi_products_v1beta {
878
886
  */
879
887
  feedLabel?: string | null;
880
888
  /**
881
- * Identifier. The name of the product input. Format: `"{productinput.name=accounts/{account\}/productInputs/{productinput\}\}"`
889
+ * Identifier. The name of the product input. Format: `"{productinput.name=accounts/{account\}/productInputs/{productinput\}\}"` where the last section `productinput` consists of 4 parts: channel~content_language~feed_label~offer_id example for product input name is "accounts/123/productInputs/online~en~US~sku123"
882
890
  */
883
891
  name?: string | null;
884
892
  /**
@@ -935,12 +943,20 @@ export namespace merchantapi_products_v1beta {
935
943
  * A message to describe the change that happened to the product
936
944
  */
937
945
  changes?: Schema$ProductChange[];
946
+ /**
947
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
948
+ */
949
+ eventTime?: string | null;
950
+ /**
951
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
952
+ */
953
+ expirationTime?: string | null;
938
954
  /**
939
955
  * The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
940
956
  */
941
957
  managingAccount?: string | null;
942
958
  /**
943
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
959
+ * The product name. Format: `accounts/{account\}/products/{product\}`
944
960
  */
945
961
  resource?: string | null;
946
962
  /**
@@ -978,6 +994,23 @@ export namespace merchantapi_products_v1beta {
978
994
  */
979
995
  digitalSourceType?: string | null;
980
996
  }
997
+ /**
998
+ * Information regarding sustainability-related incentive programs such as rebates or tax relief.
999
+ */
1000
+ export interface Schema$ProductSustainabilityIncentive {
1001
+ /**
1002
+ * The fixed amount of the incentive.
1003
+ */
1004
+ amount?: Schema$Price;
1005
+ /**
1006
+ * The percentage of the sale price that the incentive is applied to.
1007
+ */
1008
+ percentage?: number | null;
1009
+ /**
1010
+ * Sustainability incentive program.
1011
+ */
1012
+ type?: string | null;
1013
+ }
981
1014
  /**
982
1015
  * The weight of the product.
983
1016
  */
@@ -1330,6 +1363,94 @@ export namespace merchantapi_products_v1beta {
1330
1363
  return createAPIRequest<Schema$ProductInput>(parameters);
1331
1364
  }
1332
1365
  }
1366
+
1367
+ /**
1368
+ * Updates the existing product input in your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.
1369
+ *
1370
+ * @param params - Parameters for request
1371
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1372
+ * @param callback - Optional callback that handles the response.
1373
+ * @returns A promise if used with async/await, or void if used with a callback.
1374
+ */
1375
+ patch(
1376
+ params: Params$Resource$Accounts$Productinputs$Patch,
1377
+ options: StreamMethodOptions
1378
+ ): GaxiosPromise<Readable>;
1379
+ patch(
1380
+ params?: Params$Resource$Accounts$Productinputs$Patch,
1381
+ options?: MethodOptions
1382
+ ): GaxiosPromise<Schema$ProductInput>;
1383
+ patch(
1384
+ params: Params$Resource$Accounts$Productinputs$Patch,
1385
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
1386
+ callback: BodyResponseCallback<Readable>
1387
+ ): void;
1388
+ patch(
1389
+ params: Params$Resource$Accounts$Productinputs$Patch,
1390
+ options: MethodOptions | BodyResponseCallback<Schema$ProductInput>,
1391
+ callback: BodyResponseCallback<Schema$ProductInput>
1392
+ ): void;
1393
+ patch(
1394
+ params: Params$Resource$Accounts$Productinputs$Patch,
1395
+ callback: BodyResponseCallback<Schema$ProductInput>
1396
+ ): void;
1397
+ patch(callback: BodyResponseCallback<Schema$ProductInput>): void;
1398
+ patch(
1399
+ paramsOrCallback?:
1400
+ | Params$Resource$Accounts$Productinputs$Patch
1401
+ | BodyResponseCallback<Schema$ProductInput>
1402
+ | BodyResponseCallback<Readable>,
1403
+ optionsOrCallback?:
1404
+ | MethodOptions
1405
+ | StreamMethodOptions
1406
+ | BodyResponseCallback<Schema$ProductInput>
1407
+ | BodyResponseCallback<Readable>,
1408
+ callback?:
1409
+ | BodyResponseCallback<Schema$ProductInput>
1410
+ | BodyResponseCallback<Readable>
1411
+ ): void | GaxiosPromise<Schema$ProductInput> | GaxiosPromise<Readable> {
1412
+ let params = (paramsOrCallback ||
1413
+ {}) as Params$Resource$Accounts$Productinputs$Patch;
1414
+ let options = (optionsOrCallback || {}) as MethodOptions;
1415
+
1416
+ if (typeof paramsOrCallback === 'function') {
1417
+ callback = paramsOrCallback;
1418
+ params = {} as Params$Resource$Accounts$Productinputs$Patch;
1419
+ options = {};
1420
+ }
1421
+
1422
+ if (typeof optionsOrCallback === 'function') {
1423
+ callback = optionsOrCallback;
1424
+ options = {};
1425
+ }
1426
+
1427
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1428
+ const parameters = {
1429
+ options: Object.assign(
1430
+ {
1431
+ url: (rootUrl + '/products/v1beta/{+name}').replace(
1432
+ /([^:]\/)\/+/g,
1433
+ '$1'
1434
+ ),
1435
+ method: 'PATCH',
1436
+ apiVersion: '',
1437
+ },
1438
+ options
1439
+ ),
1440
+ params,
1441
+ requiredParams: ['name'],
1442
+ pathParams: ['name'],
1443
+ context: this.context,
1444
+ };
1445
+ if (callback) {
1446
+ createAPIRequest<Schema$ProductInput>(
1447
+ parameters,
1448
+ callback as BodyResponseCallback<unknown>
1449
+ );
1450
+ } else {
1451
+ return createAPIRequest<Schema$ProductInput>(parameters);
1452
+ }
1453
+ }
1333
1454
  }
1334
1455
 
1335
1456
  export interface Params$Resource$Accounts$Productinputs$Delete
@@ -1339,14 +1460,14 @@ export namespace merchantapi_products_v1beta {
1339
1460
  */
1340
1461
  dataSource?: string;
1341
1462
  /**
1342
- * Required. The name of the product input resource to delete. Format: accounts/{account\}/productInputs/{product\}
1463
+ * Required. The name of the product input resource to delete. Format: accounts/{account\}/productInputs/{product\} where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is "accounts/123/productInputs/online~en~US~sku123"
1343
1464
  */
1344
1465
  name?: string;
1345
1466
  }
1346
1467
  export interface Params$Resource$Accounts$Productinputs$Insert
1347
1468
  extends StandardParameters {
1348
1469
  /**
1349
- * Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Format: `accounts/{account\}/dataSources/{datasource\}`.
1470
+ * Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`.
1350
1471
  */
1351
1472
  dataSource?: string;
1352
1473
  /**
@@ -1359,6 +1480,26 @@ export namespace merchantapi_products_v1beta {
1359
1480
  */
1360
1481
  requestBody?: Schema$ProductInput;
1361
1482
  }
1483
+ export interface Params$Resource$Accounts$Productinputs$Patch
1484
+ extends StandardParameters {
1485
+ /**
1486
+ * Required. The primary or supplemental product data source where `data_source` name identifies the product input to be updated. Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`.
1487
+ */
1488
+ dataSource?: string;
1489
+ /**
1490
+ * Identifier. The name of the product input. Format: `"{productinput.name=accounts/{account\}/productInputs/{productinput\}\}"` where the last section `productinput` consists of 4 parts: channel~content_language~feed_label~offer_id example for product input name is "accounts/123/productInputs/online~en~US~sku123"
1491
+ */
1492
+ name?: string;
1493
+ /**
1494
+ * Optional. The list of product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the `custom_attribute.` prefix. Providing special "*" value for full product replacement is not supported.
1495
+ */
1496
+ updateMask?: string;
1497
+
1498
+ /**
1499
+ * Request body metadata
1500
+ */
1501
+ requestBody?: Schema$ProductInput;
1502
+ }
1362
1503
 
1363
1504
  export class Resource$Accounts$Products {
1364
1505
  context: APIRequestContext;
@@ -1551,14 +1692,14 @@ export namespace merchantapi_products_v1beta {
1551
1692
  export interface Params$Resource$Accounts$Products$Get
1552
1693
  extends StandardParameters {
1553
1694
  /**
1554
- * Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}`
1695
+ * Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is "accounts/123/products/online~en~US~sku123"
1555
1696
  */
1556
1697
  name?: string;
1557
1698
  }
1558
1699
  export interface Params$Resource$Accounts$Products$List
1559
1700
  extends StandardParameters {
1560
1701
  /**
1561
- * The maximum number of products to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number of products will be returned.
1702
+ * The maximum number of products to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of products will be returned.
1562
1703
  */
1563
1704
  pageSize?: number;
1564
1705
  /**
@@ -377,19 +377,19 @@ export namespace merchantapi_promotions_v1beta {
377
377
  */
378
378
  export interface Schema$ProductChange {
379
379
  /**
380
- * The new value of the changed resource or attribute.
380
+ * The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
381
381
  */
382
382
  newValue?: string | null;
383
383
  /**
384
- * The old value of the changed resource or attribute.
384
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
385
385
  */
386
386
  oldValue?: string | null;
387
387
  /**
388
- * Countries that have the change (if applicable)
388
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
389
389
  */
390
390
  regionCode?: string | null;
391
391
  /**
392
- * Reporting contexts that have the change (if applicable)
392
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
393
393
  */
394
394
  reportingContext?: string | null;
395
395
  }
@@ -409,12 +409,20 @@ export namespace merchantapi_promotions_v1beta {
409
409
  * A message to describe the change that happened to the product
410
410
  */
411
411
  changes?: Schema$ProductChange[];
412
+ /**
413
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
414
+ */
415
+ eventTime?: string | null;
416
+ /**
417
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
418
+ */
419
+ expirationTime?: string | null;
412
420
  /**
413
421
  * The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
414
422
  */
415
423
  managingAccount?: string | null;
416
424
  /**
417
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
425
+ * The product name. Format: `accounts/{account\}/products/{product\}`
418
426
  */
419
427
  resource?: string | null;
420
428
  /**
@@ -799,7 +807,7 @@ export namespace merchantapi_promotions_v1beta {
799
807
  export interface Params$Resource$Accounts$Promotions$List
800
808
  extends StandardParameters {
801
809
  /**
802
- * Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. If unspecified, the maximum number of promotions will be returned.
810
+ * Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
803
811
  */
804
812
  pageSize?: number;
805
813
  /**
package/quota_v1beta.ts CHANGED
@@ -133,7 +133,7 @@ export namespace merchantapi_quota_v1beta {
133
133
  */
134
134
  nextPageToken?: string | null;
135
135
  /**
136
- * The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on quotaUsage.
136
+ * The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on quota_usage.
137
137
  */
138
138
  quotaGroups?: Schema$QuotaGroup[];
139
139
  }
@@ -163,19 +163,19 @@ export namespace merchantapi_quota_v1beta {
163
163
  */
164
164
  export interface Schema$ProductChange {
165
165
  /**
166
- * The new value of the changed resource or attribute.
166
+ * The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
167
167
  */
168
168
  newValue?: string | null;
169
169
  /**
170
- * The old value of the changed resource or attribute.
170
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
171
171
  */
172
172
  oldValue?: string | null;
173
173
  /**
174
- * Countries that have the change (if applicable)
174
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
175
175
  */
176
176
  regionCode?: string | null;
177
177
  /**
178
- * Reporting contexts that have the change (if applicable)
178
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
179
179
  */
180
180
  reportingContext?: string | null;
181
181
  }
@@ -195,12 +195,20 @@ export namespace merchantapi_quota_v1beta {
195
195
  * A message to describe the change that happened to the product
196
196
  */
197
197
  changes?: Schema$ProductChange[];
198
+ /**
199
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
200
+ */
201
+ eventTime?: string | null;
202
+ /**
203
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
204
+ */
205
+ expirationTime?: string | null;
198
206
  /**
199
207
  * The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
200
208
  */
201
209
  managingAccount?: string | null;
202
210
  /**
203
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
211
+ * The product name. Format: `accounts/{account\}/products/{product\}`
204
212
  */
205
213
  resource?: string | null;
206
214
  /**
package/reports_v1beta.ts CHANGED
@@ -651,19 +651,19 @@ export namespace merchantapi_reports_v1beta {
651
651
  */
652
652
  export interface Schema$ProductChange {
653
653
  /**
654
- * The new value of the changed resource or attribute.
654
+ * The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
655
655
  */
656
656
  newValue?: string | null;
657
657
  /**
658
- * The old value of the changed resource or attribute.
658
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
659
659
  */
660
660
  oldValue?: string | null;
661
661
  /**
662
- * Countries that have the change (if applicable)
662
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
663
663
  */
664
664
  regionCode?: string | null;
665
665
  /**
666
- * Reporting contexts that have the change (if applicable)
666
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
667
667
  */
668
668
  reportingContext?: string | null;
669
669
  }
@@ -800,12 +800,20 @@ export namespace merchantapi_reports_v1beta {
800
800
  * A message to describe the change that happened to the product
801
801
  */
802
802
  changes?: Schema$ProductChange[];
803
+ /**
804
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
805
+ */
806
+ eventTime?: string | null;
807
+ /**
808
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
809
+ */
810
+ expirationTime?: string | null;
803
811
  /**
804
812
  * The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
805
813
  */
806
814
  managingAccount?: string | null;
807
815
  /**
808
- * The product name. Format: `{product.name=accounts/{account\}/products/{product\}\}`
816
+ * The product name. Format: `accounts/{account\}/products/{product\}`
809
817
  */
810
818
  resource?: string | null;
811
819
  /**