blob: 83b5605f6b68f87689f5020861dd86515bd3c45c [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">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000078 <code><a href="#authinfo">authinfo()</a></code></p>
79<p class="firstline">Returns information about the authenticated user.</p>
80<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040081 <code><a href="#claimwebsite">claimwebsite(merchantId, accountId, overwrite=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">
Takashi Matsuo06694102015-09-11 13:55:40 -070084 <code><a href="#custombatch">custombatch(body, dryRun=None)</a></code></p>
Craig Citro065b5302014-08-14 00:47:23 -070085<p class="firstline">Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#delete">delete(merchantId, accountId, force=None, dryRun=None)</a></code></p>
88<p class="firstline">Deletes a Merchant Center sub-account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
90 <code><a href="#get">get(merchantId, accountId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Retrieves a Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -070092<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -070093 <code><a href="#insert">insert(merchantId, body, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Creates a Merchant Center sub-account.</p>
95<p class="toc_element">
96 <code><a href="#link">link(merchantId, accountId, body)</a></code></p>
97<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 -070098<p class="toc_element">
99 <code><a href="#list">list(merchantId, pageToken=None, maxResults=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Lists the sub-accounts in your Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -0700105 <code><a href="#patch">patch(merchantId, accountId, body, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates a Merchant Center account. This method supports patch semantics.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700107<p class="toc_element">
Takashi Matsuo06694102015-09-11 13:55:40 -0700108 <code><a href="#update">update(merchantId, accountId, body, dryRun=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Updates a Merchant Center account.</p>
Craig Citro065b5302014-08-14 00:47:23 -0700110<h3>Method Details</h3>
111<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000112 <code class="details" id="authinfo">authinfo()</code>
113 <pre>Returns information about the authenticated user.
114
115Args:
116
117Returns:
118 An object of the form:
119
120 {
121 "kind": "content#accountsAuthInfoResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountsAuthInfoResponse".
122 "accountIdentifiers": [ # The account identifiers corresponding to the authenticated user.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000123 # - For an individual account: only the merchant ID is defined
124 # - For an aggregator: only the aggregator ID is defined
125 # - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined.
126 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000127 "aggregatorId": "A String", # The aggregator ID, set for aggregators and subaccounts (in that case, it represents the aggregator of the subaccount).
128 "merchantId": "A String", # The merchant account ID, set for individual accounts and subaccounts.
129 },
130 ],
131 }</pre>
132</div>
133
134<div class="method">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400135 <code class="details" id="claimwebsite">claimwebsite(merchantId, accountId, overwrite=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 <pre>Claims the website of a Merchant Center sub-account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400137
138Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 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 -0400140 accountId: string, The ID of the account whose website is claimed. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 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.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400142
143Returns:
144 An object of the form:
145
146 {
147 "kind": "content#accountsClaimWebsiteResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountsClaimWebsiteResponse".
148 }</pre>
149</div>
150
151<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700152 <code class="details" id="custombatch">custombatch(body, dryRun=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -0700153 <pre>Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.
154
155Args:
156 body: object, The request body. (required)
157 The object takes the form of:
158
159{
Craig Citroe633be12015-03-02 13:40:36 -0800160 "entries": [ # The request entries to be processed in the batch.
161 { # A batch entry encoding a single non-batch accounts request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162 "linkRequest": { # Details about the link request.
163 "action": "A String", # Action to perform for this link. The "request" action is only available to select merchants.
164 "linkType": "A String", # Type of the link between the two accounts.
165 "linkedAccountId": "A String", # The ID of the linked account.
166 },
167 "account": { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role. # The account to create or update. Only defined if the method is insert or update.
168 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700169 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
170 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700171 "youtubeChannelLinks": [ # 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.
172 {
173 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
174 "channelId": "A String", # Channel ID.
175 },
176 ],
Craig Citro065b5302014-08-14 00:47:23 -0700177 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400178 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700179 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000180 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700181 "adwordsId": "A String", # Customer ID of the AdWords account.
182 },
183 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 "websiteUrl": "A String", # The merchant's website.
185 "businessInformation": { # The business information of the account.
186 "phoneNumber": "A String", # The phone number of the business.
187 "customerService": { # The customer service information of the business.
188 "url": "A String", # Customer service URL.
189 "phoneNumber": "A String", # Customer service phone number.
190 "email": "A String", # Customer service email.
191 },
192 "address": { # The address of the business.
193 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
194 "country": "A String", # CLDR country code (e.g. "US").
195 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
196 "streetAddress": "A String", # Street-level part of the address.
197 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
198 },
199 },
200 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
201 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
202 "gmbEmail": "A String", # 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.
203 },
204 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
205 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700206 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
207 {
208 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 "orderManager": True or False, # Whether user is an order manager.
210 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700211 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700213 },
214 ],
215 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 "force": True or False, # Whether the account should be deleted if the account has offers. Only applicable if the method is delete.
217 "method": "A String", # The method of the batch entry.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400218 "batchId": 42, # An entry ID, unique within the batch request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 "merchantId": "A String", # The ID of the managing account.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400220 "overwrite": 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 "accountId": "A String", # The ID of the targeted account. Only defined if the method is not insert.
Craig Citro065b5302014-08-14 00:47:23 -0700222 },
223 ],
224 }
225
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 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).
Craig Citro065b5302014-08-14 00:47:23 -0700227
228Returns:
229 An object of the form:
230
231 {
232 "kind": "content#accountsCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountsCustomBatchResponse".
Craig Citroe633be12015-03-02 13:40:36 -0800233 "entries": [ # The result of the execution of the batch requests.
234 { # A batch entry encoding a single non-batch accounts response.
Craig Citro065b5302014-08-14 00:47:23 -0700235 "batchId": 42, # The ID of the request entry this entry responds to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 "account": { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role. # The retrieved, created, or updated account. Not defined if the method was delete, claimwebsite or link.
237 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700238 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
239 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700240 "youtubeChannelLinks": [ # 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.
241 {
242 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
243 "channelId": "A String", # Channel ID.
244 },
245 ],
Craig Citro065b5302014-08-14 00:47:23 -0700246 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400247 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700248 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000249 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700250 "adwordsId": "A String", # Customer ID of the AdWords account.
251 },
252 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 "websiteUrl": "A String", # The merchant's website.
254 "businessInformation": { # The business information of the account.
255 "phoneNumber": "A String", # The phone number of the business.
256 "customerService": { # The customer service information of the business.
257 "url": "A String", # Customer service URL.
258 "phoneNumber": "A String", # Customer service phone number.
259 "email": "A String", # Customer service email.
260 },
261 "address": { # The address of the business.
262 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
263 "country": "A String", # CLDR country code (e.g. "US").
264 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
265 "streetAddress": "A String", # Street-level part of the address.
266 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
267 },
268 },
269 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
270 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
271 "gmbEmail": "A String", # 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.
272 },
273 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
274 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700275 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
276 {
277 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278 "orderManager": True or False, # Whether user is an order manager.
279 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700280 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700281 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700282 },
283 ],
284 },
285 "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
286 "message": "A String", # The message of the first error in errors.
287 "code": 42, # The HTTP status of the first error in errors.
288 "errors": [ # A list of errors.
289 { # An error returned by the API.
290 "reason": "A String", # The error code.
291 "domain": "A String", # The domain of the error.
292 "message": "A String", # A description of the error.
293 },
294 ],
295 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 "linkStatus": "A String", # Deprecated. This field is never set.
Craig Citro065b5302014-08-14 00:47:23 -0700297 "kind": "content#accountsCustomBatchResponseEntry", # Identifies what kind of resource this is. Value: the fixed string "content#accountsCustomBatchResponseEntry".
298 },
299 ],
300 }</pre>
301</div>
302
303<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 <code class="details" id="delete">delete(merchantId, accountId, force=None, dryRun=None)</code>
305 <pre>Deletes a Merchant Center sub-account.
Craig Citro065b5302014-08-14 00:47:23 -0700306
307Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308 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 -0700309 accountId: string, The ID of the account. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700310 force: boolean, Flag to delete sub-accounts with products. The default value is false.
311 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).
Craig Citro065b5302014-08-14 00:47:23 -0700312</pre>
313</div>
314
315<div class="method">
316 <code class="details" id="get">get(merchantId, accountId)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700317 <pre>Retrieves a Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700318
319Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 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 -0700321 accountId: string, The ID of the account. (required)
322
323Returns:
324 An object of the form:
325
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
327 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700328 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
329 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700330 "youtubeChannelLinks": [ # 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.
331 {
332 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
333 "channelId": "A String", # Channel ID.
334 },
335 ],
Craig Citro065b5302014-08-14 00:47:23 -0700336 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400337 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700338 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000339 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700340 "adwordsId": "A String", # Customer ID of the AdWords account.
341 },
342 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 "websiteUrl": "A String", # The merchant's website.
344 "businessInformation": { # The business information of the account.
345 "phoneNumber": "A String", # The phone number of the business.
346 "customerService": { # The customer service information of the business.
347 "url": "A String", # Customer service URL.
348 "phoneNumber": "A String", # Customer service phone number.
349 "email": "A String", # Customer service email.
350 },
351 "address": { # The address of the business.
352 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
353 "country": "A String", # CLDR country code (e.g. "US").
354 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
355 "streetAddress": "A String", # Street-level part of the address.
356 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
357 },
358 },
359 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
360 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
361 "gmbEmail": "A String", # 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.
362 },
363 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
364 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700365 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
366 {
367 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700368 "orderManager": True or False, # Whether user is an order manager.
369 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700370 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700372 },
373 ],
374 }</pre>
375</div>
376
377<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700378 <code class="details" id="insert">insert(merchantId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700379 <pre>Creates a Merchant Center sub-account.
Craig Citro065b5302014-08-14 00:47:23 -0700380
381Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700383 body: object, The request body. (required)
384 The object takes the form of:
385
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
387 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700388 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
389 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 "youtubeChannelLinks": [ # 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.
391 {
392 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
393 "channelId": "A String", # Channel ID.
394 },
395 ],
Craig Citro065b5302014-08-14 00:47:23 -0700396 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400397 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700398 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000399 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700400 "adwordsId": "A String", # Customer ID of the AdWords account.
401 },
402 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700403 "websiteUrl": "A String", # The merchant's website.
404 "businessInformation": { # The business information of the account.
405 "phoneNumber": "A String", # The phone number of the business.
406 "customerService": { # The customer service information of the business.
407 "url": "A String", # Customer service URL.
408 "phoneNumber": "A String", # Customer service phone number.
409 "email": "A String", # Customer service email.
410 },
411 "address": { # The address of the business.
412 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
413 "country": "A String", # CLDR country code (e.g. "US").
414 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
415 "streetAddress": "A String", # Street-level part of the address.
416 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
417 },
418 },
419 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
420 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
421 "gmbEmail": "A String", # 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.
422 },
423 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
424 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700425 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
426 {
427 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700428 "orderManager": True or False, # Whether user is an order manager.
429 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700430 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700431 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700432 },
433 ],
434 }
435
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 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).
Craig Citro065b5302014-08-14 00:47:23 -0700437
438Returns:
439 An object of the form:
440
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700441 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
442 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700443 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
444 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 "youtubeChannelLinks": [ # 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.
446 {
447 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
448 "channelId": "A String", # Channel ID.
449 },
450 ],
Craig Citro065b5302014-08-14 00:47:23 -0700451 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400452 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700453 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000454 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700455 "adwordsId": "A String", # Customer ID of the AdWords account.
456 },
457 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 "websiteUrl": "A String", # The merchant's website.
459 "businessInformation": { # The business information of the account.
460 "phoneNumber": "A String", # The phone number of the business.
461 "customerService": { # The customer service information of the business.
462 "url": "A String", # Customer service URL.
463 "phoneNumber": "A String", # Customer service phone number.
464 "email": "A String", # Customer service email.
465 },
466 "address": { # The address of the business.
467 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
468 "country": "A String", # CLDR country code (e.g. "US").
469 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
470 "streetAddress": "A String", # Street-level part of the address.
471 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
472 },
473 },
474 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
475 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
476 "gmbEmail": "A String", # 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.
477 },
478 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
479 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700480 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
481 {
482 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483 "orderManager": True or False, # Whether user is an order manager.
484 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700485 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700486 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700487 },
488 ],
489 }</pre>
490</div>
491
492<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 <code class="details" id="link">link(merchantId, accountId, body)</code>
494 <pre>Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
Craig Citro065b5302014-08-14 00:47:23 -0700495
496Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 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)
498 accountId: string, The ID of the account that should be linked. (required)
499 body: object, The request body. (required)
500 The object takes the form of:
501
502{
503 "action": "A String", # Action to perform for this link. The "request" action is only available to select merchants.
504 "linkType": "A String", # Type of the link between the two accounts.
505 "linkedAccountId": "A String", # The ID of the linked account.
506 }
507
508
509Returns:
510 An object of the form:
511
512 {
513 "kind": "content#accountsLinkResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountsLinkResponse".
514 }</pre>
515</div>
516
517<div class="method">
518 <code class="details" id="list">list(merchantId, pageToken=None, maxResults=None)</code>
519 <pre>Lists the sub-accounts in your Merchant Center account.
520
521Args:
522 merchantId: string, The ID of the managing account. This must be a multi-client account. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700523 pageToken: string, The token returned by the previous request.
524 maxResults: integer, The maximum number of accounts to return in the response, used for paging.
525
526Returns:
527 An object of the form:
528
529 {
Craig Citroe633be12015-03-02 13:40:36 -0800530 "nextPageToken": "A String", # The token for the retrieval of the next page of accounts.
Craig Citro065b5302014-08-14 00:47:23 -0700531 "kind": "content#accountsListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#accountsListResponse".
532 "resources": [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700533 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
534 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700535 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
536 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700537 "youtubeChannelLinks": [ # 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.
538 {
539 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
540 "channelId": "A String", # Channel ID.
541 },
542 ],
Craig Citro065b5302014-08-14 00:47:23 -0700543 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400544 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700545 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000546 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700547 "adwordsId": "A String", # Customer ID of the AdWords account.
548 },
549 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 "websiteUrl": "A String", # The merchant's website.
551 "businessInformation": { # The business information of the account.
552 "phoneNumber": "A String", # The phone number of the business.
553 "customerService": { # The customer service information of the business.
554 "url": "A String", # Customer service URL.
555 "phoneNumber": "A String", # Customer service phone number.
556 "email": "A String", # Customer service email.
557 },
558 "address": { # The address of the business.
559 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
560 "country": "A String", # CLDR country code (e.g. "US").
561 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
562 "streetAddress": "A String", # Street-level part of the address.
563 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
564 },
565 },
566 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
567 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
568 "gmbEmail": "A String", # 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.
569 },
570 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
571 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700572 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
573 {
574 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 "orderManager": True or False, # Whether user is an order manager.
576 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700577 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700579 },
580 ],
581 },
582 ],
583 }</pre>
584</div>
585
586<div class="method">
587 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
588 <pre>Retrieves the next page of results.
589
590Args:
591 previous_request: The request for the previous page. (required)
592 previous_response: The response from the request for the previous page. (required)
593
594Returns:
595 A request object that you can call 'execute()' on to request the next
596 page. Returns None if there are no more items in the collection.
597 </pre>
598</div>
599
600<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700601 <code class="details" id="patch">patch(merchantId, accountId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 <pre>Updates a Merchant Center account. This method supports patch semantics.
Craig Citro065b5302014-08-14 00:47:23 -0700603
604Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700605 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 -0700606 accountId: string, The ID of the account. (required)
607 body: object, The request body. (required)
608 The object takes the form of:
609
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700610{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
611 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700612 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
613 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 "youtubeChannelLinks": [ # 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.
615 {
616 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
617 "channelId": "A String", # Channel ID.
618 },
619 ],
Craig Citro065b5302014-08-14 00:47:23 -0700620 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400621 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700622 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000623 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700624 "adwordsId": "A String", # Customer ID of the AdWords account.
625 },
626 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 "websiteUrl": "A String", # The merchant's website.
628 "businessInformation": { # The business information of the account.
629 "phoneNumber": "A String", # The phone number of the business.
630 "customerService": { # The customer service information of the business.
631 "url": "A String", # Customer service URL.
632 "phoneNumber": "A String", # Customer service phone number.
633 "email": "A String", # Customer service email.
634 },
635 "address": { # The address of the business.
636 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
637 "country": "A String", # CLDR country code (e.g. "US").
638 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
639 "streetAddress": "A String", # Street-level part of the address.
640 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
641 },
642 },
643 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
644 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
645 "gmbEmail": "A String", # 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.
646 },
647 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
648 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700649 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
650 {
651 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700652 "orderManager": True or False, # Whether user is an order manager.
653 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700654 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700656 },
657 ],
658 }
659
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700660 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).
Craig Citro065b5302014-08-14 00:47:23 -0700661
662Returns:
663 An object of the form:
664
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
666 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700667 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
668 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 "youtubeChannelLinks": [ # 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.
670 {
671 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
672 "channelId": "A String", # Channel ID.
673 },
674 ],
Craig Citro065b5302014-08-14 00:47:23 -0700675 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400676 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700677 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000678 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700679 "adwordsId": "A String", # Customer ID of the AdWords account.
680 },
681 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 "websiteUrl": "A String", # The merchant's website.
683 "businessInformation": { # The business information of the account.
684 "phoneNumber": "A String", # The phone number of the business.
685 "customerService": { # The customer service information of the business.
686 "url": "A String", # Customer service URL.
687 "phoneNumber": "A String", # Customer service phone number.
688 "email": "A String", # Customer service email.
689 },
690 "address": { # The address of the business.
691 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
692 "country": "A String", # CLDR country code (e.g. "US").
693 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
694 "streetAddress": "A String", # Street-level part of the address.
695 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
696 },
697 },
698 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
699 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
700 "gmbEmail": "A String", # 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.
701 },
702 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
703 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700704 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
705 {
706 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700707 "orderManager": True or False, # Whether user is an order manager.
708 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700709 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700710 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700711 },
712 ],
713 }</pre>
714</div>
715
716<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700717 <code class="details" id="update">update(merchantId, accountId, body, dryRun=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718 <pre>Updates a Merchant Center account.
Craig Citro065b5302014-08-14 00:47:23 -0700719
720Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700721 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 -0700722 accountId: string, The ID of the account. (required)
723 body: object, The request body. (required)
724 The object takes the form of:
725
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726{ # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
727 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700728 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
729 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 "youtubeChannelLinks": [ # 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.
731 {
732 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
733 "channelId": "A String", # Channel ID.
734 },
735 ],
Craig Citro065b5302014-08-14 00:47:23 -0700736 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400737 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700738 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000739 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700740 "adwordsId": "A String", # Customer ID of the AdWords account.
741 },
742 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700743 "websiteUrl": "A String", # The merchant's website.
744 "businessInformation": { # The business information of the account.
745 "phoneNumber": "A String", # The phone number of the business.
746 "customerService": { # The customer service information of the business.
747 "url": "A String", # Customer service URL.
748 "phoneNumber": "A String", # Customer service phone number.
749 "email": "A String", # Customer service email.
750 },
751 "address": { # The address of the business.
752 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
753 "country": "A String", # CLDR country code (e.g. "US").
754 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
755 "streetAddress": "A String", # Street-level part of the address.
756 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
757 },
758 },
759 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
760 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
761 "gmbEmail": "A String", # 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.
762 },
763 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
764 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700765 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
766 {
767 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768 "orderManager": True or False, # Whether user is an order manager.
769 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700770 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700772 },
773 ],
774 }
775
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700776 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).
Craig Citro065b5302014-08-14 00:47:23 -0700777
778Returns:
779 An object of the form:
780
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 { # Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role.
782 "reviewsUrl": "A String", # [DEPRECATED] This field is never returned and will be ignored if provided.
Craig Citro065b5302014-08-14 00:47:23 -0700783 "kind": "content#account", # Identifies what kind of resource this is. Value: the fixed string "content#account".
784 "name": "A String", # Display name for the account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700785 "youtubeChannelLinks": [ # 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.
786 {
787 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
788 "channelId": "A String", # Channel ID.
789 },
790 ],
Craig Citro065b5302014-08-14 00:47:23 -0700791 "adultContent": True or False, # Indicates whether the merchant sells adult content.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400792 "adwordsLinks": [ # 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.
Craig Citro065b5302014-08-14 00:47:23 -0700793 {
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000794 "status": "A String", # 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's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status active when it's still pending or with status pending when it'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.
Craig Citro065b5302014-08-14 00:47:23 -0700795 "adwordsId": "A String", # Customer ID of the AdWords account.
796 },
797 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 "websiteUrl": "A String", # The merchant's website.
799 "businessInformation": { # The business information of the account.
800 "phoneNumber": "A String", # The phone number of the business.
801 "customerService": { # The customer service information of the business.
802 "url": "A String", # Customer service URL.
803 "phoneNumber": "A String", # Customer service phone number.
804 "email": "A String", # Customer service email.
805 },
806 "address": { # The address of the business.
807 "postalCode": "A String", # Postal code or ZIP (e.g. "94043").
808 "country": "A String", # CLDR country code (e.g. "US").
809 "region": "A String", # Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").
810 "streetAddress": "A String", # Street-level part of the address.
811 "locality": "A String", # City, town or commune. May also include dependent localities or sublocalities (e.g. neighborhoods or suburbs).
812 },
813 },
814 "googleMyBusinessLink": { # The GMB account which is linked or in the process of being linked with the Merchant Center account.
815 "status": "A String", # Status of the link between this Merchant Center account and the GMB account.
816 "gmbEmail": "A String", # 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.
817 },
818 "sellerId": "A String", # Client-specific, locally-unique, internal ID for the child account.
819 "id": "A String", # Merchant Center account ID.
Craig Citro065b5302014-08-14 00:47:23 -0700820 "users": [ # Users with access to the account. Every account (except for subaccounts) must have at least one admin user.
821 {
822 "admin": True or False, # Whether user is an admin.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700823 "orderManager": True or False, # Whether user is an order manager.
824 "paymentsAnalyst": True or False, # Whether user can access payment statements.
Craig Citro065b5302014-08-14 00:47:23 -0700825 "emailAddress": "A String", # User's email address.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826 "paymentsManager": True or False, # Whether user can manage payment settings.
Craig Citro065b5302014-08-14 00:47:23 -0700827 },
828 ],
829 }</pre>
830</div>
831
832</body></html>