@googleapis/merchantapi 17.3.0 → 18.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 +19 -0
- package/accounts_v1.ts +181 -13
- package/accounts_v1beta.ts +180 -13
- package/build/accounts_v1.d.ts +103 -13
- package/build/accounts_v1.js +32 -0
- package/build/accounts_v1.js.map +1 -1
- package/build/accounts_v1beta.d.ts +103 -13
- package/build/accounts_v1beta.js +32 -0
- package/build/accounts_v1beta.js.map +1 -1
- package/build/datasources_v1.d.ts +4 -4
- package/build/datasources_v1beta.d.ts +4 -4
- package/build/inventories_v1.d.ts +26 -14
- package/build/inventories_v1.js.map +1 -1
- package/build/inventories_v1beta.d.ts +26 -14
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +3 -3
- package/build/issueresolution_v1beta.d.ts +3 -3
- package/build/products_v1.d.ts +319 -11
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.d.ts +45 -11
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1.d.ts +66 -22
- package/build/promotions_v1.js.map +1 -1
- package/build/promotions_v1beta.d.ts +66 -22
- package/build/promotions_v1beta.js.map +1 -1
- package/build/reports_v1.d.ts +39 -6
- package/build/reports_v1.js.map +1 -1
- package/build/reports_v1beta.d.ts +39 -6
- package/build/reports_v1beta.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/datasources_v1.ts +4 -4
- package/datasources_v1beta.ts +4 -4
- package/inventories_v1.ts +26 -14
- package/inventories_v1beta.ts +26 -14
- package/issueresolution_v1.ts +3 -3
- package/issueresolution_v1beta.ts +3 -3
- package/package.json +1 -1
- package/products_v1.ts +319 -11
- package/products_v1beta.ts +45 -11
- package/promotions_v1.ts +66 -22
- package/promotions_v1beta.ts +66 -22
- package/reports_v1.ts +39 -6
- package/reports_v1beta.ts +39 -6
package/products_v1beta.ts
CHANGED
|
@@ -269,11 +269,11 @@ export namespace merchantapi_products_v1beta {
|
|
|
269
269
|
*/
|
|
270
270
|
googleProductCategory?: string | null;
|
|
271
271
|
/**
|
|
272
|
-
* Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/
|
|
272
|
+
* Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/6324461)) of the item. You can provide up to 10 GTINs. Deprecated: Use `gtins` instead.
|
|
273
273
|
*/
|
|
274
274
|
gtin?: string[] | null;
|
|
275
275
|
/**
|
|
276
|
-
* A list of Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/
|
|
276
|
+
* A list of Global Trade Item Numbers ([GTIN](https://support.google.com/merchants/answer/6324461)) of the item. You can provide up to 10 GTINs.
|
|
277
277
|
*/
|
|
278
278
|
gtins?: string[] | null;
|
|
279
279
|
/**
|
|
@@ -353,7 +353,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
353
353
|
*/
|
|
354
354
|
mobileLinkTemplate?: string | null;
|
|
355
355
|
/**
|
|
356
|
-
* Manufacturer Part Number ([MPN](https://support.google.com/merchants/answer/
|
|
356
|
+
* Manufacturer Part Number ([MPN](https://support.google.com/merchants/answer/6324482)) of the item.
|
|
357
357
|
*/
|
|
358
358
|
mpn?: string | null;
|
|
359
359
|
/**
|
|
@@ -602,7 +602,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
602
602
|
value?: string | null;
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
|
-
* The destination status of the product status.
|
|
605
|
+
* The destination status of the product status. Equivalent to `StatusPerReportingContext` in Reports API.
|
|
606
606
|
*/
|
|
607
607
|
export interface Schema$DestinationStatus {
|
|
608
608
|
/**
|
|
@@ -794,6 +794,10 @@ export namespace merchantapi_products_v1beta {
|
|
|
794
794
|
* 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.
|
|
795
795
|
*/
|
|
796
796
|
export interface Schema$Product {
|
|
797
|
+
/**
|
|
798
|
+
* Output only. Determines whether the product is [archived](https://support.google.com/merchants/answer/11909930). To archive or restore your product, visit Merchant Center products page. Learn also more about [offer visibility](https://support.google.com/merchants/answer/12488713).
|
|
799
|
+
*/
|
|
800
|
+
archived?: boolean | null;
|
|
797
801
|
/**
|
|
798
802
|
* Output only. A list of product attributes.
|
|
799
803
|
*/
|
|
@@ -802,6 +806,10 @@ export namespace merchantapi_products_v1beta {
|
|
|
802
806
|
* Output only. The automated discounts information for the product.
|
|
803
807
|
*/
|
|
804
808
|
automatedDiscounts?: Schema$AutomatedDiscounts;
|
|
809
|
+
/**
|
|
810
|
+
* Output only. The **unpadded base64url encoded name** of the product. Format: `accounts/{account\}/products/{product\}` where the last section `product` is the unpadded base64url encoding of the `content_language~feed_label~offer_id` name. Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product name `accounts/123/products/en~US~sku/123`. This field can be used directly as input to the API methods that require the product name to be encoded if it contains special characters, for example [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1beta/accounts.products/get).
|
|
811
|
+
*/
|
|
812
|
+
base64EncodedName?: string | null;
|
|
805
813
|
/**
|
|
806
814
|
* Output only. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
807
815
|
*/
|
|
@@ -898,6 +906,14 @@ export namespace merchantapi_products_v1beta {
|
|
|
898
906
|
* Optional. A list of product attributes.
|
|
899
907
|
*/
|
|
900
908
|
attributes?: Schema$Attributes;
|
|
909
|
+
/**
|
|
910
|
+
* Output only. The **unpadded base64url encoded name** of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` is the unpadded base64url encoding of the `content_language~feed_label~offer_id` name. Example: `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw` for the decoded product input name `accounts/123/productInputs/en~US~sku/123`. This field can be used directly as input to the API methods that require the product input name to be encoded if it contains special characters, for example [`GetProductInput`](https://developers.google.com/merchant/api/reference/rest/products_v1beta/accounts.productInputs/get).
|
|
911
|
+
*/
|
|
912
|
+
base64EncodedName?: string | null;
|
|
913
|
+
/**
|
|
914
|
+
* Output only. The **unpadded base64url encoded name** of the processed product. Format: `accounts/{account\}/products/{product\}` where the last section `product` is the unpadded base64url encoding of the `content_language~feed_label~offer_id` name. Example: `accounts/123/products/ZW5-VVN-c2t1LzEyMw` for the decoded product name `accounts/123/products/en~US~sku/123`. This field can be used directly as input to the API methods that require the product name to be encoded if it contains special characters, for example [`GetProduct`](https://developers.google.com/merchant/api/reference/rest/products_v1beta/accounts.products/get).
|
|
915
|
+
*/
|
|
916
|
+
base64EncodedProduct?: string | null;
|
|
901
917
|
/**
|
|
902
918
|
* Immutable. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
903
919
|
*/
|
|
@@ -915,7 +931,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
915
931
|
*/
|
|
916
932
|
feedLabel?: string | null;
|
|
917
933
|
/**
|
|
918
|
-
* Identifier. The name of the product. Format: `accounts/{account\}/productInputs/{productinput\}` The {productinput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productinput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productinput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productinput\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
934
|
+
* Identifier. The name of the product. Format: `accounts/{account\}/productInputs/{productinput\}` The {productinput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productinput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productinput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productinput\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{productinput\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{productinput\}` segment is used to differentiate between the two formats.
|
|
919
935
|
*/
|
|
920
936
|
name?: string | null;
|
|
921
937
|
/**
|
|
@@ -1077,6 +1093,14 @@ export namespace merchantapi_products_v1beta {
|
|
|
1077
1093
|
* The numeric ID of a location that the shipping rate applies to as defined in the [AdWords API](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
|
|
1078
1094
|
*/
|
|
1079
1095
|
locationId?: string | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Optional. The label of the [loyalty program](https://support.google.com/merchants/answer/6324484). Must match one of the program labels set in loyalty_programs. When set (in combination with [loyalty_tier_label](https://support.google.com/merchants/answer/6324484)), this shipping option is only applicable to loyalty program members of the specified tier.
|
|
1098
|
+
*/
|
|
1099
|
+
loyaltyProgramLabel?: string | null;
|
|
1100
|
+
/**
|
|
1101
|
+
* Optional. The label of the [loyalty tier](https://support.google.com/merchants/answer/6324484) within the loyalty program. Must match one of the tiers set in the loyalty_programs. When set (in combination with [loyalty_program_label](https://support.google.com/merchants/answer/6324484)), this shipping option is only applicable to loyalty program members of the specified tier.
|
|
1102
|
+
*/
|
|
1103
|
+
loyaltyTierLabel?: string | null;
|
|
1080
1104
|
/**
|
|
1081
1105
|
* Maximum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it is received if it happens before the cut-off time. Both maxHandlingTime and maxTransitTime are required if providing shipping speeds. minHandlingTime is optional if maxHandlingTime is present.
|
|
1082
1106
|
*/
|
|
@@ -1259,7 +1283,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1259
1283
|
* const res = await merchantapi.accounts.productInputs.delete({
|
|
1260
1284
|
* // Required. The primary or supplemental data source from which the product input should be deleted. Format: `accounts/{account\}/dataSources/{datasource\}`. For example, `accounts/123456/dataSources/104628`.
|
|
1261
1285
|
* dataSource: 'placeholder-value',
|
|
1262
|
-
* // Required. The name of the product input to delete. Format: `accounts/{account\}/productInputs/{productInput\}` The {productInput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productInput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productInput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productInput\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
1286
|
+
* // Required. The name of the product input to delete. Format: `accounts/{account\}/productInputs/{productInput\}` The {productInput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productInput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productInput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productInput\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{productInput\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{productInput\}` segment is used to differentiate between the two formats.
|
|
1263
1287
|
* name: 'accounts/my-account/productInputs/my-productInput',
|
|
1264
1288
|
* });
|
|
1265
1289
|
* console.log(res.data);
|
|
@@ -1404,6 +1428,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1404
1428
|
* // request body parameters
|
|
1405
1429
|
* // {
|
|
1406
1430
|
* // "attributes": {},
|
|
1431
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1432
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1407
1433
|
* // "channel": "my_channel",
|
|
1408
1434
|
* // "contentLanguage": "my_contentLanguage",
|
|
1409
1435
|
* // "customAttributes": [],
|
|
@@ -1420,6 +1446,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1420
1446
|
* // Example response
|
|
1421
1447
|
* // {
|
|
1422
1448
|
* // "attributes": {},
|
|
1449
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1450
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1423
1451
|
* // "channel": "my_channel",
|
|
1424
1452
|
* // "contentLanguage": "my_contentLanguage",
|
|
1425
1453
|
* // "customAttributes": [],
|
|
@@ -1558,7 +1586,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1558
1586
|
* const res = await merchantapi.accounts.productInputs.patch({
|
|
1559
1587
|
* // 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\}`. For example, `accounts/123456/dataSources/104628`.
|
|
1560
1588
|
* dataSource: 'placeholder-value',
|
|
1561
|
-
* // Identifier. The name of the product. Format: `accounts/{account\}/productInputs/{productinput\}` The {productinput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productinput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productinput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productinput\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
1589
|
+
* // Identifier. The name of the product. Format: `accounts/{account\}/productInputs/{productinput\}` The {productinput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productinput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productinput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productinput\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{productinput\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{productinput\}` segment is used to differentiate between the two formats.
|
|
1562
1590
|
* name: 'accounts/my-account/productInputs/my-productInput',
|
|
1563
1591
|
* // 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.
|
|
1564
1592
|
* updateMask: 'placeholder-value',
|
|
@@ -1568,6 +1596,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1568
1596
|
* // request body parameters
|
|
1569
1597
|
* // {
|
|
1570
1598
|
* // "attributes": {},
|
|
1599
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1600
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1571
1601
|
* // "channel": "my_channel",
|
|
1572
1602
|
* // "contentLanguage": "my_contentLanguage",
|
|
1573
1603
|
* // "customAttributes": [],
|
|
@@ -1584,6 +1614,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1584
1614
|
* // Example response
|
|
1585
1615
|
* // {
|
|
1586
1616
|
* // "attributes": {},
|
|
1617
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1618
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1587
1619
|
* // "channel": "my_channel",
|
|
1588
1620
|
* // "contentLanguage": "my_contentLanguage",
|
|
1589
1621
|
* // "customAttributes": [],
|
|
@@ -1697,7 +1729,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1697
1729
|
*/
|
|
1698
1730
|
dataSource?: string;
|
|
1699
1731
|
/**
|
|
1700
|
-
* Required. The name of the product input to delete. Format: `accounts/{account\}/productInputs/{productInput\}` The {productInput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productInput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productInput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productInput\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
1732
|
+
* Required. The name of the product input to delete. Format: `accounts/{account\}/productInputs/{productInput\}` The {productInput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productInput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productInput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productInput\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{productInput\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{productInput\}` segment is used to differentiate between the two formats.
|
|
1701
1733
|
*/
|
|
1702
1734
|
name?: string;
|
|
1703
1735
|
}
|
|
@@ -1722,7 +1754,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1722
1754
|
*/
|
|
1723
1755
|
dataSource?: string;
|
|
1724
1756
|
/**
|
|
1725
|
-
* Identifier. The name of the product. Format: `accounts/{account\}/productInputs/{productinput\}` The {productinput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productinput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productinput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productinput\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
1757
|
+
* Identifier. The name of the product. Format: `accounts/{account\}/productInputs/{productinput\}` The {productinput\} segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the {productinput\} segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{productinput\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{productinput\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/productInputs/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{productinput\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{productinput\}` segment is used to differentiate between the two formats.
|
|
1726
1758
|
*/
|
|
1727
1759
|
name?: string;
|
|
1728
1760
|
/**
|
|
@@ -1773,15 +1805,17 @@ export namespace merchantapi_products_v1beta {
|
|
|
1773
1805
|
*
|
|
1774
1806
|
* // Do the magic
|
|
1775
1807
|
* const res = await merchantapi.accounts.products.get({
|
|
1776
|
-
* // Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
1808
|
+
* // Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. Note: For calls to the v1beta version, the plain format is `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`.
|
|
1777
1809
|
* name: 'accounts/my-account/products/my-product',
|
|
1778
1810
|
* });
|
|
1779
1811
|
* console.log(res.data);
|
|
1780
1812
|
*
|
|
1781
1813
|
* // Example response
|
|
1782
1814
|
* // {
|
|
1815
|
+
* // "archived": false,
|
|
1783
1816
|
* // "attributes": {},
|
|
1784
1817
|
* // "automatedDiscounts": {},
|
|
1818
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1785
1819
|
* // "channel": "my_channel",
|
|
1786
1820
|
* // "contentLanguage": "my_contentLanguage",
|
|
1787
1821
|
* // "customAttributes": [],
|
|
@@ -2036,7 +2070,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
2036
2070
|
|
|
2037
2071
|
export interface Params$Resource$Accounts$Products$Get extends StandardParameters {
|
|
2038
2072
|
/**
|
|
2039
|
-
* Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the base64url encoding of this string, which is `ZW5-
|
|
2073
|
+
* Required. The name of the product. Format: `accounts/{account\}/products/{product\}` The `{product\}` segment is a unique identifier for the product. This identifier must be unique within a merchant account and generally follows the structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~US~sku123` The format of the `{product\}` segment in the URL is automatically detected by the server, supporting two options: 1. **Encoded Format**: The `{product\}` segment is an unpadded base64url encoded string (RFC 4648 Section 5). The decoded string must result in the `content_language~feed_label~offer_id` structure. This encoding MUST be used if any part of the product identifier (like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`, the `{product\}` segment must be the unpadded base64url encoding of this string, which is `ZW5-VVN-c2t1LzEyMw`. The full resource name for the product would be `accounts/123/products/ZW5-VVN-c2t1LzEyMw`. 2. **Plain Format**: The `{product\}` segment is the tilde-separated string `content_language~feed_label~offer_id`. This format is suitable only when `content_language`, `feed_label`, and `offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend using the **Encoded Format** for all product IDs to ensure correct parsing, especially those containing special characters. The presence of tilde (`~`) characters in the `{product\}` segment is used to differentiate between the two formats. Note: For calls to the v1beta version, the plain format is `channel~content_language~feed_label~offer_id`, for example: `accounts/123/products/online~en~US~sku123`.
|
|
2040
2074
|
*/
|
|
2041
2075
|
name?: string;
|
|
2042
2076
|
}
|
package/promotions_v1.ts
CHANGED
|
@@ -129,31 +129,43 @@ export namespace merchantapi_promotions_v1 {
|
|
|
129
129
|
*/
|
|
130
130
|
export interface Schema$Attributes {
|
|
131
131
|
/**
|
|
132
|
-
* Optional.
|
|
132
|
+
* Optional. This field defines the audience a promotion will be visible to.
|
|
133
|
+
*/
|
|
134
|
+
audience?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* 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).
|
|
133
137
|
*/
|
|
134
138
|
brandExclusion?: string[] | null;
|
|
135
139
|
/**
|
|
136
|
-
* 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
|
|
140
|
+
* 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).
|
|
137
141
|
*/
|
|
138
142
|
brandInclusion?: string[] | null;
|
|
139
143
|
/**
|
|
140
|
-
* Required. The [coupon value type] (https://support.google.com/merchants/answer/13861986?ref_topic=13773355
|
|
144
|
+
* 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).
|
|
141
145
|
*/
|
|
142
146
|
couponValueType?: string | null;
|
|
143
147
|
/**
|
|
144
|
-
* Optional.
|
|
148
|
+
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction` field is set to `CUSTOM`, this field must be set.
|
|
149
|
+
*/
|
|
150
|
+
customRedemptionRestriction?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* 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.
|
|
153
|
+
*/
|
|
154
|
+
eventApplicability?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topic=13773355) for the promotion.
|
|
145
157
|
*/
|
|
146
158
|
freeGiftDescription?: string | null;
|
|
147
159
|
/**
|
|
148
|
-
* Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355
|
|
160
|
+
* Optional. [Free gift item ID](https://support.google.com/merchants/answer/13857152?ref_topic=13773355) for the promotion.
|
|
149
161
|
*/
|
|
150
162
|
freeGiftItemId?: string | null;
|
|
151
163
|
/**
|
|
152
|
-
* Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355
|
|
164
|
+
* Optional. [Free gift value](https://support.google.com/merchants/answer/13844477?ref_topic=13773355) for the promotion.
|
|
153
165
|
*/
|
|
154
166
|
freeGiftValue?: Schema$Price;
|
|
155
167
|
/**
|
|
156
|
-
* 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
|
|
168
|
+
* 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).
|
|
157
169
|
*/
|
|
158
170
|
genericRedemptionCode?: string | null;
|
|
159
171
|
/**
|
|
@@ -161,23 +173,27 @@ export namespace merchantapi_promotions_v1 {
|
|
|
161
173
|
*/
|
|
162
174
|
getThisQuantityDiscounted?: string | null;
|
|
163
175
|
/**
|
|
164
|
-
* Optional.
|
|
176
|
+
* 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).
|
|
177
|
+
*/
|
|
178
|
+
googleProductCategories?: string[] | null;
|
|
179
|
+
/**
|
|
180
|
+
* 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.
|
|
165
181
|
*/
|
|
166
182
|
itemGroupIdExclusion?: string[] | null;
|
|
167
183
|
/**
|
|
168
|
-
* 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
|
|
184
|
+
* 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).
|
|
169
185
|
*/
|
|
170
186
|
itemGroupIdInclusion?: string[] | null;
|
|
171
187
|
/**
|
|
172
|
-
* Optional. Product filter by [item ID exclusion](https://support.google.com/merchants/answer/13863524?ref_topic=13773355
|
|
188
|
+
* 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).
|
|
173
189
|
*/
|
|
174
190
|
itemIdExclusion?: string[] | null;
|
|
175
191
|
/**
|
|
176
|
-
* Optional. Product filter by [item ID](https://support.google.com/merchants/answer/13861565?ref_topic=13773355
|
|
192
|
+
* 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).
|
|
177
193
|
*/
|
|
178
194
|
itemIdInclusion?: string[] | null;
|
|
179
195
|
/**
|
|
180
|
-
* Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355
|
|
196
|
+
* Optional. [Maximum purchase quantity](https://support.google.com/merchants/answer/13861564?ref_topic=13773355) for the promotion.
|
|
181
197
|
*/
|
|
182
198
|
limitQuantity?: string | null;
|
|
183
199
|
/**
|
|
@@ -185,20 +201,40 @@ export namespace merchantapi_promotions_v1 {
|
|
|
185
201
|
*/
|
|
186
202
|
limitValue?: Schema$Price;
|
|
187
203
|
/**
|
|
188
|
-
* Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355
|
|
204
|
+
* Required. [Long title](https://support.google.com/merchants/answer/13838102?ref_topic=13773355) for the promotion.
|
|
189
205
|
*/
|
|
190
206
|
longTitle?: string | null;
|
|
191
207
|
/**
|
|
192
|
-
* Optional.
|
|
208
|
+
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is only supported with the `Percent off` coupon value type.
|
|
209
|
+
*/
|
|
210
|
+
maxDiscountAmount?: Schema$Price;
|
|
211
|
+
/**
|
|
212
|
+
* 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.
|
|
213
|
+
*/
|
|
214
|
+
maxMoneyOffAmount?: Schema$Price;
|
|
215
|
+
/**
|
|
216
|
+
* 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.
|
|
217
|
+
*/
|
|
218
|
+
maxPercentOff?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_topic=13773355) for the promotion.
|
|
193
221
|
*/
|
|
194
222
|
minimumPurchaseAmount?: Schema$Price;
|
|
195
223
|
minimumPurchaseQuantity?: string | null;
|
|
196
224
|
/**
|
|
197
|
-
* Optional.
|
|
225
|
+
* 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.
|
|
226
|
+
*/
|
|
227
|
+
minMoneyOffAmount?: Schema$Price;
|
|
228
|
+
/**
|
|
229
|
+
* 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.
|
|
230
|
+
*/
|
|
231
|
+
minPercentOff?: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* Optional. The [money off amount](https://support.google.com/merchants/answer/13838101?ref_topic=13773355) offered in the promotion.
|
|
198
234
|
*/
|
|
199
235
|
moneyOffAmount?: Schema$Price;
|
|
200
236
|
/**
|
|
201
|
-
* Required. [Type](https://support.google.com/merchants/answer/13837405?ref_topic=13773355
|
|
237
|
+
* 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.
|
|
202
238
|
*/
|
|
203
239
|
offerType?: string | null;
|
|
204
240
|
/**
|
|
@@ -206,19 +242,19 @@ export namespace merchantapi_promotions_v1 {
|
|
|
206
242
|
*/
|
|
207
243
|
percentOff?: string | null;
|
|
208
244
|
/**
|
|
209
|
-
*
|
|
245
|
+
* 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.
|
|
210
246
|
*/
|
|
211
247
|
productApplicability?: string | null;
|
|
212
248
|
/**
|
|
213
|
-
* Optional. Product filter by [product type exclusion](https://support.google.com/merchants/answer/13863746?ref_topic=13773355
|
|
249
|
+
* 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).
|
|
214
250
|
*/
|
|
215
251
|
productTypeExclusion?: string[] | null;
|
|
216
252
|
/**
|
|
217
|
-
* 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
|
|
253
|
+
* 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).
|
|
218
254
|
*/
|
|
219
255
|
productTypeInclusion?: string[] | null;
|
|
220
256
|
/**
|
|
221
|
-
* 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
|
|
257
|
+
* 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)
|
|
222
258
|
*/
|
|
223
259
|
promotionDestinations?: string[] | null;
|
|
224
260
|
/**
|
|
@@ -233,16 +269,24 @@ export namespace merchantapi_promotions_v1 {
|
|
|
233
269
|
* 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.
|
|
234
270
|
*/
|
|
235
271
|
promotionUrl?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* Optional. A restriction customers must meet before they can redeem the promotion.
|
|
274
|
+
*/
|
|
275
|
+
redemptionRestriction?: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* 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`.
|
|
278
|
+
*/
|
|
279
|
+
regionIdInclusion?: string[] | null;
|
|
236
280
|
/**
|
|
237
281
|
* 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.
|
|
238
282
|
*/
|
|
239
283
|
storeApplicability?: string | null;
|
|
240
284
|
/**
|
|
241
|
-
* Optional. [Store codes to exclude](https://support.google.com/merchants/answer/13859586?ref_topic=13773355
|
|
285
|
+
* 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).
|
|
242
286
|
*/
|
|
243
287
|
storeCodesExclusion?: string[] | null;
|
|
244
288
|
/**
|
|
245
|
-
* Optional. [Store codes to include](https://support.google.com/merchants/answer/13857470?ref_topic=13773355
|
|
289
|
+
* 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.
|
|
246
290
|
*/
|
|
247
291
|
storeCodesInclusion?: string[] | null;
|
|
248
292
|
}
|