blob: 6a890a5c79a555b069fe6170960b98bc1128a416 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.html">Content API for Shopping</a> . <a href="content_v2.liasettings.html">liasettings</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Retrieves and/or updates the LIA settings of multiple accounts in a single request.</p>
83<p class="toc_element">
84 <code><a href="#get">get(merchantId, accountId)</a></code></p>
85<p class="firstline">Retrieves the LIA settings of the account.</p>
86<p class="toc_element">
87 <code><a href="#getaccessiblegmbaccounts">getaccessiblegmbaccounts(merchantId, accountId)</a></code></p>
88<p class="firstline">Retrieves the list of accessible Google My Business accounts.</p>
89<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Lists the LIA settings of the sub-accounts in your Merchant Center account.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#listposdataproviders">listposdataproviders()</a></code></p>
97<p class="firstline">Retrieves the list of POS data providers that have active settings for the all eiligible countries.</p>
98<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099 <code><a href="#requestgmbaccess">requestgmbaccess(merchantId, accountId, gmbEmail)</a></code></p>
100<p class="firstline">Requests access to a specified Google My Business account.</p>
101<p class="toc_element">
102 <code><a href="#requestinventoryverification">requestinventoryverification(merchantId, accountId, country)</a></code></p>
103<p class="firstline">Requests inventory validation for the specified country.</p>
104<p class="toc_element">
105 <code><a href="#setinventoryverificationcontact">setinventoryverificationcontact(merchantId, accountId, contactEmail, contactName, country, language)</a></code></p>
106<p class="firstline">Sets the inventory verification contract for the specified country.</p>
107<p class="toc_element">
108 <code><a href="#setposdataprovider">setposdataprovider(merchantId, accountId, country, posDataProviderId=None, posExternalAccountId=None)</a></code></p>
109<p class="firstline">Sets the POS data provider for the specified country.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700112<p class="firstline">Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117</div>
118
119<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 <pre>Retrieves and/or updates the LIA settings of multiple accounts in a single request.
122
123Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 The object takes the form of:
126
127{
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which to get/update account LIA settings.
131 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
132 &quot;contactEmail&quot;: &quot;A String&quot;, # Inventory validation contact email. Required only for SetInventoryValidationContact.
133 &quot;contactName&quot;: &quot;A String&quot;, # Inventory validation contact name. Required only for SetInventoryValidationContact.
134 &quot;country&quot;: &quot;A String&quot;, # The country code. Required only for RequestInventoryVerification.
135 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB account. Required only for RequestGmbAccess.
136 &quot;liaSettings&quot;: { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role. # The account Lia settings to update. Only defined if the method is `update`.
137 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses.
138 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;about&quot;: { # The settings for the About page.
141 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
Dan O'Mearadd494642020-05-01 07:42:23 -0700142 #
143 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 # - &quot;`active`&quot;
145 # - &quot;`inactive`&quot;
146 # - &quot;`pending`&quot;
147 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
150 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
151 &quot;inventory&quot;: { # LIA inventory verification settings.
152 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
153 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
154 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700155 #
156 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 # - &quot;`active`&quot;
158 # - &quot;`inactive`&quot;
159 # - &quot;`pending`&quot;
160 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 #
162 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 # - &quot;`active`&quot;
164 # - &quot;`inactive`&quot;
165 # - &quot;`pending`&quot;
166 },
167 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
168 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
169 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700170 #
171 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 # - &quot;`active`&quot;
173 # - &quot;`inactive`&quot;
174 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
177 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
178 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
179 },
180 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700181 },
182 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
186 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 #
188 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 # - &quot;`get`&quot;
190 # - &quot;`getAccessibleGmbAccounts`&quot;
191 # - &quot;`requestGmbAccess`&quot;
192 # - &quot;`requestInventoryVerification`&quot;
193 # - &quot;`setInventoryVerificationContact`&quot;
194 # - &quot;`update`&quot;
195 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of POS data provider. Required only for SetPosProvider.
196 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS provider.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 },
198 ],
199 }
200
201 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
202
203Returns:
204 An object of the form:
205
206 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
210 &quot;errors&quot;: { # A list of errors returned by a failed batch entry. # A list of errors defined if, and only if, the request failed.
211 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
212 &quot;errors&quot;: [ # A list of errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 { # An error returned by the API.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
215 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
216 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700217 },
218 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;gmbAccounts&quot;: { # The the list of accessible GMB accounts.
222 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the Merchant Center account.
223 &quot;gmbAccounts&quot;: [ # A list of GMB accounts which are available to the merchant.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;email&quot;: &quot;A String&quot;, # The email which identifies the GMB account.
226 &quot;listingCount&quot;: &quot;A String&quot;, # Number of listings under this account.
227 &quot;name&quot;: &quot;A String&quot;, # The name of the GMB account.
228 &quot;type&quot;: &quot;A String&quot;, # The type of the GMB account (User or Business).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700229 },
230 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;kind&quot;: &quot;content#liasettingsCustomBatchResponseEntry&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liasettingsCustomBatchResponseEntry`&quot;
233 &quot;liaSettings&quot;: { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role. # The retrieved or updated Lia settings.
234 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses.
235 &quot;countrySettings&quot;: [ # The LIA settings for each country.
236 {
237 &quot;about&quot;: { # The settings for the About page.
238 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
239 #
240 # Acceptable values are:
241 # - &quot;`active`&quot;
242 # - &quot;`inactive`&quot;
243 # - &quot;`pending`&quot;
244 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
245 },
246 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
247 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
248 &quot;inventory&quot;: { # LIA inventory verification settings.
249 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
250 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
251 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
252 #
253 # Acceptable values are:
254 # - &quot;`active`&quot;
255 # - &quot;`inactive`&quot;
256 # - &quot;`pending`&quot;
257 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
258 #
259 # Acceptable values are:
260 # - &quot;`active`&quot;
261 # - &quot;`inactive`&quot;
262 # - &quot;`pending`&quot;
263 },
264 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
265 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
266 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
267 #
268 # Acceptable values are:
269 # - &quot;`active`&quot;
270 # - &quot;`inactive`&quot;
271 # - &quot;`pending`&quot;
272 },
273 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
274 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
275 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
276 },
277 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
278 },
279 ],
280 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
281 },
282 &quot;posDataProviders&quot;: [ # The list of POS data providers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;country&quot;: &quot;A String&quot;, # Country code.
285 &quot;posDataProviders&quot;: [ # A list of POS data providers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;displayName&quot;: &quot;A String&quot;, # The display name of Pos data Provider.
288 &quot;fullName&quot;: &quot;A String&quot;, # The full name of this POS data Provider.
289 &quot;providerId&quot;: &quot;A String&quot;, # The ID of the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 },
291 ],
292 },
293 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700294 },
295 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;kind&quot;: &quot;content#liasettingsCustomBatchResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsCustomBatchResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 }</pre>
298</div>
299
300<div class="method">
301 <code class="details" id="get">get(merchantId, accountId)</code>
302 <pre>Retrieves the LIA settings of the account.
303
304Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700305 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 accountId: string, The ID of the account for which to get or update LIA settings. (required)
307
308Returns:
309 An object of the form:
310
311 { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses.
313 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;about&quot;: { # The settings for the About page.
316 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
Dan O'Mearadd494642020-05-01 07:42:23 -0700317 #
318 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 # - &quot;`active`&quot;
320 # - &quot;`inactive`&quot;
321 # - &quot;`pending`&quot;
322 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700323 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
325 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
326 &quot;inventory&quot;: { # LIA inventory verification settings.
327 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
328 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
329 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700330 #
331 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 # - &quot;`active`&quot;
333 # - &quot;`inactive`&quot;
334 # - &quot;`pending`&quot;
335 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700336 #
337 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 # - &quot;`active`&quot;
339 # - &quot;`inactive`&quot;
340 # - &quot;`pending`&quot;
341 },
342 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
343 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
344 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700345 #
346 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 # - &quot;`active`&quot;
348 # - &quot;`inactive`&quot;
349 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
352 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
353 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
354 },
355 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
357 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 }</pre>
360</div>
361
362<div class="method">
363 <code class="details" id="getaccessiblegmbaccounts">getaccessiblegmbaccounts(merchantId, accountId)</code>
364 <pre>Retrieves the list of accessible Google My Business accounts.
365
366Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700367 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700368 accountId: string, The ID of the account for which to retrieve accessible Google My Business accounts. (required)
369
370Returns:
371 An object of the form:
372
373 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the Merchant Center account.
375 &quot;gmbAccounts&quot;: [ # A list of GMB accounts which are available to the merchant.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;email&quot;: &quot;A String&quot;, # The email which identifies the GMB account.
378 &quot;listingCount&quot;: &quot;A String&quot;, # Number of listings under this account.
379 &quot;name&quot;: &quot;A String&quot;, # The name of the GMB account.
380 &quot;type&quot;: &quot;A String&quot;, # The type of the GMB account (User or Business).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 },
382 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;kind&quot;: &quot;content#liasettingsGetAccessibleGmbAccountsResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsGetAccessibleGmbAccountsResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384 }</pre>
385</div>
386
387<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700389 <pre>Lists the LIA settings of the sub-accounts in your Merchant Center account.
390
391Args:
392 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 maxResults: integer, The maximum number of LIA settings to return in the response, used for paging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 pageToken: string, The token returned by the previous request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395
396Returns:
397 An object of the form:
398
399 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;kind&quot;: &quot;content#liasettingsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsListResponse&quot;.
401 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of LIA settings.
402 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700403 { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses.
405 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &quot;about&quot;: { # The settings for the About page.
408 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 #
410 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 # - &quot;`active`&quot;
412 # - &quot;`inactive`&quot;
413 # - &quot;`pending`&quot;
414 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
417 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
418 &quot;inventory&quot;: { # LIA inventory verification settings.
419 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
420 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
421 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700422 #
423 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 # - &quot;`active`&quot;
425 # - &quot;`inactive`&quot;
426 # - &quot;`pending`&quot;
427 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700428 #
429 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 # - &quot;`active`&quot;
431 # - &quot;`inactive`&quot;
432 # - &quot;`pending`&quot;
433 },
434 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
435 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
436 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700437 #
438 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 # - &quot;`active`&quot;
440 # - &quot;`inactive`&quot;
441 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700442 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
444 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
445 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
446 },
447 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 },
449 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451 },
452 ],
453 }</pre>
454</div>
455
456<div class="method">
457 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
458 <pre>Retrieves the next page of results.
459
460Args:
461 previous_request: The request for the previous page. (required)
462 previous_response: The response from the request for the previous page. (required)
463
464Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466 page. Returns None if there are no more items in the collection.
467 </pre>
468</div>
469
470<div class="method">
471 <code class="details" id="listposdataproviders">listposdataproviders()</code>
472 <pre>Retrieves the list of POS data providers that have active settings for the all eiligible countries.
473
474Args:
475
476Returns:
477 An object of the form:
478
479 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;kind&quot;: &quot;content#liasettingsListPosDataProvidersResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsListPosDataProvidersResponse&quot;.
481 &quot;posDataProviders&quot;: [ # The list of POS data providers for each eligible country
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700482 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &quot;country&quot;: &quot;A String&quot;, # Country code.
484 &quot;posDataProviders&quot;: [ # A list of POS data providers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;displayName&quot;: &quot;A String&quot;, # The display name of Pos data Provider.
487 &quot;fullName&quot;: &quot;A String&quot;, # The full name of this POS data Provider.
488 &quot;providerId&quot;: &quot;A String&quot;, # The ID of the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 },
490 ],
491 },
492 ],
493 }</pre>
494</div>
495
496<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 <code class="details" id="requestgmbaccess">requestgmbaccess(merchantId, accountId, gmbEmail)</code>
498 <pre>Requests access to a specified Google My Business account.
499
500Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700501 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502 accountId: string, The ID of the account for which GMB access is requested. (required)
503 gmbEmail: string, The email of the Google My Business account. (required)
504
505Returns:
506 An object of the form:
507
508 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 &quot;kind&quot;: &quot;content#liasettingsRequestGmbAccessResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsRequestGmbAccessResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700510 }</pre>
511</div>
512
513<div class="method">
514 <code class="details" id="requestinventoryverification">requestinventoryverification(merchantId, accountId, country)</code>
515 <pre>Requests inventory validation for the specified country.
516
517Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700518 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519 accountId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
520 country: string, The country for which inventory validation is requested. (required)
521
522Returns:
523 An object of the form:
524
525 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;kind&quot;: &quot;content#liasettingsRequestInventoryVerificationResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsRequestInventoryVerificationResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 }</pre>
528</div>
529
530<div class="method">
531 <code class="details" id="setinventoryverificationcontact">setinventoryverificationcontact(merchantId, accountId, contactEmail, contactName, country, language)</code>
532 <pre>Sets the inventory verification contract for the specified country.
533
534Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700535 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700536 accountId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
537 contactEmail: string, The email of the inventory verification contact. (required)
538 contactName: string, The name of the inventory verification contact. (required)
539 country: string, The country for which inventory verification is requested. (required)
540 language: string, The language for which inventory verification is requested. (required)
541
542Returns:
543 An object of the form:
544
545 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;kind&quot;: &quot;content#liasettingsSetInventoryVerificationContactResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsSetInventoryVerificationContactResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700547 }</pre>
548</div>
549
550<div class="method">
551 <code class="details" id="setposdataprovider">setposdataprovider(merchantId, accountId, country, posDataProviderId=None, posExternalAccountId=None)</code>
552 <pre>Sets the POS data provider for the specified country.
553
554Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700555 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 accountId: string, The ID of the account for which to retrieve accessible Google My Business accounts. (required)
557 country: string, The country for which the POS data provider is selected. (required)
558 posDataProviderId: string, The ID of POS data provider.
559 posExternalAccountId: string, The account ID by which this merchant is known to the POS data provider.
560
561Returns:
562 An object of the form:
563
564 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700565 &quot;kind&quot;: &quot;content#liasettingsSetPosDataProviderResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsSetPosDataProviderResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566 }</pre>
567</div>
568
569<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700570 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700571 <pre>Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700572
573Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700574 merchantId: string, The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 accountId: string, The ID of the account for which to get or update LIA settings. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700576 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700577 The object takes the form of:
578
579{ # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses.
581 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700582 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 &quot;about&quot;: { # The settings for the About page.
584 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
Dan O'Mearadd494642020-05-01 07:42:23 -0700585 #
586 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 # - &quot;`active`&quot;
588 # - &quot;`inactive`&quot;
589 # - &quot;`pending`&quot;
590 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700591 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
593 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
594 &quot;inventory&quot;: { # LIA inventory verification settings.
595 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
596 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
597 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700598 #
599 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 # - &quot;`active`&quot;
601 # - &quot;`inactive`&quot;
602 # - &quot;`pending`&quot;
603 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700604 #
605 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 # - &quot;`active`&quot;
607 # - &quot;`inactive`&quot;
608 # - &quot;`pending`&quot;
609 },
610 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
611 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
612 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700613 #
614 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 # - &quot;`active`&quot;
616 # - &quot;`inactive`&quot;
617 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700618 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700619 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
620 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
621 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
622 },
623 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700624 },
625 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700626 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627}
628
629 dryRun: boolean, Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).
630
631Returns:
632 An object of the form:
633
634 { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700635 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account to which these LIA settings belong. Ignored upon update, always present in get request responses.
636 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &quot;about&quot;: { # The settings for the About page.
639 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
Dan O'Mearadd494642020-05-01 07:42:23 -0700640 #
641 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 # - &quot;`active`&quot;
643 # - &quot;`inactive`&quot;
644 # - &quot;`pending`&quot;
645 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
648 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
649 &quot;inventory&quot;: { # LIA inventory verification settings.
650 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
651 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
652 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700653 #
654 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 # - &quot;`active`&quot;
656 # - &quot;`inactive`&quot;
657 # - &quot;`pending`&quot;
658 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700659 #
660 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 # - &quot;`active`&quot;
662 # - &quot;`inactive`&quot;
663 # - &quot;`pending`&quot;
664 },
665 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
666 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
667 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700668 #
669 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 # - &quot;`active`&quot;
671 # - &quot;`inactive`&quot;
672 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700673 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
675 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
676 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
677 },
678 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700679 },
680 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 }</pre>
683</div>
684
685</body></html>