blob: 3e505221fddc5596c5f834b8492a6fce2c820063 [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#custombatch">custombatch(body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Retrieves and/or updates the LIA settings of multiple accounts in a single request.</p>
80<p class="toc_element">
81 <code><a href="#get">get(merchantId, accountId)</a></code></p>
82<p class="firstline">Retrieves the LIA settings of the account.</p>
83<p class="toc_element">
84 <code><a href="#getaccessiblegmbaccounts">getaccessiblegmbaccounts(merchantId, accountId)</a></code></p>
85<p class="firstline">Retrieves the list of accessible Google My Business accounts.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists the LIA settings of the sub-accounts in your Merchant Center account.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#listposdataproviders">listposdataproviders()</a></code></p>
94<p class="firstline">Retrieves the list of POS data providers that have active settings for the all eiligible countries.</p>
95<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 <code><a href="#requestgmbaccess">requestgmbaccess(merchantId, accountId, gmbEmail)</a></code></p>
97<p class="firstline">Requests access to a specified Google My Business account.</p>
98<p class="toc_element">
99 <code><a href="#requestinventoryverification">requestinventoryverification(merchantId, accountId, country)</a></code></p>
100<p class="firstline">Requests inventory validation for the specified country.</p>
101<p class="toc_element">
102 <code><a href="#setinventoryverificationcontact">setinventoryverificationcontact(merchantId, accountId, contactEmail, contactName, country, language)</a></code></p>
103<p class="firstline">Sets the inventory verification contract for the specified country.</p>
104<p class="toc_element">
105 <code><a href="#setposdataprovider">setposdataprovider(merchantId, accountId, country, posDataProviderId=None, posExternalAccountId=None)</a></code></p>
106<p class="firstline">Sets the POS data provider for the specified country.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Updates the LIA settings of the account.</p>
110<h3>Method Details</h3>
111<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code class="details" id="custombatch">custombatch(body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 <pre>Retrieves and/or updates the LIA settings of multiple accounts in a single request.
114
115Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 The object takes the form of:
118
119{
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the account for which to get/update account LIA settings.
123 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
124 &quot;contactEmail&quot;: &quot;A String&quot;, # Inventory validation contact email. Required only for SetInventoryValidationContact.
125 &quot;contactName&quot;: &quot;A String&quot;, # Inventory validation contact name. Required only for SetInventoryValidationContact.
126 &quot;country&quot;: &quot;A String&quot;, # The country code. Required only for RequestInventoryVerification.
127 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB account. Required only for RequestGmbAccess.
128 &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`.
129 &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.
130 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;about&quot;: { # The settings for the About page.
133 &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 -0700134 #
135 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 # - &quot;`active`&quot;
137 # - &quot;`inactive`&quot;
138 # - &quot;`pending`&quot;
139 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
142 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
143 &quot;inventory&quot;: { # LIA inventory verification settings.
144 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
145 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
146 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700147 #
148 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 # - &quot;`active`&quot;
150 # - &quot;`inactive`&quot;
151 # - &quot;`pending`&quot;
152 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700153 #
154 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 # - &quot;`active`&quot;
156 # - &quot;`inactive`&quot;
157 # - &quot;`pending`&quot;
158 },
159 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
160 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
161 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700162 #
163 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 # - &quot;`active`&quot;
165 # - &quot;`inactive`&quot;
166 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
169 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
170 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
171 },
172 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 },
174 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &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 -0700176 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
178 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry.
Dan O'Mearadd494642020-05-01 07:42:23 -0700179 #
180 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 # - &quot;`get`&quot;
182 # - &quot;`getAccessibleGmbAccounts`&quot;
183 # - &quot;`requestGmbAccess`&quot;
184 # - &quot;`requestInventoryVerification`&quot;
185 # - &quot;`setInventoryVerificationContact`&quot;
186 # - &quot;`update`&quot;
187 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of POS data provider. Required only for SetPosProvider.
188 &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 -0700189 },
190 ],
191 }
192
193 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).
194
195Returns:
196 An object of the form:
197
198 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;batchId&quot;: 42, # The ID of the request entry to which this entry responds.
202 &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.
203 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
204 &quot;errors&quot;: [ # A list of errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205 { # An error returned by the API.
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
207 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
208 &quot;reason&quot;: &quot;A String&quot;, # The error code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
210 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;gmbAccounts&quot;: { # The the list of accessible GMB accounts.
214 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the Merchant Center account.
215 &quot;gmbAccounts&quot;: [ # A list of GMB accounts which are available to the merchant.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;email&quot;: &quot;A String&quot;, # The email which identifies the GMB account.
218 &quot;listingCount&quot;: &quot;A String&quot;, # Number of listings under this account.
219 &quot;name&quot;: &quot;A String&quot;, # The name of the GMB account.
220 &quot;type&quot;: &quot;A String&quot;, # The type of the GMB account (User or Business).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 },
222 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700223 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;kind&quot;: &quot;content#liasettingsCustomBatchResponseEntry&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liasettingsCustomBatchResponseEntry`&quot;
225 &quot;liaSettings&quot;: { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role. # The retrieved or updated Lia settings.
226 &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.
227 &quot;countrySettings&quot;: [ # The LIA settings for each country.
228 {
229 &quot;about&quot;: { # The settings for the About page.
230 &quot;status&quot;: &quot;A String&quot;, # The status of the verification process for the About page.
231 #
232 # Acceptable values are:
233 # - &quot;`active`&quot;
234 # - &quot;`inactive`&quot;
235 # - &quot;`pending`&quot;
236 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
237 },
238 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
239 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
240 &quot;inventory&quot;: { # LIA inventory verification settings.
241 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
242 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
243 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
244 #
245 # Acceptable values are:
246 # - &quot;`active`&quot;
247 # - &quot;`inactive`&quot;
248 # - &quot;`pending`&quot;
249 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
250 #
251 # Acceptable values are:
252 # - &quot;`active`&quot;
253 # - &quot;`inactive`&quot;
254 # - &quot;`pending`&quot;
255 },
256 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
257 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
258 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
259 #
260 # Acceptable values are:
261 # - &quot;`active`&quot;
262 # - &quot;`inactive`&quot;
263 # - &quot;`pending`&quot;
264 },
265 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
266 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
267 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
268 },
269 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
270 },
271 ],
272 &quot;kind&quot;: &quot;content#liaSettings&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#liaSettings`&quot;
273 },
274 &quot;posDataProviders&quot;: [ # The list of POS data providers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700275 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 &quot;country&quot;: &quot;A String&quot;, # Country code.
277 &quot;posDataProviders&quot;: [ # A list of POS data providers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;displayName&quot;: &quot;A String&quot;, # The display name of Pos data Provider.
280 &quot;fullName&quot;: &quot;A String&quot;, # The full name of this POS data Provider.
281 &quot;providerId&quot;: &quot;A String&quot;, # The ID of the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 },
283 ],
284 },
285 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 },
287 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 &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 -0700289 }</pre>
290</div>
291
292<div class="method">
293 <code class="details" id="get">get(merchantId, accountId)</code>
294 <pre>Retrieves the LIA settings of the account.
295
296Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 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 -0700298 accountId: string, The ID of the account for which to get or update LIA settings. (required)
299
300Returns:
301 An object of the form:
302
303 { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &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.
305 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;about&quot;: { # The settings for the About page.
308 &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 -0700309 #
310 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 # - &quot;`active`&quot;
312 # - &quot;`inactive`&quot;
313 # - &quot;`pending`&quot;
314 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700315 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
317 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
318 &quot;inventory&quot;: { # LIA inventory verification settings.
319 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
320 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
321 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700322 #
323 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 # - &quot;`active`&quot;
325 # - &quot;`inactive`&quot;
326 # - &quot;`pending`&quot;
327 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 #
329 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 # - &quot;`active`&quot;
331 # - &quot;`inactive`&quot;
332 # - &quot;`pending`&quot;
333 },
334 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
335 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
336 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700337 #
338 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 # - &quot;`active`&quot;
340 # - &quot;`inactive`&quot;
341 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
344 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
345 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
346 },
347 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 },
349 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &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 -0700351 }</pre>
352</div>
353
354<div class="method">
355 <code class="details" id="getaccessiblegmbaccounts">getaccessiblegmbaccounts(merchantId, accountId)</code>
356 <pre>Retrieves the list of accessible Google My Business accounts.
357
358Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700359 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 -0700360 accountId: string, The ID of the account for which to retrieve accessible Google My Business accounts. (required)
361
362Returns:
363 An object of the form:
364
365 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700366 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the Merchant Center account.
367 &quot;gmbAccounts&quot;: [ # A list of GMB accounts which are available to the merchant.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700368 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 &quot;email&quot;: &quot;A String&quot;, # The email which identifies the GMB account.
370 &quot;listingCount&quot;: &quot;A String&quot;, # Number of listings under this account.
371 &quot;name&quot;: &quot;A String&quot;, # The name of the GMB account.
372 &quot;type&quot;: &quot;A String&quot;, # The type of the GMB account (User or Business).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 },
374 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &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 -0700376 }</pre>
377</div>
378
379<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 <pre>Lists the LIA settings of the sub-accounts in your Merchant Center account.
382
383Args:
384 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 maxResults: integer, The maximum number of LIA settings to return in the response, used for paging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 pageToken: string, The token returned by the previous request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387
388Returns:
389 An object of the form:
390
391 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 &quot;kind&quot;: &quot;content#liasettingsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsListResponse&quot;.
393 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of LIA settings.
394 &quot;resources&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &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.
397 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;about&quot;: { # The settings for the About page.
400 &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 -0700401 #
402 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 # - &quot;`active`&quot;
404 # - &quot;`inactive`&quot;
405 # - &quot;`pending`&quot;
406 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700407 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
409 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
410 &quot;inventory&quot;: { # LIA inventory verification settings.
411 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
412 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
413 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700414 #
415 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 # - &quot;`active`&quot;
417 # - &quot;`inactive`&quot;
418 # - &quot;`pending`&quot;
419 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700420 #
421 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 # - &quot;`active`&quot;
423 # - &quot;`inactive`&quot;
424 # - &quot;`pending`&quot;
425 },
426 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
427 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
428 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700429 #
430 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 # - &quot;`active`&quot;
432 # - &quot;`inactive`&quot;
433 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700434 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
436 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
437 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
438 },
439 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 },
441 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &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 -0700443 },
444 ],
445 }</pre>
446</div>
447
448<div class="method">
449 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
450 <pre>Retrieves the next page of results.
451
452Args:
453 previous_request: The request for the previous page. (required)
454 previous_response: The response from the request for the previous page. (required)
455
456Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 page. Returns None if there are no more items in the collection.
459 </pre>
460</div>
461
462<div class="method">
463 <code class="details" id="listposdataproviders">listposdataproviders()</code>
464 <pre>Retrieves the list of POS data providers that have active settings for the all eiligible countries.
465
466Args:
467
468Returns:
469 An object of the form:
470
471 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 &quot;kind&quot;: &quot;content#liasettingsListPosDataProvidersResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#liasettingsListPosDataProvidersResponse&quot;.
473 &quot;posDataProviders&quot;: [ # The list of POS data providers for each eligible country
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700474 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 &quot;country&quot;: &quot;A String&quot;, # Country code.
476 &quot;posDataProviders&quot;: [ # A list of POS data providers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 &quot;displayName&quot;: &quot;A String&quot;, # The display name of Pos data Provider.
479 &quot;fullName&quot;: &quot;A String&quot;, # The full name of this POS data Provider.
480 &quot;providerId&quot;: &quot;A String&quot;, # The ID of the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700481 },
482 ],
483 },
484 ],
485 }</pre>
486</div>
487
488<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 <code class="details" id="requestgmbaccess">requestgmbaccess(merchantId, accountId, gmbEmail)</code>
490 <pre>Requests access to a specified Google My Business account.
491
492Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700493 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 -0700494 accountId: string, The ID of the account for which GMB access is requested. (required)
495 gmbEmail: string, The email of the Google My Business account. (required)
496
497Returns:
498 An object of the form:
499
500 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &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 -0700502 }</pre>
503</div>
504
505<div class="method">
506 <code class="details" id="requestinventoryverification">requestinventoryverification(merchantId, accountId, country)</code>
507 <pre>Requests inventory validation for the specified country.
508
509Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700510 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 -0700511 accountId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
512 country: string, The country for which inventory validation is requested. (required)
513
514Returns:
515 An object of the form:
516
517 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &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 -0700519 }</pre>
520</div>
521
522<div class="method">
523 <code class="details" id="setinventoryverificationcontact">setinventoryverificationcontact(merchantId, accountId, contactEmail, contactName, country, language)</code>
524 <pre>Sets the inventory verification contract for the specified country.
525
526Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700527 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 -0700528 accountId: string, The ID of the account that manages the order. This cannot be a multi-client account. (required)
529 contactEmail: string, The email of the inventory verification contact. (required)
530 contactName: string, The name of the inventory verification contact. (required)
531 country: string, The country for which inventory verification is requested. (required)
532 language: string, The language for which inventory verification is requested. (required)
533
534Returns:
535 An object of the form:
536
537 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 &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 -0700539 }</pre>
540</div>
541
542<div class="method">
543 <code class="details" id="setposdataprovider">setposdataprovider(merchantId, accountId, country, posDataProviderId=None, posExternalAccountId=None)</code>
544 <pre>Sets the POS data provider for the specified country.
545
546Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700547 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 -0700548 accountId: string, The ID of the account for which to retrieve accessible Google My Business accounts. (required)
549 country: string, The country for which the POS data provider is selected. (required)
550 posDataProviderId: string, The ID of POS data provider.
551 posExternalAccountId: string, The account ID by which this merchant is known to the POS data provider.
552
553Returns:
554 An object of the form:
555
556 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700557 &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 -0700558 }</pre>
559</div>
560
561<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700562 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700563 <pre>Updates the LIA settings of the account.
564
565Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 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 -0700567 accountId: string, The ID of the account for which to get or update LIA settings. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700568 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569 The object takes the form of:
570
571{ # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &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.
573 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700574 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;about&quot;: { # The settings for the About page.
576 &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 -0700577 #
578 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700579 # - &quot;`active`&quot;
580 # - &quot;`inactive`&quot;
581 # - &quot;`pending`&quot;
582 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700583 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
585 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
586 &quot;inventory&quot;: { # LIA inventory verification settings.
587 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
588 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
589 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700590 #
591 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 # - &quot;`active`&quot;
593 # - &quot;`inactive`&quot;
594 # - &quot;`pending`&quot;
595 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700596 #
597 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 # - &quot;`active`&quot;
599 # - &quot;`inactive`&quot;
600 # - &quot;`pending`&quot;
601 },
602 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
603 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
604 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700605 #
606 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 # - &quot;`active`&quot;
608 # - &quot;`inactive`&quot;
609 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700610 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
612 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
613 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
614 },
615 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616 },
617 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 &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 -0700619}
620
621 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).
622
623Returns:
624 An object of the form:
625
626 { # Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 &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.
628 &quot;countrySettings&quot;: [ # The LIA settings for each country.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700629 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;about&quot;: { # The settings for the About page.
631 &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 -0700632 #
633 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 # - &quot;`active`&quot;
635 # - &quot;`inactive`&quot;
636 # - &quot;`pending`&quot;
637 &quot;url&quot;: &quot;A String&quot;, # The URL for the About page.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700638 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;country&quot;: &quot;A String&quot;, # Required. CLDR country code (e.g. &quot;US&quot;).
640 &quot;hostedLocalStorefrontActive&quot;: True or False, # The status of the &quot;Merchant hosted local storefront&quot; feature.
641 &quot;inventory&quot;: { # LIA inventory verification settings.
642 &quot;inventoryVerificationContactEmail&quot;: &quot;A String&quot;, # The email of the contact for the inventory verification process.
643 &quot;inventoryVerificationContactName&quot;: &quot;A String&quot;, # The name of the contact for the inventory verification process.
644 &quot;inventoryVerificationContactStatus&quot;: &quot;A String&quot;, # The status of the verification contact.
Dan O'Mearadd494642020-05-01 07:42:23 -0700645 #
646 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 # - &quot;`active`&quot;
648 # - &quot;`inactive`&quot;
649 # - &quot;`pending`&quot;
650 &quot;status&quot;: &quot;A String&quot;, # The status of the inventory verification process.
Dan O'Mearadd494642020-05-01 07:42:23 -0700651 #
652 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 # - &quot;`active`&quot;
654 # - &quot;`inactive`&quot;
655 # - &quot;`pending`&quot;
656 },
657 &quot;onDisplayToOrder&quot;: { # LIA &quot;On Display To Order&quot; settings.
658 &quot;shippingCostPolicyUrl&quot;: &quot;A String&quot;, # Shipping cost and policy URL.
659 &quot;status&quot;: &quot;A String&quot;, # The status of the ?On display to order? feature.
Dan O'Mearadd494642020-05-01 07:42:23 -0700660 #
661 # Acceptable values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 # - &quot;`active`&quot;
663 # - &quot;`inactive`&quot;
664 # - &quot;`pending`&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 &quot;posDataProvider&quot;: { # The POS data provider linked with this country.
667 &quot;posDataProviderId&quot;: &quot;A String&quot;, # The ID of the POS data provider.
668 &quot;posExternalAccountId&quot;: &quot;A String&quot;, # The account ID by which this merchant is known to the POS data provider.
669 },
670 &quot;storePickupActive&quot;: True or False, # The status of the &quot;Store pickup&quot; feature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700671 },
672 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 &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 -0700674 }</pre>
675</div>
676
677</body></html>