Skip to content

Commit 137047f

Browse files
feat(content): update the api
#### content:v2.1 The following keys were added: - resources.customers.methods.create (Total Keys: 12) - schemas.CloudExportAdditionalProperties (Total Keys: 17) - schemas.Customer (Total Keys: 7) - schemas.Distance (Total Keys: 5) - schemas.Product.properties.cloudExportAdditionalProperties (Total Keys: 2) - schemas.Product.properties.disclosureDate.type (Total Keys: 1) - schemas.ProductViewItemIssueItemIssueType.properties.code.type (Total Keys: 1) - schemas.Service.properties.storeConfig.$ref (Total Keys: 1) - schemas.ServiceStoreConfig (Total Keys: 18)
1 parent 985124a commit 137047f

9 files changed

+609
-24
lines changed

docs/dyn/content_v2_1.customers.html

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
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 #CCC 1px;
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><a href="content_v2_1.html">Content API for Shopping</a> . <a href="content_v2_1.customers.html">customers</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#create">create(merchantId, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Allows uploading one customer information entry. Adding a customer with loyalty data enables the customer to see personalized loyalty annotations on search. Uploading a previously existing customer will overwrite the old entry.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="create">create(merchantId, body=None, x__xgafv=None)</code>
91+
<pre>Allows uploading one customer information entry. Adding a customer with loyalty data enables the customer to see personalized loyalty annotations on search. Uploading a previously existing customer will overwrite the old entry.
92+
93+
Args:
94+
merchantId: string, Required. The ID of the account that owns the customer information. (required)
95+
body: object, The request body.
96+
The object takes the form of:
97+
98+
{ # The object representing a customer to update data for. Includes a customer identifier (such as email address) and any associated metadata to add. LoyaltyData triggers adding customer data for the purpose of loyalty personalization.
99+
&quot;emailAddress&quot;: &quot;A String&quot;, # The customer&#x27;s email address. No extra string processing needed.
100+
&quot;loyaltyData&quot;: { # The loyalty data of the customer. # Loyalty data associated with the customer.
101+
&quot;loyaltyTier&quot;: &quot;A String&quot;, # The tier information for the given user. Can be an empty string.
102+
},
103+
}
104+
105+
x__xgafv: string, V1 error format.
106+
Allowed values
107+
1 - v1 error format
108+
2 - v2 error format
109+
110+
Returns:
111+
An object of the form:
112+
113+
{ # The object representing a customer to update data for. Includes a customer identifier (such as email address) and any associated metadata to add. LoyaltyData triggers adding customer data for the purpose of loyalty personalization.
114+
&quot;emailAddress&quot;: &quot;A String&quot;, # The customer&#x27;s email address. No extra string processing needed.
115+
&quot;loyaltyData&quot;: { # The loyalty data of the customer. # Loyalty data associated with the customer.
116+
&quot;loyaltyTier&quot;: &quot;A String&quot;, # The tier information for the given user. Can be an empty string.
117+
},
118+
}</pre>
119+
</div>
120+
121+
</body></html>

docs/dyn/content_v2_1.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ <h2>Instance Methods</h2>
114114
</p>
115115
<p class="firstline">Returns the csses Resource.</p>
116116

117+
<p class="toc_element">
118+
<code><a href="content_v2_1.customers.html">customers()</a></code>
119+
</p>
120+
<p class="firstline">Returns the customers Resource.</p>
121+
117122
<p class="toc_element">
118123
<code><a href="content_v2_1.datafeeds.html">datafeeds()</a></code>
119124
</p>

docs/dyn/content_v2_1.products.html

Lines changed: 152 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/content_v2_1.productstatuses.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h3>Method Details</h3>
161161
&quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
162162
&quot;A String&quot;,
163163
],
164-
&quot;status&quot;: &quot;A String&quot;, # Destination approval status in `targetCountry` of the offer.
164+
&quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
165165
},
166166
],
167167
&quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
@@ -222,7 +222,7 @@ <h3>Method Details</h3>
222222
&quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
223223
&quot;A String&quot;,
224224
],
225-
&quot;status&quot;: &quot;A String&quot;, # Destination approval status in `targetCountry` of the offer.
225+
&quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
226226
},
227227
],
228228
&quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
@@ -284,7 +284,7 @@ <h3>Method Details</h3>
284284
&quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
285285
&quot;A String&quot;,
286286
],
287-
&quot;status&quot;: &quot;A String&quot;, # Destination approval status in `targetCountry` of the offer.
287+
&quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
288288
},
289289
],
290290
&quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.

docs/dyn/content_v2_1.quotas.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h3>Method Details</h3>
107107

108108
{ # Response message for the ListMethodQuotas method.
109109
&quot;methodQuotas&quot;: [ # The current quota usage and limits per each method.
110-
{ # The quota information per method in the Content API. Includes only methods with current usage greater than zero for your account.
110+
{ # The quota information per method in the Content API.
111111
&quot;method&quot;: &quot;A String&quot;, # 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.
112112
&quot;quotaLimit&quot;: &quot;A String&quot;, # The current quota limit per day, meaning the maximum number of calls for the method.
113113
&quot;quotaUsage&quot;: &quot;A String&quot;, # The current quota usage, meaning the number of calls already made to the method.

docs/dyn/content_v2_1.recommendations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h3>Method Details</h3>
9595

9696
Args:
9797
merchantId: string, Required. The ID of the account to fetch recommendations for. (required)
98-
allowedTag: string, Optional. List of allowed tags. Tags are a set of predefined strings that describe the category that individual recommendation types. User can specify zero or more tags in this field to indicate what group of recommendations they want to receive. Current list of supported tags: - TREND (repeated)
98+
allowedTag: string, Optional. List of allowed tags. Tags are a set of predefined strings that describe the category that individual recommendation types belong to. User can specify zero or more tags in this field to indicate what categories of recommendations they want to receive. Current list of supported tags: - TREND (repeated)
9999
languageCode: string, Optional. Language code of the client. If not set, the result will be in default language (English). This language code affects all fields prefixed with &quot;localized&quot;. This should be set to ISO 639-1 country code. List of currently verified supported language code: en, fr, cs, da, de, es, it, nl, no, pl, pt, pt, fi, sv, vi, tr, th, ko, zh-CN, zh-TW, ja, id, hi
100100
x__xgafv: string, V1 error format.
101101
Allowed values

docs/dyn/content_v2_1.reports.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ <h3>Method Details</h3>
215215
{ # Item issue associated with the product.
216216
&quot;issueType&quot;: { # Type of the item issue. # Item issue type.
217217
&quot;canonicalAttribute&quot;: &quot;A String&quot;, # Canonical attribute name for attribute-specific issues.
218+
&quot;code&quot;: &quot;A String&quot;, # Error code of the issue.
218219
},
219220
&quot;resolution&quot;: &quot;A String&quot;, # Item issue resolution.
220221
&quot;severity&quot;: { # Severity of an issue per destination in a region, and aggregated severity. # Item issue severity.

0 commit comments

Comments
 (0)