Skip to content

Commit

Permalink
feat(content): update the api
Browse files Browse the repository at this point in the history
#### content:v2.1

The following keys were added:
- resources.accounts.methods.list.parameters.name (Total Keys: 2)
- resources.accountstatuses.methods.list.parameters.name (Total Keys: 2)
- schemas.Account.properties.accountManagement.type (Total Keys: 1)
- schemas.AccountStatus.properties.accountManagement.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Jul 13, 2021
1 parent f8fae98 commit 0814e00
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 12 deletions.
13 changes: 11 additions & 2 deletions docs/dyn/content_v2_1.accounts.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h2>Instance Methods</h2>
<code><a href="#link">link(merchantId, accountId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.</p>
<p class="toc_element">
<code><a href="#list">list(merchantId, label=None, maxResults=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
<code><a href="#list">list(merchantId, label=None, maxResults=None, name=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists the sub-accounts in your Merchant Center account.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
Expand Down Expand Up @@ -194,6 +194,7 @@ <h3>Method Details</h3>
&quot;entries&quot;: [ # The request entries to be processed in the batch.
{ # A batch entry encoding a single non-batch accounts request.
&quot;account&quot;: { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role. # The account to create or update. Only defined if the method is `insert` or `update`.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -283,6 +284,7 @@ <h3>Method Details</h3>
&quot;entries&quot;: [ # The result of the execution of the batch requests.
{ # A batch entry encoding a single non-batch accounts response.
&quot;account&quot;: { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role. # The retrieved, created, or updated account. Not defined if the method was `delete`, `claimwebsite` or `link`.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -392,6 +394,7 @@ <h3>Method Details</h3>
An object of the form:

{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -459,6 +462,7 @@ <h3>Method Details</h3>
The object takes the form of:

{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -524,6 +528,7 @@ <h3>Method Details</h3>
An object of the form:

{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -618,13 +623,14 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="list">list(merchantId, label=None, maxResults=None, pageToken=None, view=None, x__xgafv=None)</code>
<code class="details" id="list">list(merchantId, label=None, maxResults=None, name=None, pageToken=None, view=None, x__xgafv=None)</code>
<pre>Lists the sub-accounts in your Merchant Center account.

Args:
merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
label: string, If view is set to &quot;css&quot;, only return accounts that are assigned label with given ID.
maxResults: integer, The maximum number of accounts to return in the response, used for paging.
name: string, If set, only the accounts with the given name (case sensitive) will be returned.
pageToken: string, The token returned by the previous request.
view: string, Controls which fields will be populated. Acceptable values are: &quot;merchant&quot; and &quot;css&quot;. The default value is &quot;merchant&quot;.
Allowed values
Expand All @@ -643,6 +649,7 @@ <h3>Method Details</h3>
&quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of accounts.
&quot;resources&quot;: [
{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -775,6 +782,7 @@ <h3>Method Details</h3>
The object takes the form of:

{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down Expand Up @@ -840,6 +848,7 @@ <h3>Method Details</h3>
An object of the form:

{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;adsLinks&quot;: [ # Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
{
&quot;adsId&quot;: &quot;A String&quot;, # Customer ID of the Ads account.
Expand Down
8 changes: 6 additions & 2 deletions docs/dyn/content_v2_1.accountstatuses.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2>Instance Methods</h2>
<code><a href="#get">get(merchantId, accountId, destinations=None, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.</p>
<p class="toc_element">
<code><a href="#list">list(merchantId, destinations=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
<code><a href="#list">list(merchantId, destinations=None, maxResults=None, name=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists the statuses of the sub-accounts in your Merchant Center account.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
Expand Down Expand Up @@ -141,6 +141,7 @@ <h3>Method Details</h3>
&quot;title&quot;: &quot;A String&quot;, # Short description of the issue.
},
],
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountStatus`&quot;
&quot;products&quot;: [ # List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes.
{
Expand Down Expand Up @@ -216,6 +217,7 @@ <h3>Method Details</h3>
&quot;title&quot;: &quot;A String&quot;, # Short description of the issue.
},
],
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountStatus`&quot;
&quot;products&quot;: [ # List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes.
{
Expand Down Expand Up @@ -247,13 +249,14 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="list">list(merchantId, destinations=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
<code class="details" id="list">list(merchantId, destinations=None, maxResults=None, name=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists the statuses of the sub-accounts in your Merchant Center account.

Args:
merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
destinations: string, If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. (repeated)
maxResults: integer, The maximum number of account statuses to return in the response, used for paging.
name: string, If set, only the accounts with the given name (case sensitive) will be returned.
pageToken: string, The token returned by the previous request.
x__xgafv: string, V1 error format.
Allowed values
Expand All @@ -280,6 +283,7 @@ <h3>Method Details</h3>
&quot;title&quot;: &quot;A String&quot;, # Short description of the issue.
},
],
&quot;accountManagement&quot;: &quot;A String&quot;, # How the account is managed. Acceptable values are: - &quot;`manual`&quot; - &quot;`automatic`&quot;
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountStatus`&quot;
&quot;products&quot;: [ # List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes.
{
Expand Down
8 changes: 4 additions & 4 deletions docs/dyn/content_v2_1.orderinvoices.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h3>Method Details</h3>
&quot;unitInvoice&quot;: { # [required] Invoice details for a single unit.
&quot;additionalCharges&quot;: [ # Additional charges for a unit, e.g. shipping costs.
{
&quot;additionalChargeAmount&quot;: { # [required] Amount of the additional charge.
&quot;additionalChargeAmount&quot;: { # [required] Amount of the additional charge per unit. *Note:* Invoicing works on a per unit bases. The `additionalChargeAmount` is the amount charged per unit, and will be multiplied by the number of entries in `shipmentUnitID`.
&quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
&quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
&quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Expand All @@ -151,7 +151,7 @@ <h3>Method Details</h3>
&quot;type&quot;: &quot;A String&quot;, # [required] Type of the additional charge. Acceptable values are: - &quot;`shipping`&quot;
},
],
&quot;unitPrice&quot;: { # [required] Pre-tax or post-tax price of the unit depending on the locality of the order.
&quot;unitPrice&quot;: { # [required] Pre-tax or post-tax price of one unit depending on the locality of the order. *Note:* Invoicing works on a per unit basis. The `unitPrice` is the price of a single unit, and will be multiplied by the number of entries in `shipmentUnitId`.
&quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
&quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
},
Expand Down Expand Up @@ -246,7 +246,7 @@ <h3>Method Details</h3>
&quot;unitInvoice&quot;: { # [required] Invoice details for a single unit.
&quot;additionalCharges&quot;: [ # Additional charges for a unit, e.g. shipping costs.
{
&quot;additionalChargeAmount&quot;: { # [required] Amount of the additional charge.
&quot;additionalChargeAmount&quot;: { # [required] Amount of the additional charge per unit. *Note:* Invoicing works on a per unit bases. The `additionalChargeAmount` is the amount charged per unit, and will be multiplied by the number of entries in `shipmentUnitID`.
&quot;priceAmount&quot;: { # [required] The pre-tax or post-tax price depending on the location of the order.
&quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
&quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
Expand All @@ -259,7 +259,7 @@ <h3>Method Details</h3>
&quot;type&quot;: &quot;A String&quot;, # [required] Type of the additional charge. Acceptable values are: - &quot;`shipping`&quot;
},
],
&quot;unitPrice&quot;: { # [required] Pre-tax or post-tax price of the unit depending on the locality of the order.
&quot;unitPrice&quot;: { # [required] Pre-tax or post-tax price of one unit depending on the locality of the order. *Note:* Invoicing works on a per unit basis. The `unitPrice` is the price of a single unit, and will be multiplied by the number of entries in `shipmentUnitId`.
&quot;currency&quot;: &quot;A String&quot;, # The currency of the price.
&quot;value&quot;: &quot;A String&quot;, # The price represented as a number.
},
Expand Down
24 changes: 21 additions & 3 deletions googleapiclient/discovery_cache/documents/content.v2.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@
"required": true,
"type": "string"
},
"name": {
"description": "If set, only the accounts with the given name (case sensitive) will be returned.",
"location": "query",
"type": "string"
},
"pageToken": {
"description": "The token returned by the previous request.",
"location": "query",
Expand Down Expand Up @@ -875,6 +880,11 @@
"required": true,
"type": "string"
},
"name": {
"description": "If set, only the accounts with the given name (case sensitive) will be returned.",
"location": "query",
"type": "string"
},
"pageToken": {
"description": "The token returned by the previous request.",
"location": "query",
Expand Down Expand Up @@ -5485,13 +5495,17 @@
}
}
},
"revision": "20210624",
"revision": "20210707",
"rootUrl": "https://shoppingcontent.googleapis.com/",
"schemas": {
"Account": {
"description": "Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.",
"id": "Account",
"properties": {
"accountManagement": {
"description": "How the account is managed. Acceptable values are: - \"`manual`\" - \"`automatic`\" ",
"type": "string"
},
"adsLinks": {
"description": "Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.",
"items": {
Expand Down Expand Up @@ -5800,6 +5814,10 @@
},
"type": "array"
},
"accountManagement": {
"description": "How the account is managed. Acceptable values are: - \"`manual`\" - \"`automatic`\" ",
"type": "string"
},
"kind": {
"description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accountStatus`\"",
"type": "string"
Expand Down Expand Up @@ -14746,7 +14764,7 @@
},
"unitPrice": {
"$ref": "Price",
"description": "[required] Pre-tax or post-tax price of the unit depending on the locality of the order."
"description": "[required] Pre-tax or post-tax price of one unit depending on the locality of the order. *Note:* Invoicing works on a per unit basis. The `unitPrice` is the price of a single unit, and will be multiplied by the number of entries in `shipmentUnitId`."
},
"unitPriceTaxes": {
"description": "Tax amounts to apply to the unit price.",
Expand All @@ -14763,7 +14781,7 @@
"properties": {
"additionalChargeAmount": {
"$ref": "Amount",
"description": "[required] Amount of the additional charge."
"description": "[required] Amount of the additional charge per unit. *Note:* Invoicing works on a per unit bases. The `additionalChargeAmount` is the amount charged per unit, and will be multiplied by the number of entries in `shipmentUnitID`."
},
"type": {
"description": "[required] Type of the additional charge. Acceptable values are: - \"`shipping`\" ",
Expand Down
2 changes: 1 addition & 1 deletion googleapiclient/discovery_cache/documents/content.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,7 @@
}
}
},
"revision": "20210624",
"revision": "20210707",
"rootUrl": "https://shoppingcontent.googleapis.com/",
"schemas": {
"Account": {
Expand Down

0 comments on commit 0814e00

Please sign in to comment.