@googleapis/merchantapi 17.2.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/accounts_v1.ts +180 -12
- package/accounts_v1beta.ts +179 -12
- package/build/accounts_v1.d.ts +102 -12
- package/build/accounts_v1.js +32 -0
- package/build/accounts_v1.js.map +1 -1
- package/build/accounts_v1beta.d.ts +102 -12
- 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 +67 -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/notifications_v1.d.ts +2 -2
- package/build/notifications_v1beta.d.ts +2 -2
- package/build/products_v1.d.ts +231 -12
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.d.ts +41 -12
- 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 +67 -14
- package/inventories_v1beta.ts +26 -14
- package/issueresolution_v1.ts +3 -3
- package/issueresolution_v1beta.ts +3 -3
- package/notifications_v1.ts +2 -2
- package/notifications_v1beta.ts +2 -2
- package/package.json +1 -1
- package/products_v1.ts +231 -12
- package/products_v1beta.ts +41 -12
- 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
|
/**
|
|
@@ -745,7 +745,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
745
745
|
ratio?: number | null;
|
|
746
746
|
}
|
|
747
747
|
/**
|
|
748
|
-
*
|
|
748
|
+
* A message that represents loyalty program.
|
|
749
749
|
*/
|
|
750
750
|
export interface Schema$LoyaltyProgram {
|
|
751
751
|
/**
|
|
@@ -802,6 +802,10 @@ export namespace merchantapi_products_v1beta {
|
|
|
802
802
|
* Output only. The automated discounts information for the product.
|
|
803
803
|
*/
|
|
804
804
|
automatedDiscounts?: Schema$AutomatedDiscounts;
|
|
805
|
+
/**
|
|
806
|
+
* 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).
|
|
807
|
+
*/
|
|
808
|
+
base64EncodedName?: string | null;
|
|
805
809
|
/**
|
|
806
810
|
* Output only. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
807
811
|
*/
|
|
@@ -898,6 +902,14 @@ export namespace merchantapi_products_v1beta {
|
|
|
898
902
|
* Optional. A list of product attributes.
|
|
899
903
|
*/
|
|
900
904
|
attributes?: Schema$Attributes;
|
|
905
|
+
/**
|
|
906
|
+
* 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).
|
|
907
|
+
*/
|
|
908
|
+
base64EncodedName?: string | null;
|
|
909
|
+
/**
|
|
910
|
+
* 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).
|
|
911
|
+
*/
|
|
912
|
+
base64EncodedProduct?: string | null;
|
|
901
913
|
/**
|
|
902
914
|
* Immutable. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
903
915
|
*/
|
|
@@ -915,7 +927,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
915
927
|
*/
|
|
916
928
|
feedLabel?: string | null;
|
|
917
929
|
/**
|
|
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-
|
|
930
|
+
* 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
931
|
*/
|
|
920
932
|
name?: string | null;
|
|
921
933
|
/**
|
|
@@ -1077,6 +1089,14 @@ export namespace merchantapi_products_v1beta {
|
|
|
1077
1089
|
* 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
1090
|
*/
|
|
1079
1091
|
locationId?: string | null;
|
|
1092
|
+
/**
|
|
1093
|
+
* 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.
|
|
1094
|
+
*/
|
|
1095
|
+
loyaltyProgramLabel?: string | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* 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.
|
|
1098
|
+
*/
|
|
1099
|
+
loyaltyTierLabel?: string | null;
|
|
1080
1100
|
/**
|
|
1081
1101
|
* 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
1102
|
*/
|
|
@@ -1259,7 +1279,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1259
1279
|
* const res = await merchantapi.accounts.productInputs.delete({
|
|
1260
1280
|
* // 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
1281
|
* 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-
|
|
1282
|
+
* // 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
1283
|
* name: 'accounts/my-account/productInputs/my-productInput',
|
|
1264
1284
|
* });
|
|
1265
1285
|
* console.log(res.data);
|
|
@@ -1404,6 +1424,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1404
1424
|
* // request body parameters
|
|
1405
1425
|
* // {
|
|
1406
1426
|
* // "attributes": {},
|
|
1427
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1428
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1407
1429
|
* // "channel": "my_channel",
|
|
1408
1430
|
* // "contentLanguage": "my_contentLanguage",
|
|
1409
1431
|
* // "customAttributes": [],
|
|
@@ -1420,6 +1442,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1420
1442
|
* // Example response
|
|
1421
1443
|
* // {
|
|
1422
1444
|
* // "attributes": {},
|
|
1445
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1446
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1423
1447
|
* // "channel": "my_channel",
|
|
1424
1448
|
* // "contentLanguage": "my_contentLanguage",
|
|
1425
1449
|
* // "customAttributes": [],
|
|
@@ -1558,7 +1582,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1558
1582
|
* const res = await merchantapi.accounts.productInputs.patch({
|
|
1559
1583
|
* // 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
1584
|
* 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-
|
|
1585
|
+
* // 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
1586
|
* name: 'accounts/my-account/productInputs/my-productInput',
|
|
1563
1587
|
* // 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
1588
|
* updateMask: 'placeholder-value',
|
|
@@ -1568,6 +1592,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1568
1592
|
* // request body parameters
|
|
1569
1593
|
* // {
|
|
1570
1594
|
* // "attributes": {},
|
|
1595
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1596
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1571
1597
|
* // "channel": "my_channel",
|
|
1572
1598
|
* // "contentLanguage": "my_contentLanguage",
|
|
1573
1599
|
* // "customAttributes": [],
|
|
@@ -1584,6 +1610,8 @@ export namespace merchantapi_products_v1beta {
|
|
|
1584
1610
|
* // Example response
|
|
1585
1611
|
* // {
|
|
1586
1612
|
* // "attributes": {},
|
|
1613
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1614
|
+
* // "base64EncodedProduct": "my_base64EncodedProduct",
|
|
1587
1615
|
* // "channel": "my_channel",
|
|
1588
1616
|
* // "contentLanguage": "my_contentLanguage",
|
|
1589
1617
|
* // "customAttributes": [],
|
|
@@ -1697,7 +1725,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1697
1725
|
*/
|
|
1698
1726
|
dataSource?: string;
|
|
1699
1727
|
/**
|
|
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-
|
|
1728
|
+
* 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
1729
|
*/
|
|
1702
1730
|
name?: string;
|
|
1703
1731
|
}
|
|
@@ -1722,7 +1750,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1722
1750
|
*/
|
|
1723
1751
|
dataSource?: string;
|
|
1724
1752
|
/**
|
|
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-
|
|
1753
|
+
* 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
1754
|
*/
|
|
1727
1755
|
name?: string;
|
|
1728
1756
|
/**
|
|
@@ -1773,7 +1801,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1773
1801
|
*
|
|
1774
1802
|
* // Do the magic
|
|
1775
1803
|
* 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-
|
|
1804
|
+
* // 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
1805
|
* name: 'accounts/my-account/products/my-product',
|
|
1778
1806
|
* });
|
|
1779
1807
|
* console.log(res.data);
|
|
@@ -1782,6 +1810,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1782
1810
|
* // {
|
|
1783
1811
|
* // "attributes": {},
|
|
1784
1812
|
* // "automatedDiscounts": {},
|
|
1813
|
+
* // "base64EncodedName": "my_base64EncodedName",
|
|
1785
1814
|
* // "channel": "my_channel",
|
|
1786
1815
|
* // "contentLanguage": "my_contentLanguage",
|
|
1787
1816
|
* // "customAttributes": [],
|
|
@@ -2036,7 +2065,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
2036
2065
|
|
|
2037
2066
|
export interface Params$Resource$Accounts$Products$Get extends StandardParameters {
|
|
2038
2067
|
/**
|
|
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-
|
|
2068
|
+
* 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
2069
|
*/
|
|
2041
2070
|
name?: string;
|
|
2042
2071
|
}
|
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
|
}
|