blob: 6a8c18c241033d57d70778e3597d4a7d46bd8747 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -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.accounts.html">accounts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070078 <code><a href="#authinfo">authinfo(x__xgafv=None)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000079<p class="firstline">Returns information about the authenticated user.</p>
80<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070081 <code><a href="#claimwebsite">claimwebsite(merchantId, accountId, overwrite=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Claims the website of a Merchant Center sub-account.</p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040083<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
86<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</a></code></p>
Craig Citro065b5302014-08-14 00:47:23 -070088<p class="firstline">Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.</p>
89<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080090 <code><a href="#delete">delete(merchantId, accountId, force=None, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Deletes a Merchant Center sub-account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070092<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#get">get(merchantId, accountId, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Retrieves a Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070095<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070096 <code><a href="#insert">insert(merchantId, body=None, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Creates a Merchant Center sub-account.</p>
98<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070099 <code><a href="#link">link(merchantId, accountId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700101<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800102 <code><a href="#list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Lists the sub-accounts in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700108 <code><a href="#update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109<p class="firstline">Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700110<h3>Method Details</h3>
111<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700112 <code class="details" id="authinfo">authinfo(x__xgafv=None)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000113 <pre>Returns information about the authenticated user.
114
115Args:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700116 x__xgafv: string, V1 error format.
117 Allowed values
118 1 - v1 error format
119 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000120
121Returns:
122 An object of the form:
123
124 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700125 &quot;accountIdentifiers&quot;: [ # The account identifiers corresponding to the authenticated user. - For an individual account: only the merchant ID is defined - For an aggregator: only the aggregator ID is defined - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000126 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800127 &quot;aggregatorId&quot;: &quot;A String&quot;, # The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800128 &quot;merchantId&quot;: &quot;A String&quot;, # The merchant account ID, set for individual accounts and subaccounts.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000129 },
130 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800131 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsAuthInfoResponse&quot;.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000132 }</pre>
133</div>
134
135<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700136 <code class="details" id="claimwebsite">claimwebsite(merchantId, accountId, overwrite=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137 <pre>Claims the website of a Merchant Center sub-account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400138
139Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700140 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)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400141 accountId: string, The ID of the account whose website is claimed. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700142 overwrite: boolean, Only available to selected merchants. When set to `True`, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700143 x__xgafv: string, V1 error format.
144 Allowed values
145 1 - v1 error format
146 2 - v2 error format
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400147
148Returns:
149 An object of the form:
150
151 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700152 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsClaimWebsiteResponse&quot;.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400153 }</pre>
154</div>
155
156<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 <code class="details" id="close">close()</code>
158 <pre>Close httplib2 connections.</pre>
159</div>
160
161<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700162 <code class="details" id="custombatch">custombatch(body=None, dryRun=None, x__xgafv=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -0700163 <pre>Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.
164
165Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700166 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700167 The object takes the form of:
168
169{
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;entries&quot;: [ # The request entries to be processed in the batch.
Craig Citroe633be12015-03-02 13:40:36 -0800171 { # A batch entry encoding a single non-batch accounts request.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800172 &quot;linkRequest&quot;: { # Details about the `link` request.
173 &quot;action&quot;: &quot;A String&quot;, # Action to perform for this link. The `&quot;request&quot;` action is only available to select merchants. Acceptable values are: - &quot;`approve`&quot; - &quot;`remove`&quot; - &quot;`request`&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800174 &quot;linkedAccountId&quot;: &quot;A String&quot;, # The ID of the linked account.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800175 &quot;linkType&quot;: &quot;A String&quot;, # Type of the link between the two accounts. Acceptable values are: - &quot;`channelPartner`&quot; - &quot;`eCommercePlatform`&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800176 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800177 &quot;force&quot;: True or False, # Whether the account should be deleted if the account has offers. Only applicable if the method is `delete`.
178 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the targeted account. Only defined if the method is not `insert`.
179 &quot;overwrite&quot;: True or False, # Only applicable if the method is `claimwebsite`. Indicates whether or not to take the claim from another account in case there is a conflict.
180 &quot;account&quot;: { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role. # The account to create or update. Only defined if the method is `insert` or `update`.
181 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
182 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
183 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
184 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
185 },
186 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
187 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
188 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
189 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
190 &quot;businessInformation&quot;: { # The business information of the account.
191 &quot;customerService&quot;: { # The customer service information of the business.
192 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
193 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
194 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
195 },
196 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
197 &quot;address&quot;: { # The address of the business.
198 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
199 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
200 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
201 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
202 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
203 },
204 },
205 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
206 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
207 {
208 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
209 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
210 },
211 ],
212 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
213 {
214 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
215 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
216 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
217 &quot;admin&quot;: True or False, # Whether user is an admin.
218 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
219 },
220 ],
221 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
222 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
223 {
224 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
225 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
226 },
227 ],
228 },
229 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
230 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800231 &quot;labelIds&quot;: [ # Label IDs for the &#x27;updatelabels&#x27; request.
232 &quot;A String&quot;,
233 ],
234 &quot;method&quot;: &quot;A String&quot;, # The method of the batch entry. Acceptable values are: - &quot;`claimWebsite`&quot; - &quot;`delete`&quot; - &quot;`get`&quot; - &quot;`insert`&quot; - &quot;`link`&quot; - &quot;`update`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700235 },
236 ],
237 }
238
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700244
245Returns:
246 An object of the form:
247
248 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Craig Citroe633be12015-03-02 13:40:36 -0800250 { # A batch entry encoding a single non-batch accounts response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800252 &quot;account&quot;: { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role. # The retrieved, created, or updated account. Not defined if the method was `delete`, `claimwebsite` or `link`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800253 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
254 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
255 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
256 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800258 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
259 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
260 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
261 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
262 &quot;businessInformation&quot;: { # The business information of the account.
263 &quot;customerService&quot;: { # The customer service information of the business.
264 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
265 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
266 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
267 },
268 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
269 &quot;address&quot;: { # The address of the business.
270 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
271 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
272 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
273 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
274 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
275 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800276 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800277 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
278 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
279 {
280 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
281 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
282 },
283 ],
284 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
285 {
286 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
287 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
288 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
289 &quot;admin&quot;: True or False, # Whether user is an admin.
290 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
291 },
292 ],
293 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
294 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
295 {
296 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
297 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
298 },
299 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800300 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800301 &quot;linkStatus&quot;: &quot;A String&quot;, # Deprecated. This field is never set. Acceptable values are: - &quot;`active`&quot; - &quot;`inactive`&quot; - &quot;`pending`&quot;
302 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountsCustomBatchResponseEntry`&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800303 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800304 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
305 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800306 &quot;errors&quot;: [ # A list of errors.
307 { # An error returned by the API.
308 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
309 &quot;reason&quot;: &quot;A String&quot;, # The error code.
310 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
311 },
312 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 },
Craig Citro065b5302014-08-14 00:47:23 -0700314 },
315 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800316 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsCustomBatchResponse&quot;.
Craig Citro065b5302014-08-14 00:47:23 -0700317 }</pre>
318</div>
319
320<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800321 <code class="details" id="delete">delete(merchantId, accountId, force=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 <pre>Deletes a Merchant Center sub-account.
Craig Citro065b5302014-08-14 00:47:23 -0700323
324Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 merchantId: string, The ID of the managing account. This must be a multi-client account, and accountId must be the ID of a sub-account of this account. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700326 accountId: string, The ID of the account. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800327 force: boolean, Flag to delete sub-accounts with products. The default value is false.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800328 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700333</pre>
334</div>
335
336<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700337 <code class="details" id="get">get(merchantId, accountId, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 <pre>Retrieves a Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700339
340Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700341 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)
Craig Citro065b5302014-08-14 00:47:23 -0700342 accountId: string, The ID of the account. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700343 x__xgafv: string, V1 error format.
344 Allowed values
345 1 - v1 error format
346 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700347
348Returns:
349 An object of the form:
350
Dan O'Mearadd494642020-05-01 07:42:23 -0700351 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800352 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
353 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
354 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
355 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800357 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
358 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
359 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
360 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
361 &quot;businessInformation&quot;: { # The business information of the account.
362 &quot;customerService&quot;: { # The customer service information of the business.
363 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
364 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
365 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
366 },
367 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
368 &quot;address&quot;: { # The address of the business.
369 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
370 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
371 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
372 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
373 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
374 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800375 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800376 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
377 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
378 {
379 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
380 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
381 },
382 ],
383 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
384 {
385 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
386 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
387 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
388 &quot;admin&quot;: True or False, # Whether user is an admin.
389 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
390 },
391 ],
392 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
393 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
394 {
395 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
396 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
397 },
398 ],
399 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700400</div>
401
402<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700403 <code class="details" id="insert">insert(merchantId, body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 <pre>Creates a Merchant Center sub-account.
Craig Citro065b5302014-08-14 00:47:23 -0700405
406Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700407 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700408 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700409 The object takes the form of:
410
Dan O'Mearadd494642020-05-01 07:42:23 -0700411{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800412 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
413 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
414 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
415 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700416 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800417 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
418 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
419 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
420 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
421 &quot;businessInformation&quot;: { # The business information of the account.
422 &quot;customerService&quot;: { # The customer service information of the business.
423 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
424 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
425 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
426 },
427 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
428 &quot;address&quot;: { # The address of the business.
429 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
430 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
431 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
432 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
433 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
434 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800435 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800436 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
437 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
438 {
439 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
440 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
441 },
442 ],
443 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
444 {
445 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
446 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
447 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
448 &quot;admin&quot;: True or False, # Whether user is an admin.
449 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
450 },
451 ],
452 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
453 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
454 {
455 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
456 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
457 },
458 ],
459 }
Craig Citro065b5302014-08-14 00:47:23 -0700460
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700462 x__xgafv: string, V1 error format.
463 Allowed values
464 1 - v1 error format
465 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700466
467Returns:
468 An object of the form:
469
Dan O'Mearadd494642020-05-01 07:42:23 -0700470 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800471 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
472 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
473 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
474 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800476 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
477 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
478 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
479 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
480 &quot;businessInformation&quot;: { # The business information of the account.
481 &quot;customerService&quot;: { # The customer service information of the business.
482 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
483 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
484 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
485 },
486 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
487 &quot;address&quot;: { # The address of the business.
488 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
489 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
490 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
491 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
492 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
493 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800494 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800495 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
496 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
497 {
498 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
499 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
500 },
501 ],
502 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
503 {
504 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
505 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
506 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
507 &quot;admin&quot;: True or False, # Whether user is an admin.
508 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
509 },
510 ],
511 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
512 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
513 {
514 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
515 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
516 },
517 ],
518 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700519</div>
520
521<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700522 <code class="details" id="link">link(merchantId, accountId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 <pre>Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
Craig Citro065b5302014-08-14 00:47:23 -0700524
525Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700526 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 -0700527 accountId: string, The ID of the account that should be linked. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700528 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700529 The object takes the form of:
530
531{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800532 &quot;linkType&quot;: &quot;A String&quot;, # Type of the link between the two accounts. Acceptable values are: - &quot;`channelPartner`&quot; - &quot;`eCommercePlatform`&quot;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800533 &quot;action&quot;: &quot;A String&quot;, # Action to perform for this link. The `&quot;request&quot;` action is only available to select merchants. Acceptable values are: - &quot;`approve`&quot; - &quot;`remove`&quot; - &quot;`request`&quot;
534 &quot;linkedAccountId&quot;: &quot;A String&quot;, # The ID of the linked account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700535 }
536
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700537 x__xgafv: string, V1 error format.
538 Allowed values
539 1 - v1 error format
540 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700541
542Returns:
543 An object of the form:
544
545 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700546 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsLinkResponse&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700547 }</pre>
548</div>
549
550<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800551 <code class="details" id="list">list(merchantId, maxResults=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 <pre>Lists the sub-accounts in your Merchant Center account.
553
554Args:
555 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700556 maxResults: integer, The maximum number of accounts to return in the response, used for paging.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800557 pageToken: string, The token returned by the previous request.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700558 x__xgafv: string, V1 error format.
559 Allowed values
560 1 - v1 error format
561 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700562
563Returns:
564 An object of the form:
565
566 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800567 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsListResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;resources&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700569 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800570 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
571 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
572 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
573 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700574 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800575 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
576 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
577 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
578 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
579 &quot;businessInformation&quot;: { # The business information of the account.
580 &quot;customerService&quot;: { # The customer service information of the business.
581 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
582 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
583 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
584 },
585 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
586 &quot;address&quot;: { # The address of the business.
587 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
588 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
589 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
590 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
591 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
592 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800593 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800594 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
595 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
596 {
597 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
598 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
599 },
600 ],
601 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
602 {
603 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
604 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
605 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
606 &quot;admin&quot;: True or False, # Whether user is an admin.
607 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
608 },
609 ],
610 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
611 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
612 {
613 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
614 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
615 },
616 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800617 },
Craig Citro065b5302014-08-14 00:47:23 -0700618 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800619 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700620 }</pre>
621</div>
622
623<div class="method">
624 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
625 <pre>Retrieves the next page of results.
626
627Args:
628 previous_request: The request for the previous page. (required)
629 previous_response: The response from the request for the previous page. (required)
630
631Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citro065b5302014-08-14 00:47:23 -0700633 page. Returns None if there are no more items in the collection.
634 </pre>
635</div>
636
637<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700638 <code class="details" id="update">update(merchantId, accountId, body=None, dryRun=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700639 <pre>Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700640
641Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700642 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)
Craig Citro065b5302014-08-14 00:47:23 -0700643 accountId: string, The ID of the account. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700644 body: object, The request body.
Craig Citro065b5302014-08-14 00:47:23 -0700645 The object takes the form of:
646
Dan O'Mearadd494642020-05-01 07:42:23 -0700647{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800648 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
649 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
650 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
651 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700652 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800653 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
654 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
655 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
656 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
657 &quot;businessInformation&quot;: { # The business information of the account.
658 &quot;customerService&quot;: { # The customer service information of the business.
659 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
660 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
661 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
662 },
663 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
664 &quot;address&quot;: { # The address of the business.
665 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
666 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
667 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
668 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
669 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
670 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800671 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800672 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
673 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
674 {
675 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
676 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
677 },
678 ],
679 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
680 {
681 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
682 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
683 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
684 &quot;admin&quot;: True or False, # Whether user is an admin.
685 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
686 },
687 ],
688 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
689 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
690 {
691 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
692 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
693 },
694 ],
695 }
Craig Citro065b5302014-08-14 00:47:23 -0700696
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700697 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).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700698 x__xgafv: string, V1 error format.
699 Allowed values
700 1 - v1 error format
701 2 - v2 error format
Craig Citro065b5302014-08-14 00:47:23 -0700702
703Returns:
704 An object of the form:
705
Dan O'Mearadd494642020-05-01 07:42:23 -0700706 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800707 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
708 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
709 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
710 &quot;gmbEmail&quot;: &quot;A String&quot;, # The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700711 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800712 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
713 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
714 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
715 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
716 &quot;businessInformation&quot;: { # The business information of the account.
717 &quot;customerService&quot;: { # The customer service information of the business.
718 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
719 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
720 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
721 },
722 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
723 &quot;address&quot;: { # The address of the business.
724 &quot;country&quot;: &quot;A String&quot;, # CLDR country code (e.g. &quot;US&quot;). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA.
725 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
726 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
727 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
728 &quot;region&quot;: &quot;A String&quot;, # Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
729 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800730 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800731 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
732 &quot;adwordsLinks&quot;: [ # List of linked AdWords accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the AdWords interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list.
733 {
734 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
735 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the AdWords account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google AdWords or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - &quot;`active`&quot; - &quot;`pending`&quot;
736 },
737 ],
738 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
739 {
740 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
741 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
742 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
743 &quot;admin&quot;: True or False, # Whether user is an admin.
744 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
745 },
746 ],
747 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
748 &quot;youtubeChannelLinks&quot;: [ # List of linked YouTube channels that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel a link request, remove it from the list.
749 {
750 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
751 &quot;status&quot;: &quot;A String&quot;, # Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it&#x27;s pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it&#x27;s still pending or with status `pending` when it&#x27;s already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.
752 },
753 ],
754 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700755</div>
756
757</body></html>