@googleapis/merchantapi 4.1.0 → 5.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.
- package/CHANGELOG.md +16 -0
- package/accounts_v1beta.ts +1572 -557
- package/build/accounts_v1beta.d.ts +447 -80
- package/build/accounts_v1beta.js +309 -30
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +15 -12
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +3 -3
- package/build/inventories_v1beta.d.ts +1 -1
- package/build/lfp_v1beta.d.ts +121 -0
- package/build/lfp_v1beta.js +39 -0
- package/build/lfp_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +34 -13
- package/build/products_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +1 -1
- package/conversions_v1beta.ts +15 -12
- package/datasources_v1beta.ts +3 -3
- package/inventories_v1beta.ts +1 -1
- package/lfp_v1beta.ts +203 -0
- package/package.json +1 -1
- package/products_v1beta.ts +34 -13
- package/reports_v1beta.ts +1 -1
package/products_v1beta.ts
CHANGED
|
@@ -501,6 +501,23 @@ export namespace merchantapi_products_v1beta {
|
|
|
501
501
|
*/
|
|
502
502
|
virtualModelLink?: string | null;
|
|
503
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* Information regarding Automated Discounts.
|
|
506
|
+
*/
|
|
507
|
+
export interface Schema$AutomatedDiscounts {
|
|
508
|
+
/**
|
|
509
|
+
* The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.
|
|
510
|
+
*/
|
|
511
|
+
gadPrice?: Schema$Price;
|
|
512
|
+
/**
|
|
513
|
+
* The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.
|
|
514
|
+
*/
|
|
515
|
+
priorPrice?: Schema$Price;
|
|
516
|
+
/**
|
|
517
|
+
* The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.
|
|
518
|
+
*/
|
|
519
|
+
priorPriceProgressive?: Schema$Price;
|
|
520
|
+
}
|
|
504
521
|
/**
|
|
505
522
|
* Product [certification](https://support.google.com/merchants/answer/13528839), initially introduced for EU energy efficiency labeling compliance using the EU EPREL database.
|
|
506
523
|
*/
|
|
@@ -766,13 +783,17 @@ export namespace merchantapi_products_v1beta {
|
|
|
766
783
|
currencyCode?: string | null;
|
|
767
784
|
}
|
|
768
785
|
/**
|
|
769
|
-
* The processed product, built from multiple product inputs after applying rules and supplemental data sources. This processed product matches what is shown in your Merchant Center account
|
|
786
|
+
* The processed product, built from multiple product inputs after applying rules and supplemental data sources. This processed product matches what is shown in your Merchant Center account. Each product is built from exactly one primary data source product input, and multiple supplemental data source inputs. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved. All fields in the processed product and its sub-messages match the name of their corresponding attribute in the [Product data specification](https://support.google.com/merchants/answer/7052112) with some exceptions.
|
|
770
787
|
*/
|
|
771
788
|
export interface Schema$Product {
|
|
772
789
|
/**
|
|
773
790
|
* Output only. A list of product attributes.
|
|
774
791
|
*/
|
|
775
792
|
attributes?: Schema$Attributes;
|
|
793
|
+
/**
|
|
794
|
+
* Output only. The automated discounts information for the product.
|
|
795
|
+
*/
|
|
796
|
+
automatedDiscounts?: Schema$AutomatedDiscounts;
|
|
776
797
|
/**
|
|
777
798
|
* Output only. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
778
799
|
*/
|
|
@@ -794,7 +815,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
794
815
|
*/
|
|
795
816
|
feedLabel?: string | null;
|
|
796
817
|
/**
|
|
797
|
-
* The name of the product. Format: `
|
|
818
|
+
* The name of the product. 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`
|
|
798
819
|
*/
|
|
799
820
|
name?: string | null;
|
|
800
821
|
/**
|
|
@@ -862,7 +883,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
862
883
|
value?: number | null;
|
|
863
884
|
}
|
|
864
885
|
/**
|
|
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
|
|
886
|
+
* 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 [Products Data Specification](https://support.google.com/merchants/answer/188494) with [some exceptions](https://support.google.com/merchants/answer/7052112). The following reference documentation lists the field names in the **camelCase** casing style while the Products Data Specification lists the names in the **snake_case** casing style.
|
|
866
887
|
*/
|
|
867
888
|
export interface Schema$ProductInput {
|
|
868
889
|
/**
|
|
@@ -878,7 +899,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
878
899
|
*/
|
|
879
900
|
contentLanguage?: string | null;
|
|
880
901
|
/**
|
|
881
|
-
* Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API
|
|
902
|
+
* Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
|
|
882
903
|
*/
|
|
883
904
|
customAttributes?: Schema$CustomAttribute[];
|
|
884
905
|
/**
|
|
@@ -886,7 +907,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
886
907
|
*/
|
|
887
908
|
feedLabel?: string | null;
|
|
888
909
|
/**
|
|
889
|
-
* Identifier. The name of the product input. Format: `
|
|
910
|
+
* Identifier. The name of the product input. Format: `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`
|
|
890
911
|
*/
|
|
891
912
|
name?: string | null;
|
|
892
913
|
/**
|
|
@@ -894,11 +915,11 @@ export namespace merchantapi_products_v1beta {
|
|
|
894
915
|
*/
|
|
895
916
|
offerId?: string | null;
|
|
896
917
|
/**
|
|
897
|
-
* Output only. The name of the processed product. Format: `
|
|
918
|
+
* Output only. The name of the processed product. Format: `accounts/{account\}/products/{product\}`
|
|
898
919
|
*/
|
|
899
920
|
product?: string | null;
|
|
900
921
|
/**
|
|
901
|
-
* Optional. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing product. Re-insertion (for example, product refresh after 30 days) can be performed with the current `version_number`. Only supported for insertions into primary data sources. If the operation is prevented, the aborted exception will be thrown.
|
|
922
|
+
* Optional. Immutable. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing product. Re-insertion (for example, product refresh after 30 days) can be performed with the current `version_number`. Only supported for insertions into primary data sources. Do not set this field for updates. Do not set this field for insertions into supplemental data sources. If the operation is prevented, the aborted exception will be thrown.
|
|
902
923
|
*/
|
|
903
924
|
versionNumber?: string | null;
|
|
904
925
|
}
|
|
@@ -1460,7 +1481,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1460
1481
|
*/
|
|
1461
1482
|
dataSource?: string;
|
|
1462
1483
|
/**
|
|
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
|
|
1484
|
+
* 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`.
|
|
1464
1485
|
*/
|
|
1465
1486
|
name?: string;
|
|
1466
1487
|
}
|
|
@@ -1471,7 +1492,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1471
1492
|
*/
|
|
1472
1493
|
dataSource?: string;
|
|
1473
1494
|
/**
|
|
1474
|
-
* Required. The account where this product will be inserted. Format: accounts/{account\}
|
|
1495
|
+
* Required. The account where this product will be inserted. Format: `accounts/{account\}`
|
|
1475
1496
|
*/
|
|
1476
1497
|
parent?: string;
|
|
1477
1498
|
|
|
@@ -1487,7 +1508,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1487
1508
|
*/
|
|
1488
1509
|
dataSource?: string;
|
|
1489
1510
|
/**
|
|
1490
|
-
* Identifier. The name of the product input. Format: `
|
|
1511
|
+
* Identifier. The name of the product input. Format: `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
1512
|
*/
|
|
1492
1513
|
name?: string;
|
|
1493
1514
|
/**
|
|
@@ -1596,7 +1617,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1596
1617
|
}
|
|
1597
1618
|
|
|
1598
1619
|
/**
|
|
1599
|
-
* Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by pageSize
|
|
1620
|
+
* Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by `pageSize`. Rely on `pageToken` to determine if there are more items to be requested. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
|
|
1600
1621
|
*
|
|
1601
1622
|
* @param params - Parameters for request
|
|
1602
1623
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1692,7 +1713,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1692
1713
|
export interface Params$Resource$Accounts$Products$Get
|
|
1693
1714
|
extends StandardParameters {
|
|
1694
1715
|
/**
|
|
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
|
|
1716
|
+
* 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`
|
|
1696
1717
|
*/
|
|
1697
1718
|
name?: string;
|
|
1698
1719
|
}
|
|
@@ -1707,7 +1728,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1707
1728
|
*/
|
|
1708
1729
|
pageToken?: string;
|
|
1709
1730
|
/**
|
|
1710
|
-
* Required. The account to list processed products for. Format: accounts/{account\}
|
|
1731
|
+
* Required. The account to list processed products for. Format: `accounts/{account\}`
|
|
1711
1732
|
*/
|
|
1712
1733
|
parent?: string;
|
|
1713
1734
|
}
|
package/reports_v1beta.ts
CHANGED
|
@@ -1008,7 +1008,7 @@ export namespace merchantapi_reports_v1beta {
|
|
|
1008
1008
|
*/
|
|
1009
1009
|
pageToken?: string | null;
|
|
1010
1010
|
/**
|
|
1011
|
-
* Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.
|
|
1011
|
+
* 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_v1beta/accounts.reports).
|
|
1012
1012
|
*/
|
|
1013
1013
|
query?: string | null;
|
|
1014
1014
|
}
|