|
936 | 936 | } |
937 | 937 | } |
938 | 938 | }, |
| 939 | + "limits": { |
| 940 | + "methods": { |
| 941 | + "get": { |
| 942 | + "description": "Retrieves an account limit.", |
| 943 | + "flatPath": "accounts/v1/accounts/{accountsId}/limits/{limitsId}", |
| 944 | + "httpMethod": "GET", |
| 945 | + "id": "merchantapi.accounts.limits.get", |
| 946 | + "parameterOrder": [ |
| 947 | + "name" |
| 948 | + ], |
| 949 | + "parameters": { |
| 950 | + "name": { |
| 951 | + "description": "Required. The name of the limit to retrieve. Format: `accounts/{account}/limits/{limit}` For example: `accounts/123/limits/products~ADS_NON_EEA`", |
| 952 | + "location": "path", |
| 953 | + "pattern": "^accounts/[^/]+/limits/[^/]+$", |
| 954 | + "required": true, |
| 955 | + "type": "string" |
| 956 | + } |
| 957 | + }, |
| 958 | + "path": "accounts/v1/{+name}", |
| 959 | + "response": { |
| 960 | + "$ref": "AccountLimit" |
| 961 | + }, |
| 962 | + "scopes": [ |
| 963 | + "https://www.googleapis.com/auth/content" |
| 964 | + ] |
| 965 | + }, |
| 966 | + "list": { |
| 967 | + "description": "Lists the limits of an account.", |
| 968 | + "flatPath": "accounts/v1/accounts/{accountsId}/limits", |
| 969 | + "httpMethod": "GET", |
| 970 | + "id": "merchantapi.accounts.limits.list", |
| 971 | + "parameterOrder": [ |
| 972 | + "parent" |
| 973 | + ], |
| 974 | + "parameters": { |
| 975 | + "filter": { |
| 976 | + "description": "Required. A filter on the limit `type` is required, for example, `type = \"products\"`.", |
| 977 | + "location": "query", |
| 978 | + "type": "string" |
| 979 | + }, |
| 980 | + "pageSize": { |
| 981 | + "description": "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.", |
| 982 | + "format": "int32", |
| 983 | + "location": "query", |
| 984 | + "type": "integer" |
| 985 | + }, |
| 986 | + "pageToken": { |
| 987 | + "description": "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.", |
| 988 | + "location": "query", |
| 989 | + "type": "string" |
| 990 | + }, |
| 991 | + "parent": { |
| 992 | + "description": "Required. The parent account. Format: `accounts/{account}`", |
| 993 | + "location": "path", |
| 994 | + "pattern": "^accounts/[^/]+$", |
| 995 | + "required": true, |
| 996 | + "type": "string" |
| 997 | + } |
| 998 | + }, |
| 999 | + "path": "accounts/v1/{+parent}/limits", |
| 1000 | + "response": { |
| 1001 | + "$ref": "ListAccountLimitsResponse" |
| 1002 | + }, |
| 1003 | + "scopes": [ |
| 1004 | + "https://www.googleapis.com/auth/content" |
| 1005 | + ] |
| 1006 | + } |
| 1007 | + } |
| 1008 | + }, |
939 | 1009 | "omnichannelSettings": { |
940 | 1010 | "methods": { |
941 | 1011 | "create": { |
|
2376 | 2446 | } |
2377 | 2447 | } |
2378 | 2448 | }, |
2379 | | - "revision": "20251023", |
| 2449 | + "revision": "20251112", |
2380 | 2450 | "rootUrl": "https://merchantapi.googleapis.com/", |
2381 | 2451 | "schemas": { |
2382 | 2452 | "About": { |
|
2529 | 2599 | }, |
2530 | 2600 | "type": "object" |
2531 | 2601 | }, |
| 2602 | + "AccountLimit": { |
| 2603 | + "description": "A limit of a certain type that is applied to an account.", |
| 2604 | + "id": "AccountLimit", |
| 2605 | + "properties": { |
| 2606 | + "name": { |
| 2607 | + "description": "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}`", |
| 2608 | + "type": "string" |
| 2609 | + }, |
| 2610 | + "products": { |
| 2611 | + "$ref": "ProductLimit", |
| 2612 | + "description": "The limit for products." |
| 2613 | + } |
| 2614 | + }, |
| 2615 | + "type": "object" |
| 2616 | + }, |
2532 | 2617 | "AccountManagement": { |
2533 | 2618 | "description": "`AccountManagement` payload.", |
2534 | 2619 | "id": "AccountManagement", |
|
3977 | 4062 | }, |
3978 | 4063 | "type": "object" |
3979 | 4064 | }, |
| 4065 | + "ListAccountLimitsResponse": { |
| 4066 | + "description": "Response message for the `ListAccountLimits` method.", |
| 4067 | + "id": "ListAccountLimitsResponse", |
| 4068 | + "properties": { |
| 4069 | + "accountLimits": { |
| 4070 | + "description": "The limits for the given account.", |
| 4071 | + "items": { |
| 4072 | + "$ref": "AccountLimit" |
| 4073 | + }, |
| 4074 | + "type": "array" |
| 4075 | + }, |
| 4076 | + "nextPageToken": { |
| 4077 | + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", |
| 4078 | + "type": "string" |
| 4079 | + } |
| 4080 | + }, |
| 4081 | + "type": "object" |
| 4082 | + }, |
3980 | 4083 | "ListAccountRelationshipsResponse": { |
3981 | 4084 | "description": "Response after trying to list account relationships.", |
3982 | 4085 | "id": "ListAccountRelationshipsResponse", |
|
4708 | 4811 | }, |
4709 | 4812 | "type": "object" |
4710 | 4813 | }, |
| 4814 | + "ProductLimit": { |
| 4815 | + "description": "The limit for products.", |
| 4816 | + "id": "ProductLimit", |
| 4817 | + "properties": { |
| 4818 | + "limit": { |
| 4819 | + "description": "Required. The maximum number of products that are allowed in the account in the given scope.", |
| 4820 | + "format": "int64", |
| 4821 | + "type": "string" |
| 4822 | + }, |
| 4823 | + "scope": { |
| 4824 | + "description": "Required. The scope of the product limit.", |
| 4825 | + "enum": [ |
| 4826 | + "SCOPE_UNSPECIFIED", |
| 4827 | + "ADS_NON_EEA", |
| 4828 | + "ADS_EEA" |
| 4829 | + ], |
| 4830 | + "enumDescriptions": [ |
| 4831 | + "Default value. Should not be used.", |
| 4832 | + "Limit for products in non-EEA countries.", |
| 4833 | + "Limit for products in EEA countries." |
| 4834 | + ], |
| 4835 | + "type": "string" |
| 4836 | + } |
| 4837 | + }, |
| 4838 | + "type": "object" |
| 4839 | + }, |
4711 | 4840 | "ProductStatusChangeMessage": { |
4712 | 4841 | "description": "The message that the merchant will receive to notify about product status change event", |
4713 | 4842 | "id": "ProductStatusChangeMessage", |
|
0 commit comments