@googleapis/merchantapi 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/accounts_v1beta.ts +1572 -557
- package/build/accounts_v1beta.d.ts +447 -80
- package/build/accounts_v1beta.js +309 -30
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +15 -12
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +3 -3
- package/build/inventories_v1beta.d.ts +1 -1
- package/build/lfp_v1beta.d.ts +121 -0
- package/build/lfp_v1beta.js +39 -0
- package/build/lfp_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +34 -13
- package/build/products_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +1 -1
- package/conversions_v1beta.ts +15 -12
- package/datasources_v1beta.ts +3 -3
- package/inventories_v1beta.ts +1 -1
- package/lfp_v1beta.ts +203 -0
- package/package.json +1 -1
- package/products_v1beta.ts +34 -13
- package/reports_v1beta.ts +1 -1
package/build/lfp_v1beta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lfp_v1beta.js","sourceRoot":"","sources":["../lfp_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"lfp_v1beta.js","sourceRoot":"","sources":["../lfp_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;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ACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAA+B,UAAU,CAAC,CAAC;aACnE;QACH,CAAC;KACF;IA1WY,kDAA2B,8BA0WvC,CAAA;AA+CH,CAAC,EAjqCgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAiqCtC"}
|
|
@@ -448,6 +448,23 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
448
448
|
*/
|
|
449
449
|
virtualModelLink?: string | null;
|
|
450
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* Information regarding Automated Discounts.
|
|
453
|
+
*/
|
|
454
|
+
export interface Schema$AutomatedDiscounts {
|
|
455
|
+
/**
|
|
456
|
+
* The current sale price for products with a price optimized using Google Automated Discounts (GAD). Absent if the information about the GAD_price of the product is not available.
|
|
457
|
+
*/
|
|
458
|
+
gadPrice?: Schema$Price;
|
|
459
|
+
/**
|
|
460
|
+
* The price prior to the application of the first price reduction. Absent if the information about the prior price of the product is not available.
|
|
461
|
+
*/
|
|
462
|
+
priorPrice?: Schema$Price;
|
|
463
|
+
/**
|
|
464
|
+
* The price prior to the application of consecutive price reductions. Absent if the information about the prior price of the product is not available.
|
|
465
|
+
*/
|
|
466
|
+
priorPriceProgressive?: Schema$Price;
|
|
467
|
+
}
|
|
451
468
|
/**
|
|
452
469
|
* Product [certification](https://support.google.com/merchants/answer/13528839), initially introduced for EU energy efficiency labeling compliance using the EU EPREL database.
|
|
453
470
|
*/
|
|
@@ -714,13 +731,17 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
714
731
|
currencyCode?: string | null;
|
|
715
732
|
}
|
|
716
733
|
/**
|
|
717
|
-
* 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
|
|
734
|
+
* 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.
|
|
718
735
|
*/
|
|
719
736
|
export interface Schema$Product {
|
|
720
737
|
/**
|
|
721
738
|
* Output only. A list of product attributes.
|
|
722
739
|
*/
|
|
723
740
|
attributes?: Schema$Attributes;
|
|
741
|
+
/**
|
|
742
|
+
* Output only. The automated discounts information for the product.
|
|
743
|
+
*/
|
|
744
|
+
automatedDiscounts?: Schema$AutomatedDiscounts;
|
|
724
745
|
/**
|
|
725
746
|
* Output only. The [channel](https://support.google.com/merchants/answer/7361332) of the product.
|
|
726
747
|
*/
|
|
@@ -742,7 +763,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
742
763
|
*/
|
|
743
764
|
feedLabel?: string | null;
|
|
744
765
|
/**
|
|
745
|
-
* The name of the product. Format: `
|
|
766
|
+
* The name of the product. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of 4 parts: `channel~content_language~feed_label~offer_id` example for product name is `accounts/123/products/online~en~US~sku123`
|
|
746
767
|
*/
|
|
747
768
|
name?: string | null;
|
|
748
769
|
/**
|
|
@@ -810,7 +831,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
810
831
|
value?: number | null;
|
|
811
832
|
}
|
|
812
833
|
/**
|
|
813
|
-
* This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces. Product inputs, rules and supplemental data source data are combined to create the processed Product. Required product input attributes to pass data validation checks are primarily defined in the [Products Data Specification](https://support.google.com/merchants/answer/188494). The following attributes are required: feedLabel, contentLanguage and offerId. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. All fields in the product input and its sub-messages match the English name of their corresponding attribute in the
|
|
834
|
+
* This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces. Product inputs, rules and supplemental data source data are combined to create the processed Product. Required product input attributes to pass data validation checks are primarily defined in the [Products Data Specification](https://support.google.com/merchants/answer/188494). The following attributes are required: feedLabel, contentLanguage and offerId. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. All fields in the product input and its sub-messages match the English name of their corresponding attribute in the [Products Data Specification](https://support.google.com/merchants/answer/188494) with [some exceptions](https://support.google.com/merchants/answer/7052112). The following reference documentation lists the field names in the **camelCase** casing style while the Products Data Specification lists the names in the **snake_case** casing style.
|
|
814
835
|
*/
|
|
815
836
|
export interface Schema$ProductInput {
|
|
816
837
|
/**
|
|
@@ -826,7 +847,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
826
847
|
*/
|
|
827
848
|
contentLanguage?: string | null;
|
|
828
849
|
/**
|
|
829
|
-
* Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API
|
|
850
|
+
* Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
|
|
830
851
|
*/
|
|
831
852
|
customAttributes?: Schema$CustomAttribute[];
|
|
832
853
|
/**
|
|
@@ -834,7 +855,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
834
855
|
*/
|
|
835
856
|
feedLabel?: string | null;
|
|
836
857
|
/**
|
|
837
|
-
* Identifier. The name of the product input. Format: `
|
|
858
|
+
* Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of 4 parts: `channel~content_language~feed_label~offer_id` example for product input name is `accounts/123/productInputs/online~en~US~sku123`
|
|
838
859
|
*/
|
|
839
860
|
name?: string | null;
|
|
840
861
|
/**
|
|
@@ -842,11 +863,11 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
842
863
|
*/
|
|
843
864
|
offerId?: string | null;
|
|
844
865
|
/**
|
|
845
|
-
* Output only. The name of the processed product. Format: `
|
|
866
|
+
* Output only. The name of the processed product. Format: `accounts/{account\}/products/{product\}`
|
|
846
867
|
*/
|
|
847
868
|
product?: string | null;
|
|
848
869
|
/**
|
|
849
|
-
* Optional. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing product. Re-insertion (for example, product refresh after 30 days) can be performed with the current `version_number`. Only supported for insertions into primary data sources. If the operation is prevented, the aborted exception will be thrown.
|
|
870
|
+
* Optional. Immutable. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time. If set, the insertion is prevented when version number is lower than the current version number of the existing product. Re-insertion (for example, product refresh after 30 days) can be performed with the current `version_number`. Only supported for insertions into primary data sources. Do not set this field for updates. Do not set this field for insertions into supplemental data sources. If the operation is prevented, the aborted exception will be thrown.
|
|
850
871
|
*/
|
|
851
872
|
versionNumber?: string | null;
|
|
852
873
|
}
|
|
@@ -1177,7 +1198,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
1177
1198
|
*/
|
|
1178
1199
|
dataSource?: string;
|
|
1179
1200
|
/**
|
|
1180
|
-
* Required. The name of the product input resource to delete. Format: accounts/{account\}/productInputs/{product\} where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is
|
|
1201
|
+
* Required. The name of the product input resource to delete. Format: `accounts/{account\}/productInputs/{product\}` where the last section `product` consists of 4 parts: `channel~content_language~feed_label~offer_id` example for product name is `accounts/123/productInputs/online~en~US~sku123`.
|
|
1181
1202
|
*/
|
|
1182
1203
|
name?: string;
|
|
1183
1204
|
}
|
|
@@ -1187,7 +1208,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
1187
1208
|
*/
|
|
1188
1209
|
dataSource?: string;
|
|
1189
1210
|
/**
|
|
1190
|
-
* Required. The account where this product will be inserted. Format: accounts/{account\}
|
|
1211
|
+
* Required. The account where this product will be inserted. Format: `accounts/{account\}`
|
|
1191
1212
|
*/
|
|
1192
1213
|
parent?: string;
|
|
1193
1214
|
/**
|
|
@@ -1201,7 +1222,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
1201
1222
|
*/
|
|
1202
1223
|
dataSource?: string;
|
|
1203
1224
|
/**
|
|
1204
|
-
* Identifier. The name of the product input. Format: `
|
|
1225
|
+
* Identifier. The name of the product input. Format: `accounts/{account\}/productInputs/{productinput\}` where the last section `productinput` consists of 4 parts: `channel~content_language~feed_label~offer_id` example for product input name is `accounts/123/productInputs/online~en~US~sku123`
|
|
1205
1226
|
*/
|
|
1206
1227
|
name?: string;
|
|
1207
1228
|
/**
|
|
@@ -1231,7 +1252,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
1231
1252
|
get(params: Params$Resource$Accounts$Products$Get, callback: BodyResponseCallback<Schema$Product>): void;
|
|
1232
1253
|
get(callback: BodyResponseCallback<Schema$Product>): void;
|
|
1233
1254
|
/**
|
|
1234
|
-
* Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by pageSize
|
|
1255
|
+
* Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by `pageSize`. Rely on `pageToken` to determine if there are more items to be requested. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
|
|
1235
1256
|
*
|
|
1236
1257
|
* @param params - Parameters for request
|
|
1237
1258
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1247,7 +1268,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
1247
1268
|
}
|
|
1248
1269
|
export interface Params$Resource$Accounts$Products$Get extends StandardParameters {
|
|
1249
1270
|
/**
|
|
1250
|
-
* Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of 4 parts: channel~content_language~feed_label~offer_id example for product name is
|
|
1271
|
+
* Required. The name of the product to retrieve. Format: `accounts/{account\}/products/{product\}` where the last section `product` consists of 4 parts: `channel~content_language~feed_label~offer_id` example for product name is `accounts/123/products/online~en~US~sku123`
|
|
1251
1272
|
*/
|
|
1252
1273
|
name?: string;
|
|
1253
1274
|
}
|
|
@@ -1261,7 +1282,7 @@ export declare namespace merchantapi_products_v1beta {
|
|
|
1261
1282
|
*/
|
|
1262
1283
|
pageToken?: string;
|
|
1263
1284
|
/**
|
|
1264
|
-
* Required. The account to list processed products for. Format: accounts/{account\}
|
|
1285
|
+
* Required. The account to list processed products for. Format: `accounts/{account\}`
|
|
1265
1286
|
*/
|
|
1266
1287
|
parent?: string;
|
|
1267
1288
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products_v1beta.js","sourceRoot":"","sources":["../products_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"products_v1beta.js","sourceRoot":"","sources":["../products_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,2BAA2B,CAiqD3C;AAjqDD,WAAiB,2BAA2B;IAgE1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are namespace merchantapi_reports_v1beta {
|
|
|
955
955
|
*/
|
|
956
956
|
pageToken?: string | null;
|
|
957
957
|
/**
|
|
958
|
-
* Required. Query that defines a report to be retrieved. For details on how to construct your query, see the Query Language guide. For the full list of available tables and fields, see the Available fields.
|
|
958
|
+
* Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](/merchant/api/reference/rest/reports_v1beta/accounts.reports).
|
|
959
959
|
*/
|
|
960
960
|
query?: string | null;
|
|
961
961
|
}
|
package/conversions_v1beta.ts
CHANGED
|
@@ -129,9 +129,12 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
129
129
|
*/
|
|
130
130
|
export interface Schema$AttributionSettings {
|
|
131
131
|
/**
|
|
132
|
-
* Required. Lookback
|
|
132
|
+
* Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` & `40`.
|
|
133
133
|
*/
|
|
134
134
|
attributionLookbackWindowDays?: number | null;
|
|
135
|
+
/**
|
|
136
|
+
* Required. Attribution model.
|
|
137
|
+
*/
|
|
135
138
|
attributionModel?: string | null;
|
|
136
139
|
/**
|
|
137
140
|
* Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.
|
|
@@ -159,7 +162,7 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
159
162
|
*/
|
|
160
163
|
merchantCenterDestination?: Schema$MerchantCenterDestination;
|
|
161
164
|
/**
|
|
162
|
-
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4\}
|
|
165
|
+
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4\}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
|
|
163
166
|
*/
|
|
164
167
|
name?: string | null;
|
|
165
168
|
/**
|
|
@@ -168,7 +171,7 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
168
171
|
state?: string | null;
|
|
169
172
|
}
|
|
170
173
|
/**
|
|
171
|
-
* Message representing
|
|
174
|
+
* Message representing the type of a conversion event.
|
|
172
175
|
*/
|
|
173
176
|
export interface Schema$ConversionType {
|
|
174
177
|
/**
|
|
@@ -219,7 +222,7 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
219
222
|
*/
|
|
220
223
|
export interface Schema$MerchantCenterDestination {
|
|
221
224
|
/**
|
|
222
|
-
* Required. Attribution settings
|
|
225
|
+
* Required. Attribution settings used for the Merchant Center Destination.
|
|
223
226
|
*/
|
|
224
227
|
attributionSettings?: Schema$AttributionSettings;
|
|
225
228
|
/**
|
|
@@ -231,7 +234,7 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
231
234
|
*/
|
|
232
235
|
destination?: string | null;
|
|
233
236
|
/**
|
|
234
|
-
* Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI.
|
|
237
|
+
* Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
|
|
235
238
|
*/
|
|
236
239
|
displayName?: string | null;
|
|
237
240
|
}
|
|
@@ -858,7 +861,7 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
858
861
|
export interface Params$Resource$Accounts$Conversionsources$Create
|
|
859
862
|
extends StandardParameters {
|
|
860
863
|
/**
|
|
861
|
-
* Required. The merchant account that will own the new conversion source. Format: accounts/{account\}
|
|
864
|
+
* Required. The merchant account that will own the new conversion source. Format: `accounts/{account\}`
|
|
862
865
|
*/
|
|
863
866
|
parent?: string;
|
|
864
867
|
|
|
@@ -870,14 +873,14 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
870
873
|
export interface Params$Resource$Accounts$Conversionsources$Delete
|
|
871
874
|
extends StandardParameters {
|
|
872
875
|
/**
|
|
873
|
-
* Required. The name of the conversion source to be deleted. Format: accounts/{account\}/conversionSources/{conversion_source\}
|
|
876
|
+
* Required. The name of the conversion source to be deleted. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
874
877
|
*/
|
|
875
878
|
name?: string;
|
|
876
879
|
}
|
|
877
880
|
export interface Params$Resource$Accounts$Conversionsources$Get
|
|
878
881
|
extends StandardParameters {
|
|
879
882
|
/**
|
|
880
|
-
* Required. The name of the conversion source to be fetched. Format: accounts/{account\}/conversionSources/{conversion_source\}
|
|
883
|
+
* Required. The name of the conversion source to be fetched. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
881
884
|
*/
|
|
882
885
|
name?: string;
|
|
883
886
|
}
|
|
@@ -892,18 +895,18 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
892
895
|
*/
|
|
893
896
|
pageToken?: string;
|
|
894
897
|
/**
|
|
895
|
-
* Required. The merchant account who owns the collection of conversion sources. Format: accounts/{account\}
|
|
898
|
+
* Required. The merchant account who owns the collection of conversion sources. Format: `accounts/{account\}`
|
|
896
899
|
*/
|
|
897
900
|
parent?: string;
|
|
898
901
|
/**
|
|
899
|
-
* Optional. Show deleted (archived)
|
|
902
|
+
* Optional. Show deleted (archived) conversion sources. By default, deleted conversion sources are not returned.
|
|
900
903
|
*/
|
|
901
904
|
showDeleted?: boolean;
|
|
902
905
|
}
|
|
903
906
|
export interface Params$Resource$Accounts$Conversionsources$Patch
|
|
904
907
|
extends StandardParameters {
|
|
905
908
|
/**
|
|
906
|
-
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4\}
|
|
909
|
+
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4\}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
|
|
907
910
|
*/
|
|
908
911
|
name?: string;
|
|
909
912
|
/**
|
|
@@ -919,7 +922,7 @@ export namespace merchantapi_conversions_v1beta {
|
|
|
919
922
|
export interface Params$Resource$Accounts$Conversionsources$Undelete
|
|
920
923
|
extends StandardParameters {
|
|
921
924
|
/**
|
|
922
|
-
* Required. The name of the conversion source to be undeleted. Format: accounts/{account\}/conversionSources/{conversion_source\}
|
|
925
|
+
* Required. The name of the conversion source to be undeleted. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
923
926
|
*/
|
|
924
927
|
name?: string;
|
|
925
928
|
|
package/datasources_v1beta.ts
CHANGED
|
@@ -125,7 +125,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* The [data source](
|
|
128
|
+
* The [data source](/merchant/api/guides/data-sources/overview) for the Merchant Center account.
|
|
129
129
|
*/
|
|
130
130
|
export interface Schema$DataSource {
|
|
131
131
|
/**
|
|
@@ -153,7 +153,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
153
153
|
*/
|
|
154
154
|
merchantReviewDataSource?: Schema$MerchantReviewDataSource;
|
|
155
155
|
/**
|
|
156
|
-
* Identifier. The name of the data source. Format: `
|
|
156
|
+
* Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
157
157
|
*/
|
|
158
158
|
name?: string | null;
|
|
159
159
|
/**
|
|
@@ -1145,7 +1145,7 @@ export namespace merchantapi_datasources_v1beta {
|
|
|
1145
1145
|
export interface Params$Resource$Accounts$Datasources$Patch
|
|
1146
1146
|
extends StandardParameters {
|
|
1147
1147
|
/**
|
|
1148
|
-
* Identifier. The name of the data source. Format: `
|
|
1148
|
+
* Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
1149
1149
|
*/
|
|
1150
1150
|
name?: string;
|
|
1151
1151
|
/**
|
package/inventories_v1beta.ts
CHANGED
|
@@ -321,7 +321,7 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
321
321
|
*/
|
|
322
322
|
account?: string | null;
|
|
323
323
|
/**
|
|
324
|
-
* Availability of the product in this region. For accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/
|
|
324
|
+
* Availability of the product in this region. For accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/6324448).
|
|
325
325
|
*/
|
|
326
326
|
availability?: string | null;
|
|
327
327
|
/**
|
package/lfp_v1beta.ts
CHANGED
|
@@ -124,10 +124,64 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Country-specific settings for the merchant.
|
|
129
|
+
*/
|
|
130
|
+
export interface Schema$CountrySettings {
|
|
131
|
+
/**
|
|
132
|
+
* True if this merchant has enabled free local listings in MC.
|
|
133
|
+
*/
|
|
134
|
+
freeLocalListingsEnabled?: boolean | null;
|
|
135
|
+
/**
|
|
136
|
+
* Output only. The verification state of this merchant's instock serving feature.
|
|
137
|
+
*/
|
|
138
|
+
instockServingVerificationState?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Output only. The verification state of this merchant's inventory check.
|
|
141
|
+
*/
|
|
142
|
+
inventoryVerificationState?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* True if this merchant has enabled local inventory ads in MC.
|
|
145
|
+
*/
|
|
146
|
+
localInventoryAdsEnabled?: boolean | null;
|
|
147
|
+
/**
|
|
148
|
+
* Output only. The verification state of this merchant's pickup serving feature.
|
|
149
|
+
*/
|
|
150
|
+
pickupServingVerificationState?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* Output only. The product page type selected by this merchant.
|
|
153
|
+
*/
|
|
154
|
+
productPageType?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country for which these settings are defined.
|
|
157
|
+
*/
|
|
158
|
+
regionCode?: string | null;
|
|
159
|
+
}
|
|
127
160
|
/**
|
|
128
161
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
129
162
|
*/
|
|
130
163
|
export interface Schema$Empty {}
|
|
164
|
+
/**
|
|
165
|
+
* The inventory statistics for a merchant.
|
|
166
|
+
*/
|
|
167
|
+
export interface Schema$InventoryStats {
|
|
168
|
+
/**
|
|
169
|
+
* Number of entries (understanding entry as a pair of product and store) that were built based on provided inventories/sales and submitted to Google.
|
|
170
|
+
*/
|
|
171
|
+
submittedEntries?: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* Number of submitted in stock entries.
|
|
174
|
+
*/
|
|
175
|
+
submittedInStockEntries?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Number of products from provided inventories/sales that were created from matches to existing online products provided by the merchant or to the Google catalog.
|
|
178
|
+
*/
|
|
179
|
+
submittedProducts?: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* Number of entries that were built based on provided inventories/sales and couldn't be submitted to Google due to errors like missing product.
|
|
182
|
+
*/
|
|
183
|
+
unsubmittedEntries?: string | null;
|
|
184
|
+
}
|
|
131
185
|
/**
|
|
132
186
|
* Local Inventory for the merchant.
|
|
133
187
|
*/
|
|
@@ -189,6 +243,31 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
189
243
|
*/
|
|
190
244
|
targetAccount?: string | null;
|
|
191
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* The LFP state of a merchant.
|
|
248
|
+
*/
|
|
249
|
+
export interface Schema$LfpMerchantState {
|
|
250
|
+
/**
|
|
251
|
+
* Country-specific settings for the merchant.
|
|
252
|
+
*/
|
|
253
|
+
countrySettings?: Schema$CountrySettings[];
|
|
254
|
+
/**
|
|
255
|
+
* The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.
|
|
256
|
+
*/
|
|
257
|
+
inventoryStats?: Schema$InventoryStats;
|
|
258
|
+
/**
|
|
259
|
+
* Number of [GBPs](https://www.google.com/business/) this merchant has access to.
|
|
260
|
+
*/
|
|
261
|
+
linkedGbps?: string | null;
|
|
262
|
+
/**
|
|
263
|
+
* Identifier. The name of the `LfpMerchantState` resource. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`
|
|
264
|
+
*/
|
|
265
|
+
name?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.
|
|
268
|
+
*/
|
|
269
|
+
storeStates?: Schema$LfpStoreState[];
|
|
270
|
+
}
|
|
192
271
|
/**
|
|
193
272
|
* A sale for the merchant.
|
|
194
273
|
*/
|
|
@@ -291,6 +370,23 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
291
370
|
*/
|
|
292
371
|
websiteUri?: string | null;
|
|
293
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* The state of a specific merchant's store.
|
|
375
|
+
*/
|
|
376
|
+
export interface Schema$LfpStoreState {
|
|
377
|
+
/**
|
|
378
|
+
* Output only. The store matching state.
|
|
379
|
+
*/
|
|
380
|
+
matchingState?: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* The hint of why the matching has failed (only set if matching_state is FAILED).
|
|
383
|
+
*/
|
|
384
|
+
matchingStateHint?: string | null;
|
|
385
|
+
/**
|
|
386
|
+
* Required. Immutable. The identifier of this store.
|
|
387
|
+
*/
|
|
388
|
+
storeCode?: string | null;
|
|
389
|
+
}
|
|
294
390
|
/**
|
|
295
391
|
* Response message for the ListLfpStores method.
|
|
296
392
|
*/
|
|
@@ -383,11 +479,15 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
383
479
|
export class Resource$Accounts {
|
|
384
480
|
context: APIRequestContext;
|
|
385
481
|
lfpInventories: Resource$Accounts$Lfpinventories;
|
|
482
|
+
lfpMerchantStates: Resource$Accounts$Lfpmerchantstates;
|
|
386
483
|
lfpSales: Resource$Accounts$Lfpsales;
|
|
387
484
|
lfpStores: Resource$Accounts$Lfpstores;
|
|
388
485
|
constructor(context: APIRequestContext) {
|
|
389
486
|
this.context = context;
|
|
390
487
|
this.lfpInventories = new Resource$Accounts$Lfpinventories(this.context);
|
|
488
|
+
this.lfpMerchantStates = new Resource$Accounts$Lfpmerchantstates(
|
|
489
|
+
this.context
|
|
490
|
+
);
|
|
391
491
|
this.lfpSales = new Resource$Accounts$Lfpsales(this.context);
|
|
392
492
|
this.lfpStores = new Resource$Accounts$Lfpstores(this.context);
|
|
393
493
|
}
|
|
@@ -500,6 +600,109 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
500
600
|
requestBody?: Schema$LfpInventory;
|
|
501
601
|
}
|
|
502
602
|
|
|
603
|
+
export class Resource$Accounts$Lfpmerchantstates {
|
|
604
|
+
context: APIRequestContext;
|
|
605
|
+
constructor(context: APIRequestContext) {
|
|
606
|
+
this.context = context;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Gets the LFP state of a merchant
|
|
611
|
+
*
|
|
612
|
+
* @param params - Parameters for request
|
|
613
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
614
|
+
* @param callback - Optional callback that handles the response.
|
|
615
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
616
|
+
*/
|
|
617
|
+
get(
|
|
618
|
+
params: Params$Resource$Accounts$Lfpmerchantstates$Get,
|
|
619
|
+
options: StreamMethodOptions
|
|
620
|
+
): GaxiosPromise<Readable>;
|
|
621
|
+
get(
|
|
622
|
+
params?: Params$Resource$Accounts$Lfpmerchantstates$Get,
|
|
623
|
+
options?: MethodOptions
|
|
624
|
+
): GaxiosPromise<Schema$LfpMerchantState>;
|
|
625
|
+
get(
|
|
626
|
+
params: Params$Resource$Accounts$Lfpmerchantstates$Get,
|
|
627
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
628
|
+
callback: BodyResponseCallback<Readable>
|
|
629
|
+
): void;
|
|
630
|
+
get(
|
|
631
|
+
params: Params$Resource$Accounts$Lfpmerchantstates$Get,
|
|
632
|
+
options: MethodOptions | BodyResponseCallback<Schema$LfpMerchantState>,
|
|
633
|
+
callback: BodyResponseCallback<Schema$LfpMerchantState>
|
|
634
|
+
): void;
|
|
635
|
+
get(
|
|
636
|
+
params: Params$Resource$Accounts$Lfpmerchantstates$Get,
|
|
637
|
+
callback: BodyResponseCallback<Schema$LfpMerchantState>
|
|
638
|
+
): void;
|
|
639
|
+
get(callback: BodyResponseCallback<Schema$LfpMerchantState>): void;
|
|
640
|
+
get(
|
|
641
|
+
paramsOrCallback?:
|
|
642
|
+
| Params$Resource$Accounts$Lfpmerchantstates$Get
|
|
643
|
+
| BodyResponseCallback<Schema$LfpMerchantState>
|
|
644
|
+
| BodyResponseCallback<Readable>,
|
|
645
|
+
optionsOrCallback?:
|
|
646
|
+
| MethodOptions
|
|
647
|
+
| StreamMethodOptions
|
|
648
|
+
| BodyResponseCallback<Schema$LfpMerchantState>
|
|
649
|
+
| BodyResponseCallback<Readable>,
|
|
650
|
+
callback?:
|
|
651
|
+
| BodyResponseCallback<Schema$LfpMerchantState>
|
|
652
|
+
| BodyResponseCallback<Readable>
|
|
653
|
+
): void | GaxiosPromise<Schema$LfpMerchantState> | GaxiosPromise<Readable> {
|
|
654
|
+
let params = (paramsOrCallback ||
|
|
655
|
+
{}) as Params$Resource$Accounts$Lfpmerchantstates$Get;
|
|
656
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
657
|
+
|
|
658
|
+
if (typeof paramsOrCallback === 'function') {
|
|
659
|
+
callback = paramsOrCallback;
|
|
660
|
+
params = {} as Params$Resource$Accounts$Lfpmerchantstates$Get;
|
|
661
|
+
options = {};
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
if (typeof optionsOrCallback === 'function') {
|
|
665
|
+
callback = optionsOrCallback;
|
|
666
|
+
options = {};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
670
|
+
const parameters = {
|
|
671
|
+
options: Object.assign(
|
|
672
|
+
{
|
|
673
|
+
url: (rootUrl + '/lfp/v1beta/{+name}').replace(
|
|
674
|
+
/([^:]\/)\/+/g,
|
|
675
|
+
'$1'
|
|
676
|
+
),
|
|
677
|
+
method: 'GET',
|
|
678
|
+
apiVersion: '',
|
|
679
|
+
},
|
|
680
|
+
options
|
|
681
|
+
),
|
|
682
|
+
params,
|
|
683
|
+
requiredParams: ['name'],
|
|
684
|
+
pathParams: ['name'],
|
|
685
|
+
context: this.context,
|
|
686
|
+
};
|
|
687
|
+
if (callback) {
|
|
688
|
+
createAPIRequest<Schema$LfpMerchantState>(
|
|
689
|
+
parameters,
|
|
690
|
+
callback as BodyResponseCallback<unknown>
|
|
691
|
+
);
|
|
692
|
+
} else {
|
|
693
|
+
return createAPIRequest<Schema$LfpMerchantState>(parameters);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export interface Params$Resource$Accounts$Lfpmerchantstates$Get
|
|
699
|
+
extends StandardParameters {
|
|
700
|
+
/**
|
|
701
|
+
* Required. The name of the state to retrieve. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`
|
|
702
|
+
*/
|
|
703
|
+
name?: string;
|
|
704
|
+
}
|
|
705
|
+
|
|
503
706
|
export class Resource$Accounts$Lfpsales {
|
|
504
707
|
context: APIRequestContext;
|
|
505
708
|
constructor(context: APIRequestContext) {
|