@googleapis/merchantapi 16.1.0 → 17.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 +23 -0
- package/accounts_v1.ts +344 -501
- package/accounts_v1beta.ts +342 -136
- package/build/accounts_v1.d.ts +194 -196
- package/build/accounts_v1.js +41 -73
- package/build/accounts_v1.js.map +1 -1
- package/build/accounts_v1beta.d.ts +194 -0
- package/build/accounts_v1beta.js +41 -0
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1.js.map +1 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1.js.map +1 -1
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1.d.ts +14 -50
- package/build/inventories_v1.js.map +1 -1
- package/build/inventories_v1beta.d.ts +14 -50
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +2 -8
- package/build/issueresolution_v1.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +2 -8
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1.js.map +1 -1
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1.js.map +1 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1.js.map +1 -1
- package/build/ordertracking_v1beta.js.map +1 -1
- package/build/products_v1.d.ts +11 -29
- package/build/products_v1.js.map +1 -1
- package/build/products_v1beta.d.ts +11 -29
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1.js.map +1 -1
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1.d.ts +196 -0
- package/build/quota_v1.js +73 -0
- package/build/quota_v1.js.map +1 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1.js.map +1 -1
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/conversions_v1.ts +6 -12
- package/conversions_v1beta.ts +6 -12
- package/datasources_v1.ts +7 -14
- package/datasources_v1beta.ts +7 -14
- package/inventories_v1.ts +20 -62
- package/inventories_v1beta.ts +20 -62
- package/issueresolution_v1.ts +6 -16
- package/issueresolution_v1beta.ts +6 -16
- package/lfp_v1.ts +7 -14
- package/lfp_v1beta.ts +7 -14
- package/notifications_v1.ts +5 -10
- package/notifications_v1beta.ts +5 -10
- package/ordertracking_v1.ts +1 -2
- package/ordertracking_v1beta.ts +1 -2
- package/package.json +1 -1
- package/products_v1.ts +16 -39
- package/products_v1beta.ts +16 -39
- package/promotions_v1.ts +3 -6
- package/promotions_v1beta.ts +3 -6
- package/quota_v1.ts +357 -2
- package/quota_v1beta.ts +1 -2
- package/reports_v1.ts +1 -2
- package/reports_v1beta.ts +1 -2
- package/reviews_v1beta.ts +8 -16
package/build/accounts_v1.d.ts
CHANGED
|
@@ -177,19 +177,6 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
177
177
|
*/
|
|
178
178
|
title?: string | null;
|
|
179
179
|
}
|
|
180
|
-
/**
|
|
181
|
-
* A limit of a certain type that is applied to an account.
|
|
182
|
-
*/
|
|
183
|
-
export interface Schema$AccountLimit {
|
|
184
|
-
/**
|
|
185
|
-
* Identifier. The limit part of the name will be a combination of the type and the scope. For example: `accounts/123/limits/products~ADS_NON_EEA` Format: `accounts/{account\}/limits/{limit\}`
|
|
186
|
-
*/
|
|
187
|
-
name?: string | null;
|
|
188
|
-
/**
|
|
189
|
-
* The limit for products.
|
|
190
|
-
*/
|
|
191
|
-
products?: Schema$ProductLimit;
|
|
192
|
-
}
|
|
193
180
|
/**
|
|
194
181
|
* `AccountManagement` payload.
|
|
195
182
|
*/
|
|
@@ -232,6 +219,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
232
219
|
* Service type for managing advertising campaigns. Grants the provider access to create and manage the business's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance.
|
|
233
220
|
*/
|
|
234
221
|
campaignsManagement?: Schema$CampaignsManagement;
|
|
222
|
+
/**
|
|
223
|
+
* Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service) managing the account. See https://support.google.com/merchants/answer/12653197
|
|
224
|
+
*/
|
|
225
|
+
comparisonShopping?: Schema$ComparisonShopping;
|
|
235
226
|
/**
|
|
236
227
|
* Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider.
|
|
237
228
|
*/
|
|
@@ -273,6 +264,26 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
273
264
|
* The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation.
|
|
274
265
|
*/
|
|
275
266
|
accountAggregation?: Schema$AccountAggregation;
|
|
267
|
+
/**
|
|
268
|
+
* The provider manages this account. Payload for service type Account Management.
|
|
269
|
+
*/
|
|
270
|
+
accountManagement?: Schema$AccountManagement;
|
|
271
|
+
/**
|
|
272
|
+
* The provider manages campaigns for this account. Payload for service type campaigns management.
|
|
273
|
+
*/
|
|
274
|
+
campaignsManagement?: Schema$CampaignsManagement;
|
|
275
|
+
/**
|
|
276
|
+
* The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.
|
|
277
|
+
*/
|
|
278
|
+
comparisonShopping?: Schema$ComparisonShopping;
|
|
279
|
+
/**
|
|
280
|
+
* Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. The external account ID must be specified for the campaigns management service type. The external account ID must not be specified for the account aggregation service type. The external account ID is optional / may be specified for all other service types.
|
|
281
|
+
*/
|
|
282
|
+
externalAccountId?: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* The provider manages products for this account. Payload for service type products management.
|
|
285
|
+
*/
|
|
286
|
+
productsManagement?: Schema$ProductsManagement;
|
|
276
287
|
/**
|
|
277
288
|
* Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
|
|
278
289
|
*/
|
|
@@ -315,6 +326,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
315
326
|
* Required. The email address of the user (for example, `john.doe@gmail.com`).
|
|
316
327
|
*/
|
|
317
328
|
userId?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* Optional. Settings related to configuring the verification email that is sent after adding a user.
|
|
331
|
+
*/
|
|
332
|
+
verificationMailSettings?: Schema$VerificationMailSettings;
|
|
318
333
|
}
|
|
319
334
|
/**
|
|
320
335
|
* Request to approve an account service.
|
|
@@ -602,6 +617,11 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
602
617
|
*/
|
|
603
618
|
overwrite?: boolean | null;
|
|
604
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* `ComparisonShopping` payload.
|
|
622
|
+
*/
|
|
623
|
+
export interface Schema$ComparisonShopping {
|
|
624
|
+
}
|
|
605
625
|
/**
|
|
606
626
|
* Request message for the `CreateAndConfigureAccount` method.
|
|
607
627
|
*/
|
|
@@ -614,6 +634,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
614
634
|
* Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation` and `accounts.createAndConfigure` method can be used to create a sub-account under an existing advanced account through this method. Additional `account_management` or `product_management` services may be provided.
|
|
615
635
|
*/
|
|
616
636
|
service?: Schema$AddAccountService[];
|
|
637
|
+
/**
|
|
638
|
+
* Optional. If a relationship is created with a provider, you can set an alias for it with this field. The calling user must be an admin on the provider to be able to set an alias.
|
|
639
|
+
*/
|
|
640
|
+
setAlias?: Schema$SetAliasForRelationship[];
|
|
617
641
|
/**
|
|
618
642
|
* Optional. Users to be added to the account.
|
|
619
643
|
*/
|
|
@@ -1018,6 +1042,19 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1018
1042
|
*/
|
|
1019
1043
|
allowStrictAvailabilityUpdates?: boolean | null;
|
|
1020
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
|
|
1047
|
+
*/
|
|
1048
|
+
export interface Schema$LatLng {
|
|
1049
|
+
/**
|
|
1050
|
+
* The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
1051
|
+
*/
|
|
1052
|
+
latitude?: number | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
1055
|
+
*/
|
|
1056
|
+
longitude?: number | null;
|
|
1057
|
+
}
|
|
1021
1058
|
/**
|
|
1022
1059
|
* Collection of information related to the LFP link.
|
|
1023
1060
|
*/
|
|
@@ -1101,19 +1138,6 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1101
1138
|
*/
|
|
1102
1139
|
nextPageToken?: string | null;
|
|
1103
1140
|
}
|
|
1104
|
-
/**
|
|
1105
|
-
* Response message for the `ListAccountLimits` method.
|
|
1106
|
-
*/
|
|
1107
|
-
export interface Schema$ListAccountLimitsResponse {
|
|
1108
|
-
/**
|
|
1109
|
-
* The limits for the given account.
|
|
1110
|
-
*/
|
|
1111
|
-
accountLimits?: Schema$AccountLimit[];
|
|
1112
|
-
/**
|
|
1113
|
-
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
1114
|
-
*/
|
|
1115
|
-
nextPageToken?: string | null;
|
|
1116
|
-
}
|
|
1117
1141
|
/**
|
|
1118
1142
|
* Response after trying to list account relationships.
|
|
1119
1143
|
*/
|
|
@@ -1573,19 +1597,6 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1573
1597
|
*/
|
|
1574
1598
|
reportingContext?: string | null;
|
|
1575
1599
|
}
|
|
1576
|
-
/**
|
|
1577
|
-
* The limit for products.
|
|
1578
|
-
*/
|
|
1579
|
-
export interface Schema$ProductLimit {
|
|
1580
|
-
/**
|
|
1581
|
-
* Required. The maximum number of products that are allowed in the account in the given scope.
|
|
1582
|
-
*/
|
|
1583
|
-
limit?: string | null;
|
|
1584
|
-
/**
|
|
1585
|
-
* Required. The scope of the product limit.
|
|
1586
|
-
*/
|
|
1587
|
-
scope?: string | null;
|
|
1588
|
-
}
|
|
1589
1600
|
/**
|
|
1590
1601
|
* `ProductsManagement` payload.
|
|
1591
1602
|
*/
|
|
@@ -1670,6 +1681,27 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1670
1681
|
*/
|
|
1671
1682
|
provider?: string | null;
|
|
1672
1683
|
}
|
|
1684
|
+
/**
|
|
1685
|
+
* A radius area that defines the region area.
|
|
1686
|
+
*/
|
|
1687
|
+
export interface Schema$RadiusArea {
|
|
1688
|
+
/**
|
|
1689
|
+
* Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.
|
|
1690
|
+
*/
|
|
1691
|
+
latLng?: Schema$LatLng;
|
|
1692
|
+
/**
|
|
1693
|
+
* Required. The radius distance of the area.
|
|
1694
|
+
*/
|
|
1695
|
+
radius?: number | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Optional. The unit of the radius.
|
|
1698
|
+
*/
|
|
1699
|
+
radiusUnits?: string | null;
|
|
1700
|
+
/**
|
|
1701
|
+
* Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to.
|
|
1702
|
+
*/
|
|
1703
|
+
regionCode?: string | null;
|
|
1704
|
+
}
|
|
1673
1705
|
/**
|
|
1674
1706
|
* Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means "everything else". The other `applicable_shipping_labels` must not overlap.
|
|
1675
1707
|
*/
|
|
@@ -1719,6 +1751,10 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1719
1751
|
* Optional. A list of postal codes that defines the region area.
|
|
1720
1752
|
*/
|
|
1721
1753
|
postalCodeArea?: Schema$PostalCodeArea;
|
|
1754
|
+
/**
|
|
1755
|
+
* Optional. A radius area that defines the region area.
|
|
1756
|
+
*/
|
|
1757
|
+
radiusArea?: Schema$RadiusArea;
|
|
1722
1758
|
/**
|
|
1723
1759
|
* Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.
|
|
1724
1760
|
*/
|
|
@@ -1892,6 +1928,19 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
1892
1928
|
*/
|
|
1893
1929
|
storeConfig?: Schema$StoreConfig;
|
|
1894
1930
|
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Set an alias for a relationship between a provider and the account to be created.
|
|
1933
|
+
*/
|
|
1934
|
+
export interface Schema$SetAliasForRelationship {
|
|
1935
|
+
/**
|
|
1936
|
+
* Required. The unique ID of this account in the provider's system. The value must be unique across all accounts on the platform for this provider.
|
|
1937
|
+
*/
|
|
1938
|
+
accountIdAlias?: string | null;
|
|
1939
|
+
/**
|
|
1940
|
+
* Required. The provider of the service. This is a reference to an account such as `providers/123` or `accounts/123`. The same provider must be specified in at least one of the `service` fields.
|
|
1941
|
+
*/
|
|
1942
|
+
provider?: string | null;
|
|
1943
|
+
}
|
|
1895
1944
|
/**
|
|
1896
1945
|
* The Merchant Center account's [shipping settings](https://support.google.com/merchants/answer/6069284). The `ShippingSettings` resource lets you retrieve and update the shipping settings of your advanced account and all its associated sub-accounts.
|
|
1897
1946
|
*/
|
|
@@ -2161,6 +2210,20 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
2161
2210
|
*/
|
|
2162
2211
|
subtable?: string | null;
|
|
2163
2212
|
}
|
|
2213
|
+
/**
|
|
2214
|
+
* Settings related to the verification email that is sent after adding a user.
|
|
2215
|
+
*/
|
|
2216
|
+
export interface Schema$VerificationMailSettings {
|
|
2217
|
+
/**
|
|
2218
|
+
* Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`.
|
|
2219
|
+
*/
|
|
2220
|
+
verificationMailMode?: string | null;
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* Request message for the `VerifySelf` method.
|
|
2224
|
+
*/
|
|
2225
|
+
export interface Schema$VerifySelfRequest {
|
|
2226
|
+
}
|
|
2164
2227
|
/**
|
|
2165
2228
|
* A fulfillment warehouse, which stores and handles inventory.
|
|
2166
2229
|
*/
|
|
@@ -2240,7 +2303,6 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
2240
2303
|
gbpAccounts: Resource$Accounts$Gbpaccounts;
|
|
2241
2304
|
homepage: Resource$Accounts$Homepage;
|
|
2242
2305
|
issues: Resource$Accounts$Issues;
|
|
2243
|
-
limits: Resource$Accounts$Limits;
|
|
2244
2306
|
omnichannelSettings: Resource$Accounts$Omnichannelsettings;
|
|
2245
2307
|
onlineReturnPolicies: Resource$Accounts$Onlinereturnpolicies;
|
|
2246
2308
|
programs: Resource$Accounts$Programs;
|
|
@@ -2288,6 +2350,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
2288
2350
|
* // {
|
|
2289
2351
|
* // "account": {},
|
|
2290
2352
|
* // "service": [],
|
|
2353
|
+
* // "setAlias": [],
|
|
2291
2354
|
* // "user": []
|
|
2292
2355
|
* // }
|
|
2293
2356
|
* },
|
|
@@ -4416,162 +4479,6 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
4416
4479
|
*/
|
|
4417
4480
|
timeZone?: string;
|
|
4418
4481
|
}
|
|
4419
|
-
export class Resource$Accounts$Limits {
|
|
4420
|
-
context: APIRequestContext;
|
|
4421
|
-
constructor(context: APIRequestContext);
|
|
4422
|
-
/**
|
|
4423
|
-
* Retrieves an account limit.
|
|
4424
|
-
* @example
|
|
4425
|
-
* ```js
|
|
4426
|
-
* // Before running the sample:
|
|
4427
|
-
* // - Enable the API at:
|
|
4428
|
-
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
4429
|
-
* // - Login into gcloud by running:
|
|
4430
|
-
* // ```sh
|
|
4431
|
-
* // $ gcloud auth application-default login
|
|
4432
|
-
* // ```
|
|
4433
|
-
* // - Install the npm module by running:
|
|
4434
|
-
* // ```sh
|
|
4435
|
-
* // $ npm install googleapis
|
|
4436
|
-
* // ```
|
|
4437
|
-
*
|
|
4438
|
-
* const {google} = require('googleapis');
|
|
4439
|
-
* const merchantapi = google.merchantapi('accounts_v1');
|
|
4440
|
-
*
|
|
4441
|
-
* async function main() {
|
|
4442
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4443
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4444
|
-
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
4445
|
-
* });
|
|
4446
|
-
*
|
|
4447
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4448
|
-
* const authClient = await auth.getClient();
|
|
4449
|
-
* google.options({auth: authClient});
|
|
4450
|
-
*
|
|
4451
|
-
* // Do the magic
|
|
4452
|
-
* const res = await merchantapi.accounts.limits.get({
|
|
4453
|
-
* // Required. The name of the limit to retrieve. Format: `accounts/{account\}/limits/{limit\}` For example: `accounts/123/limits/products~ADS_NON_EEA`
|
|
4454
|
-
* name: 'accounts/my-account/limits/my-limit',
|
|
4455
|
-
* });
|
|
4456
|
-
* console.log(res.data);
|
|
4457
|
-
*
|
|
4458
|
-
* // Example response
|
|
4459
|
-
* // {
|
|
4460
|
-
* // "name": "my_name",
|
|
4461
|
-
* // "products": {}
|
|
4462
|
-
* // }
|
|
4463
|
-
* }
|
|
4464
|
-
*
|
|
4465
|
-
* main().catch(e => {
|
|
4466
|
-
* console.error(e);
|
|
4467
|
-
* throw e;
|
|
4468
|
-
* });
|
|
4469
|
-
*
|
|
4470
|
-
* ```
|
|
4471
|
-
*
|
|
4472
|
-
* @param params - Parameters for request
|
|
4473
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4474
|
-
* @param callback - Optional callback that handles the response.
|
|
4475
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4476
|
-
*/
|
|
4477
|
-
get(params: Params$Resource$Accounts$Limits$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4478
|
-
get(params?: Params$Resource$Accounts$Limits$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AccountLimit>>;
|
|
4479
|
-
get(params: Params$Resource$Accounts$Limits$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4480
|
-
get(params: Params$Resource$Accounts$Limits$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountLimit>, callback: BodyResponseCallback<Schema$AccountLimit>): void;
|
|
4481
|
-
get(params: Params$Resource$Accounts$Limits$Get, callback: BodyResponseCallback<Schema$AccountLimit>): void;
|
|
4482
|
-
get(callback: BodyResponseCallback<Schema$AccountLimit>): void;
|
|
4483
|
-
/**
|
|
4484
|
-
* Lists the limits of an account.
|
|
4485
|
-
* @example
|
|
4486
|
-
* ```js
|
|
4487
|
-
* // Before running the sample:
|
|
4488
|
-
* // - Enable the API at:
|
|
4489
|
-
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
4490
|
-
* // - Login into gcloud by running:
|
|
4491
|
-
* // ```sh
|
|
4492
|
-
* // $ gcloud auth application-default login
|
|
4493
|
-
* // ```
|
|
4494
|
-
* // - Install the npm module by running:
|
|
4495
|
-
* // ```sh
|
|
4496
|
-
* // $ npm install googleapis
|
|
4497
|
-
* // ```
|
|
4498
|
-
*
|
|
4499
|
-
* const {google} = require('googleapis');
|
|
4500
|
-
* const merchantapi = google.merchantapi('accounts_v1');
|
|
4501
|
-
*
|
|
4502
|
-
* async function main() {
|
|
4503
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4504
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4505
|
-
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
4506
|
-
* });
|
|
4507
|
-
*
|
|
4508
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4509
|
-
* const authClient = await auth.getClient();
|
|
4510
|
-
* google.options({auth: authClient});
|
|
4511
|
-
*
|
|
4512
|
-
* // Do the magic
|
|
4513
|
-
* const res = await merchantapi.accounts.limits.list({
|
|
4514
|
-
* // Required. A filter on the limit `type` is required, for example, `type = "products"`.
|
|
4515
|
-
* filter: 'placeholder-value',
|
|
4516
|
-
* // Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100.
|
|
4517
|
-
* pageSize: 'placeholder-value',
|
|
4518
|
-
* // Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token.
|
|
4519
|
-
* pageToken: 'placeholder-value',
|
|
4520
|
-
* // Required. The parent account. Format: `accounts/{account\}`
|
|
4521
|
-
* parent: 'accounts/my-account',
|
|
4522
|
-
* });
|
|
4523
|
-
* console.log(res.data);
|
|
4524
|
-
*
|
|
4525
|
-
* // Example response
|
|
4526
|
-
* // {
|
|
4527
|
-
* // "accountLimits": [],
|
|
4528
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
4529
|
-
* // }
|
|
4530
|
-
* }
|
|
4531
|
-
*
|
|
4532
|
-
* main().catch(e => {
|
|
4533
|
-
* console.error(e);
|
|
4534
|
-
* throw e;
|
|
4535
|
-
* });
|
|
4536
|
-
*
|
|
4537
|
-
* ```
|
|
4538
|
-
*
|
|
4539
|
-
* @param params - Parameters for request
|
|
4540
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4541
|
-
* @param callback - Optional callback that handles the response.
|
|
4542
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4543
|
-
*/
|
|
4544
|
-
list(params: Params$Resource$Accounts$Limits$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4545
|
-
list(params?: Params$Resource$Accounts$Limits$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountLimitsResponse>>;
|
|
4546
|
-
list(params: Params$Resource$Accounts$Limits$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4547
|
-
list(params: Params$Resource$Accounts$Limits$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountLimitsResponse>, callback: BodyResponseCallback<Schema$ListAccountLimitsResponse>): void;
|
|
4548
|
-
list(params: Params$Resource$Accounts$Limits$List, callback: BodyResponseCallback<Schema$ListAccountLimitsResponse>): void;
|
|
4549
|
-
list(callback: BodyResponseCallback<Schema$ListAccountLimitsResponse>): void;
|
|
4550
|
-
}
|
|
4551
|
-
export interface Params$Resource$Accounts$Limits$Get extends StandardParameters {
|
|
4552
|
-
/**
|
|
4553
|
-
* Required. The name of the limit to retrieve. Format: `accounts/{account\}/limits/{limit\}` For example: `accounts/123/limits/products~ADS_NON_EEA`
|
|
4554
|
-
*/
|
|
4555
|
-
name?: string;
|
|
4556
|
-
}
|
|
4557
|
-
export interface Params$Resource$Accounts$Limits$List extends StandardParameters {
|
|
4558
|
-
/**
|
|
4559
|
-
* Required. A filter on the limit `type` is required, for example, `type = "products"`.
|
|
4560
|
-
*/
|
|
4561
|
-
filter?: string;
|
|
4562
|
-
/**
|
|
4563
|
-
* Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100.
|
|
4564
|
-
*/
|
|
4565
|
-
pageSize?: number;
|
|
4566
|
-
/**
|
|
4567
|
-
* Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token.
|
|
4568
|
-
*/
|
|
4569
|
-
pageToken?: string;
|
|
4570
|
-
/**
|
|
4571
|
-
* Required. The parent account. Format: `accounts/{account\}`
|
|
4572
|
-
*/
|
|
4573
|
-
parent?: string;
|
|
4574
|
-
}
|
|
4575
4482
|
export class Resource$Accounts$Omnichannelsettings {
|
|
4576
4483
|
context: APIRequestContext;
|
|
4577
4484
|
lfpProviders: Resource$Accounts$Omnichannelsettings$Lfpproviders;
|
|
@@ -6401,6 +6308,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6401
6308
|
* // "geotargetArea": {},
|
|
6402
6309
|
* // "name": "my_name",
|
|
6403
6310
|
* // "postalCodeArea": {},
|
|
6311
|
+
* // "radiusArea": {},
|
|
6404
6312
|
* // "regionalInventoryEligible": false,
|
|
6405
6313
|
* // "shippingEligible": false
|
|
6406
6314
|
* // }
|
|
@@ -6414,6 +6322,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6414
6322
|
* // "geotargetArea": {},
|
|
6415
6323
|
* // "name": "my_name",
|
|
6416
6324
|
* // "postalCodeArea": {},
|
|
6325
|
+
* // "radiusArea": {},
|
|
6417
6326
|
* // "regionalInventoryEligible": false,
|
|
6418
6327
|
* // "shippingEligible": false
|
|
6419
6328
|
* // }
|
|
@@ -6537,6 +6446,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6537
6446
|
* // "geotargetArea": {},
|
|
6538
6447
|
* // "name": "my_name",
|
|
6539
6448
|
* // "postalCodeArea": {},
|
|
6449
|
+
* // "radiusArea": {},
|
|
6540
6450
|
* // "regionalInventoryEligible": false,
|
|
6541
6451
|
* // "shippingEligible": false
|
|
6542
6452
|
* // }
|
|
@@ -6669,6 +6579,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6669
6579
|
* // "geotargetArea": {},
|
|
6670
6580
|
* // "name": "my_name",
|
|
6671
6581
|
* // "postalCodeArea": {},
|
|
6582
|
+
* // "radiusArea": {},
|
|
6672
6583
|
* // "regionalInventoryEligible": false,
|
|
6673
6584
|
* // "shippingEligible": false
|
|
6674
6585
|
* // }
|
|
@@ -6682,6 +6593,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
6682
6593
|
* // "geotargetArea": {},
|
|
6683
6594
|
* // "name": "my_name",
|
|
6684
6595
|
* // "postalCodeArea": {},
|
|
6596
|
+
* // "radiusArea": {},
|
|
6685
6597
|
* // "regionalInventoryEligible": false,
|
|
6686
6598
|
* // "shippingEligible": false
|
|
6687
6599
|
* // }
|
|
@@ -7082,6 +6994,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7082
6994
|
* // "accountAggregation": {},
|
|
7083
6995
|
* // "accountManagement": {},
|
|
7084
6996
|
* // "campaignsManagement": {},
|
|
6997
|
+
* // "comparisonShopping": {},
|
|
7085
6998
|
* // "externalAccountId": "my_externalAccountId",
|
|
7086
6999
|
* // "handshake": {},
|
|
7087
7000
|
* // "localListingManagement": {},
|
|
@@ -7152,6 +7065,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7152
7065
|
* // "accountAggregation": {},
|
|
7153
7066
|
* // "accountManagement": {},
|
|
7154
7067
|
* // "campaignsManagement": {},
|
|
7068
|
+
* // "comparisonShopping": {},
|
|
7155
7069
|
* // "externalAccountId": "my_externalAccountId",
|
|
7156
7070
|
* // "handshake": {},
|
|
7157
7071
|
* // "localListingManagement": {},
|
|
@@ -7296,6 +7210,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7296
7210
|
* // "accountAggregation": {},
|
|
7297
7211
|
* // "accountManagement": {},
|
|
7298
7212
|
* // "campaignsManagement": {},
|
|
7213
|
+
* // "comparisonShopping": {},
|
|
7299
7214
|
* // "externalAccountId": "my_externalAccountId",
|
|
7300
7215
|
* // "handshake": {},
|
|
7301
7216
|
* // "localListingManagement": {},
|
|
@@ -7746,6 +7661,7 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
7746
7661
|
}
|
|
7747
7662
|
export class Resource$Accounts$Users {
|
|
7748
7663
|
context: APIRequestContext;
|
|
7664
|
+
me: Resource$Accounts$Users$Me;
|
|
7749
7665
|
constructor(context: APIRequestContext);
|
|
7750
7666
|
/**
|
|
7751
7667
|
* Creates a Merchant Center account user. Executing this method requires admin access.
|
|
@@ -8135,6 +8051,88 @@ export declare namespace merchantapi_accounts_v1 {
|
|
|
8135
8051
|
*/
|
|
8136
8052
|
requestBody?: Schema$User;
|
|
8137
8053
|
}
|
|
8054
|
+
export class Resource$Accounts$Users$Me {
|
|
8055
|
+
context: APIRequestContext;
|
|
8056
|
+
constructor(context: APIRequestContext);
|
|
8057
|
+
/**
|
|
8058
|
+
* Updates the user that is represented by the caller from pending to verified.
|
|
8059
|
+
* @example
|
|
8060
|
+
* ```js
|
|
8061
|
+
* // Before running the sample:
|
|
8062
|
+
* // - Enable the API at:
|
|
8063
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
8064
|
+
* // - Login into gcloud by running:
|
|
8065
|
+
* // ```sh
|
|
8066
|
+
* // $ gcloud auth application-default login
|
|
8067
|
+
* // ```
|
|
8068
|
+
* // - Install the npm module by running:
|
|
8069
|
+
* // ```sh
|
|
8070
|
+
* // $ npm install googleapis
|
|
8071
|
+
* // ```
|
|
8072
|
+
*
|
|
8073
|
+
* const {google} = require('googleapis');
|
|
8074
|
+
* const merchantapi = google.merchantapi('accounts_v1');
|
|
8075
|
+
*
|
|
8076
|
+
* async function main() {
|
|
8077
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8078
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8079
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
8080
|
+
* });
|
|
8081
|
+
*
|
|
8082
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8083
|
+
* const authClient = await auth.getClient();
|
|
8084
|
+
* google.options({auth: authClient});
|
|
8085
|
+
*
|
|
8086
|
+
* // Do the magic
|
|
8087
|
+
* const res = await merchantapi.accounts.users.me.verifySelf({
|
|
8088
|
+
* // Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
|
|
8089
|
+
* account: 'accounts/my-account',
|
|
8090
|
+
*
|
|
8091
|
+
* // Request body metadata
|
|
8092
|
+
* requestBody: {
|
|
8093
|
+
* // request body parameters
|
|
8094
|
+
* // {}
|
|
8095
|
+
* },
|
|
8096
|
+
* });
|
|
8097
|
+
* console.log(res.data);
|
|
8098
|
+
*
|
|
8099
|
+
* // Example response
|
|
8100
|
+
* // {
|
|
8101
|
+
* // "accessRights": [],
|
|
8102
|
+
* // "name": "my_name",
|
|
8103
|
+
* // "state": "my_state"
|
|
8104
|
+
* // }
|
|
8105
|
+
* }
|
|
8106
|
+
*
|
|
8107
|
+
* main().catch(e => {
|
|
8108
|
+
* console.error(e);
|
|
8109
|
+
* throw e;
|
|
8110
|
+
* });
|
|
8111
|
+
*
|
|
8112
|
+
* ```
|
|
8113
|
+
*
|
|
8114
|
+
* @param params - Parameters for request
|
|
8115
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8116
|
+
* @param callback - Optional callback that handles the response.
|
|
8117
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8118
|
+
*/
|
|
8119
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8120
|
+
verifySelf(params?: Params$Resource$Accounts$Users$Me$Verifyself, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
|
|
8121
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
8122
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
|
|
8123
|
+
verifySelf(params: Params$Resource$Accounts$Users$Me$Verifyself, callback: BodyResponseCallback<Schema$User>): void;
|
|
8124
|
+
verifySelf(callback: BodyResponseCallback<Schema$User>): void;
|
|
8125
|
+
}
|
|
8126
|
+
export interface Params$Resource$Accounts$Users$Me$Verifyself extends StandardParameters {
|
|
8127
|
+
/**
|
|
8128
|
+
* Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
|
|
8129
|
+
*/
|
|
8130
|
+
account?: string;
|
|
8131
|
+
/**
|
|
8132
|
+
* Request body metadata
|
|
8133
|
+
*/
|
|
8134
|
+
requestBody?: Schema$VerifySelfRequest;
|
|
8135
|
+
}
|
|
8138
8136
|
export class Resource$Termsofservice {
|
|
8139
8137
|
context: APIRequestContext;
|
|
8140
8138
|
constructor(context: APIRequestContext);
|