Debian Codegraph @

docs/dyn/merchantapi_accounts_v1.accounts.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="merchantapi_accounts_v1.html">Merchant API</a> . <a href="merchantapi_accounts_v1.accounts.html">accounts</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="merchantapi_accounts_v1.accounts.autofeedSettings.html">autofeedSettings()</a></code>
79 </p>
80 <p class="firstline">Returns the autofeedSettings Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="merchantapi_accounts_v1.accounts.automaticImprovements.html">automaticImprovements()</a></code>
84 </p>
85 <p class="firstline">Returns the automaticImprovements Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="merchantapi_accounts_v1.accounts.businessIdentity.html">businessIdentity()</a></code>
89 </p>
90 <p class="firstline">Returns the businessIdentity Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="merchantapi_accounts_v1.accounts.businessInfo.html">businessInfo()</a></code>
94 </p>
95 <p class="firstline">Returns the businessInfo Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="merchantapi_accounts_v1.accounts.developerRegistration.html">developerRegistration()</a></code>
99 </p>
100 <p class="firstline">Returns the developerRegistration Resource.</p>
101
102 <p class="toc_element">
103 <code><a href="merchantapi_accounts_v1.accounts.emailPreferences.html">emailPreferences()</a></code>
104 </p>
105 <p class="firstline">Returns the emailPreferences Resource.</p>
106
107 <p class="toc_element">
108 <code><a href="merchantapi_accounts_v1.accounts.gbpAccounts.html">gbpAccounts()</a></code>
109 </p>
110 <p class="firstline">Returns the gbpAccounts Resource.</p>
111
112 <p class="toc_element">
113 <code><a href="merchantapi_accounts_v1.accounts.homepage.html">homepage()</a></code>
114 </p>
115 <p class="firstline">Returns the homepage Resource.</p>
116
117 <p class="toc_element">
118 <code><a href="merchantapi_accounts_v1.accounts.issues.html">issues()</a></code>
119 </p>
120 <p class="firstline">Returns the issues Resource.</p>
121
122 <p class="toc_element">
123 <code><a href="merchantapi_accounts_v1.accounts.omnichannelSettings.html">omnichannelSettings()</a></code>
124 </p>
125 <p class="firstline">Returns the omnichannelSettings Resource.</p>
126
127 <p class="toc_element">
128 <code><a href="merchantapi_accounts_v1.accounts.onlineReturnPolicies.html">onlineReturnPolicies()</a></code>
129 </p>
130 <p class="firstline">Returns the onlineReturnPolicies Resource.</p>
131
132 <p class="toc_element">
133 <code><a href="merchantapi_accounts_v1.accounts.programs.html">programs()</a></code>
134 </p>
135 <p class="firstline">Returns the programs Resource.</p>
136
137 <p class="toc_element">
138 <code><a href="merchantapi_accounts_v1.accounts.regions.html">regions()</a></code>
139 </p>
140 <p class="firstline">Returns the regions Resource.</p>
141
142 <p class="toc_element">
143 <code><a href="merchantapi_accounts_v1.accounts.relationships.html">relationships()</a></code>
144 </p>
145 <p class="firstline">Returns the relationships Resource.</p>
146
147 <p class="toc_element">
148 <code><a href="merchantapi_accounts_v1.accounts.services.html">services()</a></code>
149 </p>
150 <p class="firstline">Returns the services Resource.</p>
151
152 <p class="toc_element">
153 <code><a href="merchantapi_accounts_v1.accounts.shippingSettings.html">shippingSettings()</a></code>
154 </p>
155 <p class="firstline">Returns the shippingSettings Resource.</p>
156
157 <p class="toc_element">
158 <code><a href="merchantapi_accounts_v1.accounts.termsOfServiceAgreementStates.html">termsOfServiceAgreementStates()</a></code>
159 </p>
160 <p class="firstline">Returns the termsOfServiceAgreementStates Resource.</p>
161
162 <p class="toc_element">
163 <code><a href="merchantapi_accounts_v1.accounts.users.html">users()</a></code>
164 </p>
165 <p class="firstline">Returns the users Resource.</p>
166
167 <p class="toc_element">
168 <code><a href="#close">close()</a></code></p>
169 <p class="firstline">Close httplib2 connections.</p>
170 <p class="toc_element">
171 <code><a href="#createAndConfigure">createAndConfigure(body=None, x__xgafv=None)</a></code></p>
172 <p class="firstline">Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.</p>
173 <p class="toc_element">
174 <code><a href="#createTestAccount">createTestAccount(parent, body=None, x__xgafv=None)</a></code></p>
175 <p class="firstline">Creates a Merchant Center test account. Test accounts are intended for development and testing purposes, such as validating API integrations or new feature behavior. Key characteristics and limitations of test accounts: - Immutable Type: A test account cannot be converted into a regular (live) Merchant Center account. Likewise, a regular account cannot be converted into a test account. - Non-Serving Products: Any products, offers, or data created within a test account will not be published or made visible to end-users on any Google surfaces. They are strictly for testing environments. - Separate Environment: Test accounts operate in a sandbox-like manner, isolated from live serving and real user traffic.</p>
176 <p class="toc_element">
177 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
178 <p class="firstline">Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. This also deletes the account's [developer registration entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any associated GCP project to the account. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.</p>
179 <p class="toc_element">
180 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
181 <p class="firstline">Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.</p>
182 <p class="toc_element">
183 <code><a href="#list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
184 <p class="firstline">Note: For the `accounts.list` method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the `accounts.listSubaccounts` method, which is more suitable for advanced accounts use case.</p>
185 <p class="toc_element">
186 <code><a href="#listSubaccounts">listSubaccounts(provider, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
187 <p class="firstline">List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful `accounts.list` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`</p>
188 <p class="toc_element">
189 <code><a href="#listSubaccounts_next">listSubaccounts_next()</a></code></p>
190 <p class="firstline">Retrieves the next page of results.</p>
191 <p class="toc_element">
192 <code><a href="#list_next">list_next()</a></code></p>
193 <p class="firstline">Retrieves the next page of results.</p>
194 <p class="toc_element">
195 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
196 <p class="firstline">Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access.</p>
197 <h3>Method Details</h3>
198 <div class="method">
199 <code class="details" id="close">close()</code>
200 <pre>Close httplib2 connections.</pre>
201 </div>
202
203 <div class="method">
204 <code class="details" id="createAndConfigure">createAndConfigure(body=None, x__xgafv=None)</code>
205 <pre>Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
206
207 Args:
208 body: object, The request body.
209 The object takes the form of:
210
211 { # Request message for the `CreateAndConfigureAccount` method.
212 &quot;account&quot;: { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on. # Required. The account to be created.
213 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
214 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
215 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
216 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
217 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
218 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
219 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
220 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
221 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
222 },
223 },
224 &quot;service&quot;: [ # Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation` and `accounts.createAndConfigure` method can be used to create a sub-account under an existing advanced account through this method. Additional `account_management` or `products_management` services may be provided.
225 { # Additional instructions to add account services during creation of the account.
226 &quot;accountAggregation&quot;: { # `AccountAggregation` payload. # The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation.
227 },
228 &quot;accountManagement&quot;: { # `AccountManagement` payload. # The provider manages this account. Payload for service type Account Management.
229 },
230 &quot;campaignsManagement&quot;: { # `CampaignManagement` payload. # The provider manages campaigns for this account. Payload for service type campaigns management.
231 },
232 &quot;comparisonShopping&quot;: { # `ComparisonShopping` payload. # The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.
233 },
234 &quot;externalAccountId&quot;: &quot;A String&quot;, # Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider&#x27;s system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. The external account ID must be specified for the campaigns management service type. The external account ID must not be specified for the account aggregation service type. The external account ID is optional / may be specified for all other service types.
235 &quot;productsManagement&quot;: { # `ProductsManagement` payload. # The provider manages products for this account. Payload for service type products management.
236 },
237 &quot;provider&quot;: &quot;A String&quot;, # Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
238 },
239 ],
240 &quot;setAlias&quot;: [ # Optional. If a relationship is created with a provider, you can set an alias for it with this field. The calling user must be an admin on the provider to be able to set an alias.
241 { # Set an alias for a relationship between a provider and the account to be created.
242 &quot;accountIdAlias&quot;: &quot;A String&quot;, # Required. The unique ID of this account in the provider&#x27;s system. The value must be unique across all accounts on the platform for this provider.
243 &quot;provider&quot;: &quot;A String&quot;, # Required. The provider of the service. This is a reference to an account such as `providers/123` or `accounts/123`. The same provider must be specified in at least one of the `service` fields.
244 },
245 ],
246 &quot;user&quot;: [ # Optional. Users to be added to the account.
247 { # Instruction for adding a user to the account during creation.
248 &quot;user&quot;: { # The `User` resource represents a user associated with a Merchant Center account. It is used to manage user permissions and access rights within the account. For more information, see [Frequently asked questions about people and access levels](//support.google.com/merchants/answer/12160472). # Optional. Details about the user to be added. At the moment, only access rights may be specified.
249 &quot;accessRights&quot;: [ # Required. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
250 &quot;A String&quot;,
251 ],
252 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the user. Format: `accounts/{account}/user/{email}` Use `me` to refer to your own email address, for example `accounts/{account}/users/me`.
253 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the user.
254 },
255 &quot;userId&quot;: &quot;A String&quot;, # Required. The email address of the user (for example, `[email protected]`).
256 &quot;verificationMailSettings&quot;: { # Settings related to the verification email that is sent after adding a user. # Optional. Settings related to configuring the verification email that is sent after adding a user.
257 &quot;verificationMailMode&quot;: &quot;A String&quot;, # Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`.
258 },
259 },
260 ],
261 }
262
263 x__xgafv: string, V1 error format.
264 Allowed values
265 1 - v1 error format
266 2 - v2 error format
267
268 Returns:
269 An object of the form:
270
271 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
272 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
273 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
274 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
275 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
276 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
277 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
278 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
279 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
280 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
281 },
282 }</pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="createTestAccount">createTestAccount(parent, body=None, x__xgafv=None)</code>
287 <pre>Creates a Merchant Center test account. Test accounts are intended for development and testing purposes, such as validating API integrations or new feature behavior. Key characteristics and limitations of test accounts: - Immutable Type: A test account cannot be converted into a regular (live) Merchant Center account. Likewise, a regular account cannot be converted into a test account. - Non-Serving Products: Any products, offers, or data created within a test account will not be published or made visible to end-users on any Google surfaces. They are strictly for testing environments. - Separate Environment: Test accounts operate in a sandbox-like manner, isolated from live serving and real user traffic.
288
289 Args:
290 parent: string, Required. The account resource name to create the test account under. Format: accounts/{account} (required)
291 body: object, The request body.
292 The object takes the form of:
293
294 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
295 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
296 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
297 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
298 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
299 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
300 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
301 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
302 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
303 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
304 },
305 }
306
307 x__xgafv: string, V1 error format.
308 Allowed values
309 1 - v1 error format
310 2 - v2 error format
311
312 Returns:
313 An object of the form:
314
315 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
316 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
317 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
318 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
319 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
320 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
321 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
322 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
323 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
324 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
325 },
326 }</pre>
327 </div>
328
329 <div class="method">
330 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
331 <pre>Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. This also deletes the account&#x27;s [developer registration entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any associated GCP project to the account. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.
332
333 Args:
334 name: string, Required. The name of the account to delete. Format: `accounts/{account}` (required)
335 force: boolean, Optional. If set to `true`, the account is deleted even if it provides services to other accounts or has processed offers.
336 x__xgafv: string, V1 error format.
337 Allowed values
338 1 - v1 error format
339 2 - v2 error format
340
341 Returns:
342 An object of the form:
343
344 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
345 }</pre>
346 </div>
347
348 <div class="method">
349 <code class="details" id="get">get(name, x__xgafv=None)</code>
350 <pre>Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.
351
352 Args:
353 name: string, Required. The name of the account to retrieve. Format: `accounts/{account}` (required)
354 x__xgafv: string, V1 error format.
355 Allowed values
356 1 - v1 error format
357 2 - v2 error format
358
359 Returns:
360 An object of the form:
361
362 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
363 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
364 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
365 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
366 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
367 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
368 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
369 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
370 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
371 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
372 },
373 }</pre>
374 </div>
375
376 <div class="method">
377 <code class="details" id="list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
378 <pre>Note: For the `accounts.list` method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the `accounts.listSubaccounts` method, which is more suitable for advanced accounts use case.
379
380 Args:
381 filter: string, Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax).
382 pageSize: integer, Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
383 pageToken: string, Optional. A page token, received from a previous `accounts.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided in the `accounts.list` request must match the call that provided the page token.
384 x__xgafv: string, V1 error format.
385 Allowed values
386 1 - v1 error format
387 2 - v2 error format
388
389 Returns:
390 An object of the form:
391
392 { # Response message for the `accounts.list` method.
393 &quot;accounts&quot;: [ # The accounts matching the `ListAccountsRequest`.
394 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
395 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
396 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
397 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
398 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
399 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
400 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
401 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
402 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
403 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
404 },
405 },
406 ],
407 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
408 }</pre>
409 </div>
410
411 <div class="method">
412 <code class="details" id="listSubaccounts">listSubaccounts(provider, pageSize=None, pageToken=None, x__xgafv=None)</code>
413 <pre>List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful `accounts.list` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type=&quot;ACCOUNT_AGGREGATION&quot;))`
414
415 Args:
416 provider: string, Required. The aggregation service provider. Format: `accounts/{accountId}` (required)
417 pageSize: integer, Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
418 pageToken: string, Optional. A page token, received from a previous `accounts.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided in the `accounts.list` request must match the call that provided the page token.
419 x__xgafv: string, V1 error format.
420 Allowed values
421 1 - v1 error format
422 2 - v2 error format
423
424 Returns:
425 An object of the form:
426
427 { # Response message for the `ListSubAccounts` method.
428 &quot;accounts&quot;: [ # The accounts for which the given parent account is an aggregator.
429 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
430 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
431 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
432 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
433 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
434 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
435 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
436 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
437 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
438 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
439 },
440 },
441 ],
442 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
443 }</pre>
444 </div>
445
446 <div class="method">
447 <code class="details" id="listSubaccounts_next">listSubaccounts_next()</code>
448 <pre>Retrieves the next page of results.
449
450 Args:
451 previous_request: The request for the previous page. (required)
452 previous_response: The response from the request for the previous page. (required)
453
454 Returns:
455 A request object that you can call &#x27;execute()&#x27; on to request the next
456 page. Returns None if there are no more items in the collection.
457 </pre>
458 </div>
459
460 <div class="method">
461 <code class="details" id="list_next">list_next()</code>
462 <pre>Retrieves the next page of results.
463
464 Args:
465 previous_request: The request for the previous page. (required)
466 previous_response: The response from the request for the previous page. (required)
467
468 Returns:
469 A request object that you can call &#x27;execute()&#x27; on to request the next
470 page. Returns None if there are no more items in the collection.
471 </pre>
472 </div>
473
474 <div class="method">
475 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
476 <pre>Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access.
477
478 Args:
479 name: string, Identifier. The resource name of the account. Format: `accounts/{account}` (required)
480 body: object, The request body.
481 The object takes the form of:
482
483 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
484 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
485 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
486 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
487 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
488 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
489 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
490 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
491 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
492 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
493 },
494 }
495
496 updateMask: string, Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_name` - `adult_content` - `language_code` - `time_zone`
497 x__xgafv: string, V1 error format.
498 Allowed values
499 1 - v1 error format
500 2 - v2 error format
501
502 Returns:
503 An object of the form:
504
505 { # The `Account` message represents a business&#x27;s account within Merchant Center. It&#x27;s the primary entity for managing product data, settings, and interactions with Google&#x27;s services and external providers. Accounts can operate as standalone entities or be part of a advanced account structure. In an advanced account setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
506 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
507 &quot;accountName&quot;: &quot;A String&quot;, # Required. A human-readable name of the account. Don&#x27;t use punctuation, capitalization, or non-alphanumeric symbols such as the &quot;/&quot; or &quot;_&quot; symbols. See [Adding a business name](https://support.google.com/merchants/answer/12159159) for more information.
508 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
509 &quot;languageCode&quot;: &quot;A String&quot;, # Required. The account&#x27;s [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
510 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
511 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
512 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn&#x27;t exist for your account, `time_zone` is empty. The `version` field is not supported, won&#x27;t be set in responses and will be silently ignored if specified in requests.
513 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
514 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
515 },
516 }</pre>
517 </div>
518
519 </body></html>