blob: 0e137829b9dbe462a019bcc4deeb04182228b1fe [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 Bot0bf565c2020-12-09 08:56:03 -080090 <code><a href="#delete">delete(merchantId, accountId, dryRun=None, force=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 Bot0bf565c2020-12-09 08:56:03 -0800102 <code><a href="#list">list(merchantId, pageToken=None, maxResults=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 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800125 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsAuthInfoResponse&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700126 &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 +0000127 {
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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800129 &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).
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000130 },
131 ],
132 }</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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800173 &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 Bot0bf565c2020-12-09 08:56:03 -0800174 &quot;linkedAccountId&quot;: &quot;A String&quot;, # The ID of the linked account.
175 &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 -0800176 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800178 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800179 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
180 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800181 &quot;labelIds&quot;: [ # Label IDs for the &#x27;updatelabels&#x27; request.
182 &quot;A String&quot;,
183 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800184 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the targeted account. Only defined if the method is not `insert`.
185 &quot;force&quot;: True or False, # Whether the account should be deleted if the account has offers. Only applicable if the method is `delete`.
186 &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`.
187 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
188 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
189 {
190 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
191 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
192 &quot;admin&quot;: True or False, # Whether user is an admin.
193 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
194 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
195 },
196 ],
197 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
198 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
199 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
200 &quot;businessInformation&quot;: { # The business information of the account.
201 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
202 &quot;customerService&quot;: { # The customer service information of the business.
203 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
204 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
205 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
206 },
207 &quot;address&quot;: { # The address of the business.
208 &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.
209 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
210 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
211 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
212 &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;).
213 },
214 },
215 &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.
216 {
217 &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.
218 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
219 },
220 ],
221 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
222 &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.
223 &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;
224 },
225 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
226 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
227 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
228 &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.
229 {
230 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
231 &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;
232 },
233 ],
234 },
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 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800249 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsCustomBatchResponse&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;entries&quot;: [ # The result of the execution of the batch requests.
Craig Citroe633be12015-03-02 13:40:36 -0800251 { # A batch entry encoding a single non-batch accounts response.
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 Bot0bf565c2020-12-09 08:56:03 -0800253 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
254 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
255 {
256 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
257 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
258 &quot;admin&quot;: True or False, # Whether user is an admin.
259 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
260 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800262 ],
263 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
264 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
265 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
266 &quot;businessInformation&quot;: { # The business information of the account.
267 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
268 &quot;customerService&quot;: { # The customer service information of the business.
269 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
270 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
271 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800272 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800273 &quot;address&quot;: { # The address of the business.
274 &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.
275 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
276 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
277 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
278 &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;).
279 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800280 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800281 &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.
282 {
283 &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.
284 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
285 },
286 ],
287 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
288 &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.
289 &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;
290 },
291 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
292 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
293 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
294 &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.
295 {
296 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
297 &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;
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800298 },
299 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800301 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
302 &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.
303 &quot;errors&quot;: [ # A list of errors.
304 { # An error returned by the API.
305 &quot;reason&quot;: &quot;A String&quot;, # The error code.
306 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
307 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
308 },
309 ],
310 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
311 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
312 },
313 &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;
314 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountsCustomBatchResponseEntry`&quot;
Craig Citro065b5302014-08-14 00:47:23 -0700315 },
316 ],
317 }</pre>
318</div>
319
320<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800321 <code class="details" id="delete">delete(merchantId, accountId, dryRun=None, force=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 Botb6971b02020-11-26 17:16:03 -0800327 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800328 force: boolean, Flag to delete sub-accounts with products. The default value is false.
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 Bot0bf565c2020-12-09 08:56:03 -0800352 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
353 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
354 {
355 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
356 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
357 &quot;admin&quot;: True or False, # Whether user is an admin.
358 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
359 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800361 ],
362 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
363 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
364 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
365 &quot;businessInformation&quot;: { # The business information of the account.
366 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
367 &quot;customerService&quot;: { # The customer service information of the business.
368 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
369 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
370 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800371 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800372 &quot;address&quot;: { # The address of the business.
373 &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.
374 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
375 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
376 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
377 &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;).
378 },
379 },
380 &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.
381 {
382 &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.
383 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
384 },
385 ],
386 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
387 &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.
388 &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;
389 },
390 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
391 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
392 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
393 &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.
394 {
395 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
396 &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;
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 Bot0bf565c2020-12-09 08:56:03 -0800412 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
413 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
414 {
415 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
416 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
417 &quot;admin&quot;: True or False, # Whether user is an admin.
418 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
419 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800421 ],
422 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
423 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
424 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
425 &quot;businessInformation&quot;: { # The business information of the account.
426 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
427 &quot;customerService&quot;: { # The customer service information of the business.
428 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
429 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
430 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800431 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800432 &quot;address&quot;: { # The address of the business.
433 &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.
434 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
435 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
436 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
437 &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;).
438 },
439 },
440 &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.
441 {
442 &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.
443 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
444 },
445 ],
446 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
447 &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.
448 &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;
449 },
450 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
451 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
452 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
453 &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.
454 {
455 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
456 &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;
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 Bot0bf565c2020-12-09 08:56:03 -0800471 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
472 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
473 {
474 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
475 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
476 &quot;admin&quot;: True or False, # Whether user is an admin.
477 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
478 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800480 ],
481 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
482 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
483 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
484 &quot;businessInformation&quot;: { # The business information of the account.
485 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
486 &quot;customerService&quot;: { # The customer service information of the business.
487 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
488 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
489 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800490 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800491 &quot;address&quot;: { # The address of the business.
492 &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.
493 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
494 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
495 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
496 &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;).
497 },
498 },
499 &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.
500 {
501 &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.
502 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
503 },
504 ],
505 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
506 &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.
507 &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;
508 },
509 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
510 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
511 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
512 &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.
513 {
514 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
515 &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;
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;linkedAccountId&quot;: &quot;A String&quot;, # The ID of the linked account.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800534 &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;
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 Bot0bf565c2020-12-09 08:56:03 -0800551 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=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)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800556 pageToken: string, The token returned by the previous request.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800557 maxResults: integer, The maximum number of accounts to return in the response, used for paging.
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;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800568 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of accounts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 &quot;resources&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700570 { # 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 Bot0bf565c2020-12-09 08:56:03 -0800571 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
572 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
573 {
574 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
575 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
576 &quot;admin&quot;: True or False, # Whether user is an admin.
577 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
578 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700579 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800580 ],
581 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
582 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
583 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
584 &quot;businessInformation&quot;: { # The business information of the account.
585 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
586 &quot;customerService&quot;: { # The customer service information of the business.
587 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
588 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
589 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800590 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800591 &quot;address&quot;: { # The address of the business.
592 &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.
593 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
594 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
595 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
596 &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;).
597 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800598 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800599 &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.
600 {
601 &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.
602 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
603 },
604 ],
605 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
606 &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.
607 &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;
608 },
609 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
610 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
611 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
612 &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.
613 {
614 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
615 &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;
616 },
617 ],
618 },
Craig Citro065b5302014-08-14 00:47:23 -0700619 ],
620 }</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 Bot0bf565c2020-12-09 08:56:03 -0800648 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
649 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
650 {
651 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
652 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
653 &quot;admin&quot;: True or False, # Whether user is an admin.
654 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
655 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800657 ],
658 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
659 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
660 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
661 &quot;businessInformation&quot;: { # The business information of the account.
662 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
663 &quot;customerService&quot;: { # The customer service information of the business.
664 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
665 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
666 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800667 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800668 &quot;address&quot;: { # The address of the business.
669 &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.
670 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
671 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
672 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
673 &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;).
674 },
675 },
676 &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.
677 {
678 &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.
679 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
680 },
681 ],
682 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
683 &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.
684 &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;
685 },
686 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
687 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
688 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
689 &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.
690 {
691 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
692 &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;
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 Bot0bf565c2020-12-09 08:56:03 -0800707 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
708 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
709 {
710 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
711 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
712 &quot;admin&quot;: True or False, # Whether user is an admin.
713 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
714 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800716 ],
717 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
718 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
719 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
720 &quot;businessInformation&quot;: { # The business information of the account.
721 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
722 &quot;customerService&quot;: { # The customer service information of the business.
723 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
724 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
725 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800726 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800727 &quot;address&quot;: { # The address of the business.
728 &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.
729 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
730 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
731 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
732 &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;).
733 },
734 },
735 &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.
736 {
737 &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.
738 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
739 },
740 ],
741 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
742 &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.
743 &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;
744 },
745 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
746 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
747 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
748 &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.
749 {
750 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
751 &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;
752 },
753 ],
754 }</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700755</div>
756
757</body></html>