blob: ee55e971da0ca03896d2fa9a49f7e4a98abad94f [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 Botcc94ec82021-01-15 07:10:04 -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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800125 &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.
126 {
127 &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).
128 &quot;merchantId&quot;: &quot;A String&quot;, # The merchant account ID, set for individual accounts and subaccounts.
129 },
130 ],
131 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsAuthInfoResponse&quot;.
132}</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000133</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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsClaimWebsiteResponse&quot;.
153}</pre>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400154</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{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800170 &quot;entries&quot;: [ # The request entries to be processed in the batch.
171 { # A batch entry encoding a single non-batch accounts request.
172 &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`.
173 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
174 &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.
175 {
176 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
177 &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;
178 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800179 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &quot;businessInformation&quot;: { # The business information of the account.
181 &quot;address&quot;: { # The address of the business.
182 &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.
183 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
184 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
185 &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;).
186 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800187 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800188 &quot;customerService&quot;: { # The customer service information of the business.
189 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
190 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
191 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800192 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800193 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800194 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800195 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
196 &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.
197 &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;
198 },
199 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
200 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
201 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
202 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
203 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
204 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
205 {
206 &quot;admin&quot;: True or False, # Whether user is an admin.
207 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
208 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
209 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
210 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
211 },
212 ],
213 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
214 &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.
215 {
216 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
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 },
219 ],
Craig Citro065b5302014-08-14 00:47:23 -0700220 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &quot;accountId&quot;: &quot;A String&quot;, # The ID of the targeted account. Only defined if the method is not `insert`.
222 &quot;batchId&quot;: 42, # An entry ID, unique within the batch request.
223 &quot;force&quot;: True or False, # Whether the account should be deleted if the account has offers. Only applicable if the method is `delete`.
224 &quot;labelIds&quot;: [ # Label IDs for the &#x27;updatelabels&#x27; request.
225 &quot;A String&quot;,
226 ],
227 &quot;linkRequest&quot;: { # Details about the `link` request.
228 &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;
229 &quot;linkType&quot;: &quot;A String&quot;, # Type of the link between the two accounts. Acceptable values are: - &quot;`channelPartner`&quot; - &quot;`eCommercePlatform`&quot;
230 &quot;linkedAccountId&quot;: &quot;A String&quot;, # The ID of the linked account.
231 },
232 &quot;merchantId&quot;: &quot;A String&quot;, # The ID of the managing account.
233 &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;
234 &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.
235 },
236 ],
237}
Craig Citro065b5302014-08-14 00:47:23 -0700238
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 Botcc94ec82021-01-15 07:10:04 -0800249 &quot;entries&quot;: [ # The result of the execution of the batch requests.
250 { # A batch entry encoding a single non-batch accounts response.
251 &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`.
252 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
253 &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.
254 {
255 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
256 &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 Botc2228be2020-11-24 15:48:03 -0800257 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800258 ],
259 &quot;businessInformation&quot;: { # The business information of the account.
260 &quot;address&quot;: { # The address of the business.
261 &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.
262 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
263 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
264 &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;).
265 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800266 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800267 &quot;customerService&quot;: { # The customer service information of the business.
268 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
269 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
270 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
271 },
272 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800274 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
275 &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.
276 &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;
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800277 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800278 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
279 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
280 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
281 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
282 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
283 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
284 {
285 &quot;admin&quot;: True or False, # Whether user is an admin.
286 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
287 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
288 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
289 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
290 },
291 ],
292 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
293 &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.
294 {
295 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
296 &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.
297 },
298 ],
Craig Citro065b5302014-08-14 00:47:23 -0700299 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800300 &quot;batchId&quot;: 42, # The ID of the request entry this entry responds to.
301 &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.
302 &quot;code&quot;: 42, # The HTTP status of the first error in `errors`.
303 &quot;errors&quot;: [ # A list of errors.
304 { # An error returned by the API.
305 &quot;domain&quot;: &quot;A String&quot;, # The domain of the error.
306 &quot;message&quot;: &quot;A String&quot;, # A description of the error.
307 &quot;reason&quot;: &quot;A String&quot;, # The error code.
308 },
309 ],
310 &quot;message&quot;: &quot;A String&quot;, # The message of the first error in `errors`.
311 },
312 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#accountsCustomBatchResponseEntry`&quot;
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 },
315 ],
316 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsCustomBatchResponse&quot;.
317}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700318</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 Botcc94ec82021-01-15 07:10:04 -0800352 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
353 &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.
354 {
355 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
356 &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 Bot0bf565c2020-12-09 08:56:03 -0800357 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800358 ],
359 &quot;businessInformation&quot;: { # The business information of the account.
360 &quot;address&quot;: { # The address of the business.
361 &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.
362 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
363 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
364 &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;).
365 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800366 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800367 &quot;customerService&quot;: { # The customer service information of the business.
368 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
369 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
370 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
371 },
372 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
373 },
374 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
375 &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.
376 &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;
377 },
378 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
379 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
380 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
381 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
382 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
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;admin&quot;: True or False, # Whether user is an admin.
386 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
387 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
388 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
389 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
390 },
391 ],
392 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
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 Bot0bf565c2020-12-09 08:56:03 -0800412 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
413 &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.
414 {
415 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
416 &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;
417 },
418 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800419 &quot;businessInformation&quot;: { # The business information of the account.
420 &quot;address&quot;: { # The address of the business.
421 &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.
422 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
423 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
424 &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;).
425 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
426 },
427 &quot;customerService&quot;: { # The customer service information of the business.
428 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
429 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
430 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
431 },
432 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
433 },
434 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
435 &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.
436 &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;
437 },
438 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
439 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
440 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
441 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
442 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
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;admin&quot;: True or False, # Whether user is an admin.
446 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
447 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
448 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
449 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
450 },
451 ],
452 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
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 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800459}
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 Botcc94ec82021-01-15 07:10:04 -0800471 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
472 &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.
473 {
474 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
475 &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 Bot0bf565c2020-12-09 08:56:03 -0800476 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800477 ],
478 &quot;businessInformation&quot;: { # The business information of the account.
479 &quot;address&quot;: { # The address of the business.
480 &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.
481 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
482 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
483 &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;).
484 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800485 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800486 &quot;customerService&quot;: { # The customer service information of the business.
487 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
488 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
489 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
490 },
491 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
492 },
493 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
494 &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.
495 &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;
496 },
497 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
498 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
499 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
500 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
501 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
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;admin&quot;: True or False, # Whether user is an admin.
505 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
506 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
507 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
508 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
509 },
510 ],
511 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
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 Botcc94ec82021-01-15 07:10:04 -0800532 &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;
533 &quot;linkType&quot;: &quot;A String&quot;, # Type of the link between the two accounts. Acceptable values are: - &quot;`channelPartner`&quot; - &quot;`eCommercePlatform`&quot;
534 &quot;linkedAccountId&quot;: &quot;A String&quot;, # The ID of the linked account.
535}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700536
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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800546 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsLinkResponse&quot;.
547}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700548</div>
549
550<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -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)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800556 maxResults: integer, The maximum number of accounts to return in the response, used for paging.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -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 Botcc94ec82021-01-15 07:10:04 -0800567 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;content#accountsListResponse&quot;.
568 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the retrieval of the next page of accounts.
569 &quot;resources&quot;: [
570 { # 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.
571 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
572 &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.
573 {
574 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
575 &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 Botc2228be2020-11-24 15:48:03 -0800576 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800577 ],
578 &quot;businessInformation&quot;: { # The business information of the account.
579 &quot;address&quot;: { # The address of the business.
580 &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.
581 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
582 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
583 &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;).
584 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800585 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800586 &quot;customerService&quot;: { # The customer service information of the business.
587 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
588 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
589 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
590 },
591 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800592 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800593 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
594 &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.
595 &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;
596 },
597 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
598 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
599 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
600 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
601 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
602 &quot;users&quot;: [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
603 {
604 &quot;admin&quot;: True or False, # Whether user is an admin.
605 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
606 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
607 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
608 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
609 },
610 ],
611 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
612 &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.
613 {
614 &quot;channelId&quot;: &quot;A String&quot;, # Channel ID.
615 &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.
616 },
617 ],
618 },
619 ],
620}</pre>
Craig Citro065b5302014-08-14 00:47:23 -0700621</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;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
649 &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.
650 {
651 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
652 &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;
653 },
654 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800655 &quot;businessInformation&quot;: { # The business information of the account.
656 &quot;address&quot;: { # The address of the business.
657 &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.
658 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
659 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
660 &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;).
661 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
662 },
663 &quot;customerService&quot;: { # The customer service information of the business.
664 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
665 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
666 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
667 },
668 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
669 },
670 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
671 &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.
672 &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;
673 },
674 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
675 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
676 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
677 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
678 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
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;admin&quot;: True or False, # Whether user is an admin.
682 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
683 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
684 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
685 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
686 },
687 ],
688 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
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 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800695}
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 Botcc94ec82021-01-15 07:10:04 -0800707 &quot;adultContent&quot;: True or False, # Indicates whether the merchant sells adult content.
708 &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.
709 {
710 &quot;adwordsId&quot;: &quot;A String&quot;, # Customer ID of the AdWords account.
711 &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 Bot0bf565c2020-12-09 08:56:03 -0800712 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800713 ],
714 &quot;businessInformation&quot;: { # The business information of the account.
715 &quot;address&quot;: { # The address of the business.
716 &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.
717 &quot;locality&quot;: &quot;A String&quot;, # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
718 &quot;postalCode&quot;: &quot;A String&quot;, # Postal code or ZIP (e.g. &quot;94043&quot;).
719 &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;).
720 &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800721 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800722 &quot;customerService&quot;: { # The customer service information of the business.
723 &quot;email&quot;: &quot;A String&quot;, # Customer service email.
724 &quot;phoneNumber&quot;: &quot;A String&quot;, # Customer service phone number.
725 &quot;url&quot;: &quot;A String&quot;, # Customer service URL.
726 },
727 &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number of the business.
728 },
729 &quot;googleMyBusinessLink&quot;: { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
730 &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.
731 &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;
732 },
733 &quot;id&quot;: &quot;A String&quot;, # Required for update. Merchant Center account ID.
734 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;`content#account`&quot;
735 &quot;name&quot;: &quot;A String&quot;, # Required. Display name for the account.
736 &quot;reviewsUrl&quot;: &quot;A String&quot;, # [DEPRECATED] This field is never returned and will be ignored if provided.
737 &quot;sellerId&quot;: &quot;A String&quot;, # Client-specific, locally-unique, internal ID for the child account.
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;admin&quot;: True or False, # Whether user is an admin.
741 &quot;emailAddress&quot;: &quot;A String&quot;, # User&#x27;s email address.
742 &quot;orderManager&quot;: True or False, # Whether user is an order manager.
743 &quot;paymentsAnalyst&quot;: True or False, # Whether user can access payment statements.
744 &quot;paymentsManager&quot;: True or False, # Whether user can manage payment settings.
745 },
746 ],
747 &quot;websiteUrl&quot;: &quot;A String&quot;, # The merchant&#x27;s website.
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>