@googleapis/merchantapi 3.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/accounts_v1beta.ts +359 -26
- package/build/accounts_v1beta.d.ts +194 -26
- package/build/accounts_v1beta.js +64 -0
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +10 -6
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +28 -7
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +10 -6
- package/build/inventories_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +10 -6
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +10 -6
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +43 -7
- package/build/products_v1beta.js +32 -0
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +10 -6
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +10 -6
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +10 -6
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +12 -8
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +10 -6
- package/datasources_v1beta.ts +28 -7
- package/inventories_v1beta.ts +10 -6
- package/lfp_v1beta.ts +10 -6
- package/notifications_v1beta.ts +10 -6
- package/package.json +1 -1
- package/products_v1beta.ts +119 -7
- package/promotions_v1beta.ts +10 -6
- package/quota_v1beta.ts +10 -6
- package/reports_v1beta.ts +10 -6
- package/reviews_v1beta.ts +12 -8
|
@@ -102,7 +102,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
102
102
|
*/
|
|
103
103
|
accountName?: string | null;
|
|
104
104
|
/**
|
|
105
|
-
* Whether this account contains adult content.
|
|
105
|
+
* Optional. Whether this account contains adult content.
|
|
106
106
|
*/
|
|
107
107
|
adultContent?: boolean | null;
|
|
108
108
|
/**
|
|
@@ -194,6 +194,19 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
194
194
|
*/
|
|
195
195
|
streetAddress?: string | null;
|
|
196
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Instruction for adding a user to the account during creation.
|
|
199
|
+
*/
|
|
200
|
+
export interface Schema$AddUser {
|
|
201
|
+
/**
|
|
202
|
+
* Optional. Details about the user to be added. At the moment, only access rights may be specified.
|
|
203
|
+
*/
|
|
204
|
+
user?: Schema$User;
|
|
205
|
+
/**
|
|
206
|
+
* Required. The email address of the user (for example, `john.doe@gmail.com`).
|
|
207
|
+
*/
|
|
208
|
+
userId?: string | null;
|
|
209
|
+
}
|
|
197
210
|
/**
|
|
198
211
|
* Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.
|
|
199
212
|
*/
|
|
@@ -211,6 +224,74 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
211
224
|
*/
|
|
212
225
|
name?: string | null;
|
|
213
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* This improvement will attempt to automatically correct submitted images if they don't meet the [image requirements](https://support.google.com/merchants/answer/6324350), for example, removing overlays. If successful, the image will be replaced and approved. This improvement is only applied to images of disapproved offers. For more information see: [Automatic image improvements](https://support.google.com/merchants/answer/9242973)
|
|
229
|
+
*/
|
|
230
|
+
export interface Schema$AutomaticImageImprovements {
|
|
231
|
+
/**
|
|
232
|
+
* Optional. Determines how the images should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.
|
|
233
|
+
*/
|
|
234
|
+
accountImageImprovementsSettings?: Schema$ImageImprovementsAccountLevelSettings;
|
|
235
|
+
/**
|
|
236
|
+
* Output only. The effective value of allow_automatic_image_improvements. If account_image_improvements_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. Read-only.
|
|
237
|
+
*/
|
|
238
|
+
effectiveAllowAutomaticImageImprovements?: boolean | null;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Collection of information related to the [automatic improvements](https://developers.google.com/shopping-content/guides/automatic-improvements) of an account.
|
|
242
|
+
*/
|
|
243
|
+
export interface Schema$AutomaticImprovements {
|
|
244
|
+
/**
|
|
245
|
+
* This improvement will attempt to automatically correct submitted images if they don't meet the [image requirements](https://support.google.com/merchants/answer/6324350), for example, removing overlays. If successful, the image will be replaced and approved. This improvement is only applied to images of disapproved offers. For more information see: [Automatic image improvements](https://support.google.com/merchants/answer/9242973) This field is only updated (cleared) if provided in the update mask.
|
|
246
|
+
*/
|
|
247
|
+
imageImprovements?: Schema$AutomaticImageImprovements;
|
|
248
|
+
/**
|
|
249
|
+
* Turning on [item updates](https://support.google.com/merchants/answer/3246284) allows Google to automatically update items for you. When item updates are on, Google uses the structured data markup on the website and advanced data extractors to update the price and availability of the items. When the item updates are off, items with mismatched data aren't shown. This field is only updated (cleared) if provided in the update mask.
|
|
250
|
+
*/
|
|
251
|
+
itemUpdates?: Schema$AutomaticItemUpdates;
|
|
252
|
+
/**
|
|
253
|
+
* Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
|
|
254
|
+
*/
|
|
255
|
+
name?: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* Not available for MCAs [accounts](https://support.google.com/merchants/answer/188487). By turning on [automatic shipping improvements](https://support.google.com/merchants/answer/10027038), you are allowing Google to improve the accuracy of your delivery times shown to shoppers using Google. More accurate delivery times, especially when faster, typically lead to better conversion rates. Google will improve your estimated delivery times based on various factors: * Delivery address of an order * Current handling time and shipping time settings * Estimated weekdays or business days * Parcel tracking data This field is only updated (cleared) if provided in the update mask.
|
|
258
|
+
*/
|
|
259
|
+
shippingImprovements?: Schema$AutomaticShippingImprovements;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Turning on [item updates](https://support.google.com/merchants/answer/3246284) allows Google to automatically update items for you. When item updates are on, Google uses the structured data markup on the website and advanced data extractors to update the price and availability of the items. When the item updates are off, items with mismatched data aren't shown.
|
|
263
|
+
*/
|
|
264
|
+
export interface Schema$AutomaticItemUpdates {
|
|
265
|
+
/**
|
|
266
|
+
* Optional. Determines which attributes of the items should be automatically updated. If this field is not present and provided in the update mask, then the settings will be deleted. If there are no settings for subaccount, they are inherited from aggregator.
|
|
267
|
+
*/
|
|
268
|
+
accountItemUpdatesSettings?: Schema$ItemUpdatesAccountLevelSettings;
|
|
269
|
+
/**
|
|
270
|
+
* Output only. The effective value of allow_availability_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only.
|
|
271
|
+
*/
|
|
272
|
+
effectiveAllowAvailabilityUpdates?: boolean | null;
|
|
273
|
+
/**
|
|
274
|
+
* Output only. The effective value of allow_condition_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only.
|
|
275
|
+
*/
|
|
276
|
+
effectiveAllowConditionUpdates?: boolean | null;
|
|
277
|
+
/**
|
|
278
|
+
* Output only. The effective value of allow_price_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only.
|
|
279
|
+
*/
|
|
280
|
+
effectiveAllowPriceUpdates?: boolean | null;
|
|
281
|
+
/**
|
|
282
|
+
* Output only. The effective value of allow_strict_availability_updates. If account_item_updates_settings is present, then this value is the same. Otherwise, it represents the inherited value of the parent account. The default value is true if no settings are present. Read-only.
|
|
283
|
+
*/
|
|
284
|
+
effectiveAllowStrictAvailabilityUpdates?: boolean | null;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Not available for MCAs [accounts](https://support.google.com/merchants/answer/188487). By turning on [automatic shipping improvements](https://support.google.com/merchants/answer/10027038), you are allowing Google to improve the accuracy of your delivery times shown to shoppers using Google. More accurate delivery times, especially when faster, typically lead to better conversion rates. Google will improve your estimated delivery times based on various factors: * Delivery address of an order * Current handling time and shipping time settings * Estimated weekdays or business days * Parcel tracking data
|
|
288
|
+
*/
|
|
289
|
+
export interface Schema$AutomaticShippingImprovements {
|
|
290
|
+
/**
|
|
291
|
+
* Enables automatic shipping improvements.
|
|
292
|
+
*/
|
|
293
|
+
allowShippingImprovements?: boolean | null;
|
|
294
|
+
}
|
|
214
295
|
/**
|
|
215
296
|
* Business days of the warehouse.
|
|
216
297
|
*/
|
|
@@ -335,6 +416,10 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
335
416
|
/**
|
|
336
417
|
* Optional. Users to be added to the account.
|
|
337
418
|
*/
|
|
419
|
+
user?: Schema$AddUser[];
|
|
420
|
+
/**
|
|
421
|
+
* Optional. Users to be added to the account. This field is deprecated and will not exist after the API evolves out of beta. Use the `user` field instead.
|
|
422
|
+
*/
|
|
338
423
|
users?: Schema$CreateUserRequest[];
|
|
339
424
|
}
|
|
340
425
|
/**
|
|
@@ -564,6 +649,15 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
564
649
|
*/
|
|
565
650
|
identityDeclaration?: string | null;
|
|
566
651
|
}
|
|
652
|
+
/**
|
|
653
|
+
* Settings for the Automatic Image Improvements.
|
|
654
|
+
*/
|
|
655
|
+
export interface Schema$ImageImprovementsAccountLevelSettings {
|
|
656
|
+
/**
|
|
657
|
+
* Enables automatic image improvements.
|
|
658
|
+
*/
|
|
659
|
+
allowAutomaticImageImprovements?: boolean | null;
|
|
660
|
+
}
|
|
567
661
|
/**
|
|
568
662
|
* The impact of the issue on a region.
|
|
569
663
|
*/
|
|
@@ -590,6 +684,27 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
590
684
|
*/
|
|
591
685
|
reportingContext?: string | null;
|
|
592
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* Settings for the Automatic Item Updates.
|
|
689
|
+
*/
|
|
690
|
+
export interface Schema$ItemUpdatesAccountLevelSettings {
|
|
691
|
+
/**
|
|
692
|
+
* If availability updates are enabled, any previous availability values get overwritten if Google finds an out-of-stock annotation on the offer's page. If additionally `allow_strict_availability_updates` field is set to true, values get overwritten if Google finds an in-stock annotation on the offer’s page.
|
|
693
|
+
*/
|
|
694
|
+
allowAvailabilityUpdates?: boolean | null;
|
|
695
|
+
/**
|
|
696
|
+
* If condition updates are enabled, Google always updates item condition with the condition detected from the details of your product.
|
|
697
|
+
*/
|
|
698
|
+
allowConditionUpdates?: boolean | null;
|
|
699
|
+
/**
|
|
700
|
+
* If price updates are enabled, Google always updates the active price with the crawled information.
|
|
701
|
+
*/
|
|
702
|
+
allowPriceUpdates?: boolean | null;
|
|
703
|
+
/**
|
|
704
|
+
* If `allow_availability_updates` is enabled, items are automatically updated in all your Shopping target countries. By default, availability updates will only be applied to items that are 'out of stock' on your website but 'in stock' on Shopping. Set this to true to also update items that are 'in stock' on your website, but 'out of stock' on Google Shopping. In order for this field to have an effect, you must also set `allow_availability_updates`.
|
|
705
|
+
*/
|
|
706
|
+
allowStrictAvailabilityUpdates?: boolean | null;
|
|
707
|
+
}
|
|
593
708
|
/**
|
|
594
709
|
* Response message for the `ListAccountIssues` method.
|
|
595
710
|
*/
|
|
@@ -751,7 +866,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
751
866
|
*/
|
|
752
867
|
countries?: string[] | null;
|
|
753
868
|
/**
|
|
754
|
-
* The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'.
|
|
869
|
+
* Optional. The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'.
|
|
755
870
|
*/
|
|
756
871
|
itemConditions?: string[] | null;
|
|
757
872
|
/**
|
|
@@ -763,7 +878,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
763
878
|
*/
|
|
764
879
|
name?: string | null;
|
|
765
880
|
/**
|
|
766
|
-
* The return policy.
|
|
881
|
+
* Optional. The return policy.
|
|
767
882
|
*/
|
|
768
883
|
policy?: Schema$Policy;
|
|
769
884
|
/**
|
|
@@ -771,11 +886,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
771
886
|
*/
|
|
772
887
|
processRefundDays?: number | null;
|
|
773
888
|
/**
|
|
774
|
-
* The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
|
|
889
|
+
* Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
|
|
775
890
|
*/
|
|
776
891
|
restockingFee?: Schema$RestockingFee;
|
|
777
892
|
/**
|
|
778
|
-
* The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.
|
|
893
|
+
* Optional. The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.
|
|
779
894
|
*/
|
|
780
895
|
returnMethods?: string[] | null;
|
|
781
896
|
/**
|
|
@@ -787,7 +902,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
787
902
|
*/
|
|
788
903
|
returnPolicyUri?: string | null;
|
|
789
904
|
/**
|
|
790
|
-
* The return shipping fee. Should be set only when customer need to download and print the return label.
|
|
905
|
+
* Optional. The return shipping fee. Should be set only when customer need to download and print the return label.
|
|
791
906
|
*/
|
|
792
907
|
returnShippingFee?: Schema$ReturnShippingFee;
|
|
793
908
|
/**
|
|
@@ -918,19 +1033,19 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
918
1033
|
*/
|
|
919
1034
|
export interface Schema$ProductChange {
|
|
920
1035
|
/**
|
|
921
|
-
* The new value of the changed resource or attribute.
|
|
1036
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
922
1037
|
*/
|
|
923
1038
|
newValue?: string | null;
|
|
924
1039
|
/**
|
|
925
|
-
* The old value of the changed resource or attribute.
|
|
1040
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
926
1041
|
*/
|
|
927
1042
|
oldValue?: string | null;
|
|
928
1043
|
/**
|
|
929
|
-
* Countries that have the change (if applicable)
|
|
1044
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
930
1045
|
*/
|
|
931
1046
|
regionCode?: string | null;
|
|
932
1047
|
/**
|
|
933
|
-
* Reporting contexts that have the change (if applicable)
|
|
1048
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
934
1049
|
*/
|
|
935
1050
|
reportingContext?: string | null;
|
|
936
1051
|
}
|
|
@@ -951,7 +1066,11 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
951
1066
|
*/
|
|
952
1067
|
changes?: Schema$ProductChange[];
|
|
953
1068
|
/**
|
|
954
|
-
* The
|
|
1069
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
1070
|
+
*/
|
|
1071
|
+
eventTime?: string | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
955
1074
|
*/
|
|
956
1075
|
expirationTime?: string | null;
|
|
957
1076
|
/**
|
|
@@ -959,7 +1078,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
959
1078
|
*/
|
|
960
1079
|
managingAccount?: string | null;
|
|
961
1080
|
/**
|
|
962
|
-
* The product name. Format: `
|
|
1081
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
963
1082
|
*/
|
|
964
1083
|
resource?: string | null;
|
|
965
1084
|
/**
|
|
@@ -972,7 +1091,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
972
1091
|
resourceType?: string | null;
|
|
973
1092
|
}
|
|
974
1093
|
/**
|
|
975
|
-
* Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free.
|
|
1094
|
+
* Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`
|
|
976
1095
|
*/
|
|
977
1096
|
export interface Schema$Program {
|
|
978
1097
|
/**
|
|
@@ -1119,26 +1238,27 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1119
1238
|
*/
|
|
1120
1239
|
cells?: Schema$Value[];
|
|
1121
1240
|
}
|
|
1122
|
-
/**
|
|
1123
|
-
* Next: 5
|
|
1124
|
-
*/
|
|
1125
1241
|
export interface Schema$SeasonalOverride {
|
|
1126
|
-
/**
|
|
1127
|
-
* Required. Defines the date range when this seasonal override applies. Both begin and end are inclusive and should be in date decimal format, example 20250115. The dates of the seasonal overrides should not overlap.
|
|
1128
|
-
*/
|
|
1129
|
-
begin?: Schema$Date;
|
|
1130
1242
|
/**
|
|
1131
1243
|
* Required. seasonal override end date (inclusive).
|
|
1132
1244
|
*/
|
|
1133
|
-
|
|
1245
|
+
endDate?: Schema$Date;
|
|
1134
1246
|
/**
|
|
1135
1247
|
* Required. Display name of this seasonal override in Merchant Center.
|
|
1136
1248
|
*/
|
|
1137
1249
|
label?: string | null;
|
|
1138
1250
|
/**
|
|
1139
|
-
*
|
|
1251
|
+
* Number of days (from the delivery date) that the product can be returned.
|
|
1140
1252
|
*/
|
|
1141
|
-
|
|
1253
|
+
returnDays?: number | null;
|
|
1254
|
+
/**
|
|
1255
|
+
* Fixed end date until which the product can be returned.
|
|
1256
|
+
*/
|
|
1257
|
+
returnUntilDate?: Schema$Date;
|
|
1258
|
+
/**
|
|
1259
|
+
* Required. Defines the date range when this seasonal override applies. Both start_date and end_date are inclusive. The dates of the seasonal overrides should not overlap.
|
|
1260
|
+
*/
|
|
1261
|
+
startDate?: Schema$Date;
|
|
1142
1262
|
}
|
|
1143
1263
|
/**
|
|
1144
1264
|
* Shipping service.
|
|
@@ -1390,7 +1510,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1390
1510
|
*/
|
|
1391
1511
|
export interface Schema$User {
|
|
1392
1512
|
/**
|
|
1393
|
-
*
|
|
1513
|
+
* Required. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
|
|
1394
1514
|
*/
|
|
1395
1515
|
accessRights?: string[] | null;
|
|
1396
1516
|
/**
|
|
@@ -1553,7 +1673,21 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1553
1673
|
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
|
|
1554
1674
|
get(callback: BodyResponseCallback<Schema$Account>): void;
|
|
1555
1675
|
/**
|
|
1556
|
-
*
|
|
1676
|
+
* Retrieves the automatic improvements of an account.
|
|
1677
|
+
*
|
|
1678
|
+
* @param params - Parameters for request
|
|
1679
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1680
|
+
* @param callback - Optional callback that handles the response.
|
|
1681
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1682
|
+
*/
|
|
1683
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1684
|
+
getAutomaticImprovements(params?: Params$Resource$Accounts$Getautomaticimprovements, options?: MethodOptions): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
1685
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1686
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
1687
|
+
getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
1688
|
+
getAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
1689
|
+
/**
|
|
1690
|
+
* Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate.
|
|
1557
1691
|
*
|
|
1558
1692
|
* @param params - Parameters for request
|
|
1559
1693
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1594,6 +1728,20 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1594
1728
|
patch(params: Params$Resource$Accounts$Patch, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
|
1595
1729
|
patch(params: Params$Resource$Accounts$Patch, callback: BodyResponseCallback<Schema$Account>): void;
|
|
1596
1730
|
patch(callback: BodyResponseCallback<Schema$Account>): void;
|
|
1731
|
+
/**
|
|
1732
|
+
* Updates the automatic improvements of an account.
|
|
1733
|
+
*
|
|
1734
|
+
* @param params - Parameters for request
|
|
1735
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1736
|
+
* @param callback - Optional callback that handles the response.
|
|
1737
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1738
|
+
*/
|
|
1739
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1740
|
+
updateAutomaticImprovements(params?: Params$Resource$Accounts$Updateautomaticimprovements, options?: MethodOptions): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
1741
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1742
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
1743
|
+
updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
1744
|
+
updateAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
|
|
1597
1745
|
}
|
|
1598
1746
|
export interface Params$Resource$Accounts$Createandconfigure extends StandardParameters {
|
|
1599
1747
|
/**
|
|
@@ -1617,9 +1765,15 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1617
1765
|
*/
|
|
1618
1766
|
name?: string;
|
|
1619
1767
|
}
|
|
1768
|
+
export interface Params$Resource$Accounts$Getautomaticimprovements extends StandardParameters {
|
|
1769
|
+
/**
|
|
1770
|
+
* Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
|
|
1771
|
+
*/
|
|
1772
|
+
name?: string;
|
|
1773
|
+
}
|
|
1620
1774
|
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
1621
1775
|
/**
|
|
1622
|
-
* Optional. Returns only accounts that match the [filter](/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](/merchant/api/guides/accounts/filter-syntax).
|
|
1776
|
+
* Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax).
|
|
1623
1777
|
*/
|
|
1624
1778
|
filter?: string;
|
|
1625
1779
|
/**
|
|
@@ -1659,6 +1813,20 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1659
1813
|
*/
|
|
1660
1814
|
requestBody?: Schema$Account;
|
|
1661
1815
|
}
|
|
1816
|
+
export interface Params$Resource$Accounts$Updateautomaticimprovements extends StandardParameters {
|
|
1817
|
+
/**
|
|
1818
|
+
* Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
|
|
1819
|
+
*/
|
|
1820
|
+
name?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements`
|
|
1823
|
+
*/
|
|
1824
|
+
updateMask?: string;
|
|
1825
|
+
/**
|
|
1826
|
+
* Request body metadata
|
|
1827
|
+
*/
|
|
1828
|
+
requestBody?: Schema$AutomaticImprovements;
|
|
1829
|
+
}
|
|
1662
1830
|
export class Resource$Accounts$Autofeedsettings {
|
|
1663
1831
|
context: APIRequestContext;
|
|
1664
1832
|
constructor(context: APIRequestContext);
|
package/build/accounts_v1beta.js
CHANGED
|
@@ -154,6 +154,38 @@ var merchantapi_accounts_v1beta;
|
|
|
154
154
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
+
getAutomaticImprovements(paramsOrCallback, optionsOrCallback, callback) {
|
|
158
|
+
let params = (paramsOrCallback ||
|
|
159
|
+
{});
|
|
160
|
+
let options = (optionsOrCallback || {});
|
|
161
|
+
if (typeof paramsOrCallback === 'function') {
|
|
162
|
+
callback = paramsOrCallback;
|
|
163
|
+
params = {};
|
|
164
|
+
options = {};
|
|
165
|
+
}
|
|
166
|
+
if (typeof optionsOrCallback === 'function') {
|
|
167
|
+
callback = optionsOrCallback;
|
|
168
|
+
options = {};
|
|
169
|
+
}
|
|
170
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
171
|
+
const parameters = {
|
|
172
|
+
options: Object.assign({
|
|
173
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
174
|
+
method: 'GET',
|
|
175
|
+
apiVersion: '',
|
|
176
|
+
}, options),
|
|
177
|
+
params,
|
|
178
|
+
requiredParams: ['name'],
|
|
179
|
+
pathParams: ['name'],
|
|
180
|
+
context: this.context,
|
|
181
|
+
};
|
|
182
|
+
if (callback) {
|
|
183
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
157
189
|
list(paramsOrCallback, optionsOrCallback, callback) {
|
|
158
190
|
let params = (paramsOrCallback || {});
|
|
159
191
|
let options = (optionsOrCallback || {});
|
|
@@ -248,6 +280,38 @@ var merchantapi_accounts_v1beta;
|
|
|
248
280
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
249
281
|
}
|
|
250
282
|
}
|
|
283
|
+
updateAutomaticImprovements(paramsOrCallback, optionsOrCallback, callback) {
|
|
284
|
+
let params = (paramsOrCallback ||
|
|
285
|
+
{});
|
|
286
|
+
let options = (optionsOrCallback || {});
|
|
287
|
+
if (typeof paramsOrCallback === 'function') {
|
|
288
|
+
callback = paramsOrCallback;
|
|
289
|
+
params = {};
|
|
290
|
+
options = {};
|
|
291
|
+
}
|
|
292
|
+
if (typeof optionsOrCallback === 'function') {
|
|
293
|
+
callback = optionsOrCallback;
|
|
294
|
+
options = {};
|
|
295
|
+
}
|
|
296
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
297
|
+
const parameters = {
|
|
298
|
+
options: Object.assign({
|
|
299
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
300
|
+
method: 'PATCH',
|
|
301
|
+
apiVersion: '',
|
|
302
|
+
}, options),
|
|
303
|
+
params,
|
|
304
|
+
requiredParams: ['name'],
|
|
305
|
+
pathParams: ['name'],
|
|
306
|
+
context: this.context,
|
|
307
|
+
};
|
|
308
|
+
if (callback) {
|
|
309
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
251
315
|
}
|
|
252
316
|
merchantapi_accounts_v1beta.Resource$Accounts = Resource$Accounts;
|
|
253
317
|
class Resource$Accounts$Autofeedsettings {
|