You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/content_v2.orders.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2067,7 +2067,7 @@ <h3>Method Details</h3>
2067
2067
"lineItemId": "A String", # The ID of the line item to return. Either lineItemId or productId is required.
2068
2068
"operationId": "A String", # The ID of the operation. Unique across all operations for a given order.
2069
2069
"productId": "A String", # The ID of the product to return. This is the REST ID used in the products service. Either lineItemId or productId is required.
2070
-
"quantity": 42, # The quantity to return and refund.
2070
+
"quantity": 42, # The quantity to return and refund. Quantity is required.
Copy file name to clipboardExpand all lines: docs/dyn/content_v2.productstatuses.html
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,7 @@ <h3>Method Details</h3>
209
209
"canonicalLink": "A String", # URL for the canonical version of your item's landing page.
210
210
"channel": "A String", # Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`"
211
211
"color": "A String", # Color of the item.
212
-
"condition": "A String", # Condition or state of the item. Acceptable values are: - "`local`" - "`online`"
212
+
"condition": "A String", # Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`"
213
213
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item.
214
214
"costOfGoodsSold": { # Cost of goods sold. Used for gross profit reporting.
215
215
"currency": "A String", # The currency of the price.
@@ -258,7 +258,7 @@ <h3>Method Details</h3>
258
258
"energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - "`A`" - "`A+`" - "`A++`" - "`A+++`" - "`B`" - "`C`" - "`D`" - "`E`" - "`F`" - "`G`"
259
259
"expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in `productstatuses` as `googleExpirationDate` and might be earlier if `expirationDate` is too far in the future.
260
260
"gender": "A String", # Target gender of the item. Acceptable values are: - "`female`" - "`male`" - "`unisex`"
261
-
"googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
261
+
"googleProductCategory": "A String", # Google's category of the item (see [Google product taxonomy](https://support.google.com/merchants/answer/1705911)). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.
262
262
"gtin": "A String", # Global Trade Item Number (GTIN) of the item.
263
263
"id": "A String", # The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId.
264
264
"identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
@@ -464,7 +464,7 @@ <h3>Method Details</h3>
464
464
"canonicalLink": "A String", # URL for the canonical version of your item's landing page.
465
465
"channel": "A String", # Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`"
466
466
"color": "A String", # Color of the item.
467
-
"condition": "A String", # Condition or state of the item. Acceptable values are: - "`local`" - "`online`"
467
+
"condition": "A String", # Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`"
468
468
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item.
469
469
"costOfGoodsSold": { # Cost of goods sold. Used for gross profit reporting.
470
470
"currency": "A String", # The currency of the price.
@@ -513,7 +513,7 @@ <h3>Method Details</h3>
513
513
"energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - "`A`" - "`A+`" - "`A++`" - "`A+++`" - "`B`" - "`C`" - "`D`" - "`E`" - "`F`" - "`G`"
514
514
"expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in `productstatuses` as `googleExpirationDate` and might be earlier if `expirationDate` is too far in the future.
515
515
"gender": "A String", # Target gender of the item. Acceptable values are: - "`female`" - "`male`" - "`unisex`"
516
-
"googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
516
+
"googleProductCategory": "A String", # Google's category of the item (see [Google product taxonomy](https://support.google.com/merchants/answer/1705911)). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.
517
517
"gtin": "A String", # Global Trade Item Number (GTIN) of the item.
518
518
"id": "A String", # The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId.
519
519
"identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
@@ -721,7 +721,7 @@ <h3>Method Details</h3>
721
721
"canonicalLink": "A String", # URL for the canonical version of your item's landing page.
722
722
"channel": "A String", # Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`"
723
723
"color": "A String", # Color of the item.
724
-
"condition": "A String", # Condition or state of the item. Acceptable values are: - "`local`" - "`online`"
724
+
"condition": "A String", # Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`"
725
725
"contentLanguage": "A String", # Required. The two-letter ISO 639-1 language code for the item.
726
726
"costOfGoodsSold": { # Cost of goods sold. Used for gross profit reporting.
727
727
"currency": "A String", # The currency of the price.
@@ -770,7 +770,7 @@ <h3>Method Details</h3>
770
770
"energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU. Acceptable values are: - "`A`" - "`A+`" - "`A++`" - "`A+++`" - "`B`" - "`C`" - "`D`" - "`E`" - "`F`" - "`G`"
771
771
"expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in `productstatuses` as `googleExpirationDate` and might be earlier if `expirationDate` is too far in the future.
772
772
"gender": "A String", # Target gender of the item. Acceptable values are: - "`female`" - "`male`" - "`unisex`"
773
-
"googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
773
+
"googleProductCategory": "A String", # Google's category of the item (see [Google product taxonomy](https://support.google.com/merchants/answer/1705911)). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API.
774
774
"gtin": "A String", # Global Trade Item Number (GTIN) of the item.
775
775
"id": "A String", # The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId.
776
776
"identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console', monospace;
39
+
}
40
+
41
+
pre {
42
+
margin-top:0.5em;
43
+
}
44
+
45
+
h1,h2,h3,p {
46
+
font-family: Arial, sans serif;
47
+
}
48
+
49
+
h1,h2,h3 {
50
+
border-bottom: solid #CCC1px;
51
+
}
52
+
53
+
.toc_element {
54
+
margin-top:0.5em;
55
+
}
56
+
57
+
.firstline {
58
+
margin-left:2 em;
59
+
}
60
+
61
+
.method {
62
+
margin-top:1em;
63
+
border: solid 1px#CCC;
64
+
padding:1em;
65
+
background:#EEE;
66
+
}
67
+
68
+
.details {
69
+
font-weight: bold;
70
+
font-size:14px;
71
+
}
72
+
73
+
</style>
74
+
75
+
<h1><ahref="content_v2_1.html">Content API for Shopping</a> . <ahref="content_v2_1.accounts.html">accounts</a> . <ahref="content_v2_1.accounts.credentials.html">credentials</a></h1>
<pclass="firstline">Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.</p>
<pre>Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.
92
+
93
+
Args:
94
+
accountId: string, Required. The merchant id of the account these credentials belong to. (required)
95
+
body: object, The request body.
96
+
The object takes the form of:
97
+
98
+
{ # Credentials allowing Google to call a partner's API on behalf of a merchant.
99
+
"accessToken": "A String", # An OAuth access token.
100
+
"expiresIn": "A String", # The amount of time, in seconds, after which the access token is no longer valid.
101
+
"purpose": "A String", # Indicates to Google how Google should use these OAuth tokens.
102
+
}
103
+
104
+
x__xgafv: string, V1 error format.
105
+
Allowed values
106
+
1 - v1 error format
107
+
2 - v2 error format
108
+
109
+
Returns:
110
+
An object of the form:
111
+
112
+
{ # Credentials allowing Google to call a partner's API on behalf of a merchant.
113
+
"accessToken": "A String", # An OAuth access token.
114
+
"expiresIn": "A String", # The amount of time, in seconds, after which the access token is no longer valid.
115
+
"purpose": "A String", # Indicates to Google how Google should use these OAuth tokens.
0 commit comments