diff --git a/docs/dyn/content_v2_1.html b/docs/dyn/content_v2_1.html index 8d8660cd0fa..7cc5d3ff25b 100644 --- a/docs/dyn/content_v2_1.html +++ b/docs/dyn/content_v2_1.html @@ -189,6 +189,11 @@

Instance Methods

Returns the pubsubnotificationsettings Resource.

+

+ quotas() +

+

Returns the quotas Resource.

+

regionalinventory()

diff --git a/docs/dyn/content_v2_1.promotions.html b/docs/dyn/content_v2_1.promotions.html index fcab3e35eda..fa1c1c561a9 100644 --- a/docs/dyn/content_v2_1.promotions.html +++ b/docs/dyn/content_v2_1.promotions.html @@ -79,7 +79,7 @@

Instance Methods

Close httplib2 connections.

create(merchantId, body=None, x__xgafv=None)

-

Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.

+

Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead. To [end or delete] (https://developers.google.com/shopping-content/guides/promotions#end_a_promotion) a promotion update the time period of the promotion to a time that has already passed.

get(merchantId, id, x__xgafv=None)

Retrieves a promotion from your Merchant Center account.

@@ -91,7 +91,7 @@

Method Details

create(merchantId, body=None, x__xgafv=None) -
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.
+  
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead. To [end or delete] (https://developers.google.com/shopping-content/guides/promotions#end_a_promotion) a promotion update the time period of the promotion to a time that has already passed.
 
 Args:
   merchantId: string, Required. The ID of the account that contains the collection. (required)
diff --git a/docs/dyn/content_v2_1.quotas.html b/docs/dyn/content_v2_1.quotas.html
new file mode 100644
index 00000000000..126ca886468
--- /dev/null
+++ b/docs/dyn/content_v2_1.quotas.html
@@ -0,0 +1,134 @@
+
+
+
+

Content API for Shopping . quotas

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

+ list(merchantId, pageSize=None, pageToken=None, x__xgafv=None)

+

Lists the quota limit and quota usage per method for your Merchant Center account.

+

+ list_next()

+

Retrieves the next page of results.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ list(merchantId, pageSize=None, pageToken=None, x__xgafv=None) +
Lists the quota limit and quota usage per method for your Merchant Center account.
+
+Args:
+  merchantId: string, Required. The ID of the account that has quota. This account must be an admin. (required)
+  pageSize: integer, The maximum number of quotas to return in the response, used for paging. Defaults to 500; values above 1000 will be coerced to 1000.
+  pageToken: string, Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response message for the ListMethodQuotas method.
+  "methodQuotas": [ # The current quota usage and limits per each method.
+    { # The quota information per method in the Content API.
+      "method": "A String", # The method name, for example “products.list”. Method name does not contain version because quota can be shared between different API versions of the same method.
+      "quotaLimit": "A String", # The current quota limit, for example the maximum number of calls for the method.
+      "quotaUsage": "A String", # The current quota usage, for example the number of calls for the method.
+    },
+  ],
+  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
+}
+
+ +
+ list_next() +
Retrieves the next page of results.
+
+        Args:
+          previous_request: The request for the previous page. (required)
+          previous_response: The response from the request for the previous page. (required)
+
+        Returns:
+          A request object that you can call 'execute()' on to request the next
+          page. Returns None if there are no more items in the collection.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/content_v2_1.reports.html b/docs/dyn/content_v2_1.reports.html index f81b6f3f34d..74b1fcb5c2e 100644 --- a/docs/dyn/content_v2_1.reports.html +++ b/docs/dyn/content_v2_1.reports.html @@ -141,7 +141,7 @@

Method Details

"unshippedItems": 3.14, # Number of ordered items not shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped items over the days in the queried period. **This metric cannot be segmented by customer_country_code.** "unshippedOrders": 3.14, # Number of orders not shipped or partially shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped orders over the days in the queried period. **This metric cannot be segmented by product dimensions and customer_country_code.** }, - "productView": { # Product fields. Values are only set for fields requested explicitly in the request's search query. # Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. `product_view` field is available only to allowlisted users who can query the `ProductView` table. + "productView": { # Product fields. Values are only set for fields requested explicitly in the request's search query. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access. # Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access. "aggregatedDestinationStatus": "A String", # Aggregated destination status. "availability": "A String", # Availability of the product. "brand": "A String", # Brand of the product. diff --git a/googleapiclient/discovery_cache/documents/content.v2.1.json b/googleapiclient/discovery_cache/documents/content.v2.1.json index 355665f1f95..223ddf696e0 100644 --- a/googleapiclient/discovery_cache/documents/content.v2.1.json +++ b/googleapiclient/discovery_cache/documents/content.v2.1.json @@ -4455,7 +4455,7 @@ "promotions": { "methods": { "create": { - "description": "Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.", + "description": "Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead. To [end or delete] (https://developers.google.com/shopping-content/guides/promotions#end_a_promotion) a promotion update the time period of the promotion to a time that has already passed.", "flatPath": "{merchantId}/promotions", "httpMethod": "POST", "id": "content.promotions.create", @@ -4573,6 +4573,46 @@ } } }, + "quotas": { + "methods": { + "list": { + "description": "Lists the quota limit and quota usage per method for your Merchant Center account.", + "flatPath": "{merchantId}/quotas", + "httpMethod": "GET", + "id": "content.quotas.list", + "parameterOrder": [ + "merchantId" + ], + "parameters": { + "merchantId": { + "description": "Required. The ID of the account that has quota. This account must be an admin.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of quotas to return in the response, used for paging. Defaults to 500; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "{merchantId}/quotas", + "response": { + "$ref": "ListMethodQuotasResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, "regionalinventory": { "methods": { "custombatch": { @@ -5908,7 +5948,7 @@ } } }, - "revision": "20221013", + "revision": "20221024", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -9126,6 +9166,24 @@ }, "type": "object" }, + "ListMethodQuotasResponse": { + "description": "Response message for the ListMethodQuotas method.", + "id": "ListMethodQuotasResponse", + "properties": { + "methodQuotas": { + "description": "The current quota usage and limits per each method.", + "items": { + "$ref": "MethodQuota" + }, + "type": "array" + }, + "nextPageToken": { + "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.", + "type": "string" + } + }, + "type": "object" + }, "ListRegionsResponse": { "description": "Response message for the `ListRegions` method.", "id": "ListRegionsResponse", @@ -9487,6 +9545,27 @@ }, "type": "object" }, + "MethodQuota": { + "description": "The quota information per method in the Content API.", + "id": "MethodQuota", + "properties": { + "method": { + "description": "The method name, for example \u201cproducts.list\u201d. Method name does not contain version because quota can be shared between different API versions of the same method.", + "type": "string" + }, + "quotaLimit": { + "description": "The current quota limit, for example the maximum number of calls for the method.", + "format": "int64", + "type": "string" + }, + "quotaUsage": { + "description": "The current quota usage, for example the number of calls for the method.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "Metrics": { "description": "Performance metrics. Values are only set for metrics requested explicitly in the request's search query.", "id": "Metrics", @@ -13298,7 +13377,7 @@ "type": "object" }, "ProductView": { - "description": "Product fields. Values are only set for fields requested explicitly in the request's search query.", + "description": "Product fields. Values are only set for fields requested explicitly in the request's search query. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access.", "id": "ProductView", "properties": { "aggregatedDestinationStatus": { @@ -14281,7 +14360,7 @@ }, "productView": { "$ref": "ProductView", - "description": "Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. `product_view` field is available only to allowlisted users who can query the `ProductView` table." + "description": "Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access." }, "segments": { "$ref": "Segments",