Debian Codegraph @

docs/dyn/merchantapi_accounts_v1beta.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_v1beta.html">Merchant API</a> . <a href="merchantapi_accounts_v1beta.accounts.html">accounts</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="merchantapi_accounts_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta.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_v1beta/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 &quot;users&quot;: [ # Optional. Users to be added to the account. This field is deprecated and will not exist after the API evolves out of beta. Use the `user` field instead.
262 { # Request message for the `CreateUser` method.
263 &quot;parent&quot;: &quot;A String&quot;, # Required. The resource name of the account for which a user will be created. Format: `accounts/{account}`
264 &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. The user to create.
265 &quot;accessRights&quot;: [ # Required. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
266 &quot;A String&quot;,
267 ],
268 &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`.
269 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the user.
270 },
271 &quot;userId&quot;: &quot;A String&quot;, # Required. The email address of the user (for example, `[email protected]`).
272 },
273 ],
274 }
275
276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
280
281 Returns:
282 An object of the form:
283
284 { # 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.
285 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
286 &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.
287 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
288 &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`.
289 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
290 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
291 &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.
292 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
293 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
294 },
295 }</pre>
296 </div>
297
298 <div class="method">
299 <code class="details" id="createTestAccount">createTestAccount(parent, body=None, x__xgafv=None)</code>
300 <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.
301
302 Args:
303 parent: string, Required. The account resource name to create the test account under. Format: accounts/{account} (required)
304 body: object, The request body.
305 The object takes the form of:
306
307 { # 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.
308 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
309 &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.
310 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
311 &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`.
312 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
313 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
314 &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.
315 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
316 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
317 },
318 }
319
320 x__xgafv: string, V1 error format.
321 Allowed values
322 1 - v1 error format
323 2 - v2 error format
324
325 Returns:
326 An object of the form:
327
328 { # 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.
329 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
330 &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.
331 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
332 &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`.
333 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
334 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
335 &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.
336 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
337 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
338 },
339 }</pre>
340 </div>
341
342 <div class="method">
343 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
344 <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_v1beta/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.
345
346 Args:
347 name: string, Required. The name of the account to delete. Format: `accounts/{account}` (required)
348 force: boolean, Optional. If set to `true`, the account is deleted even if it provides services to other accounts or has processed offers.
349 x__xgafv: string, V1 error format.
350 Allowed values
351 1 - v1 error format
352 2 - v2 error format
353
354 Returns:
355 An object of the form:
356
357 { # 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); }
358 }</pre>
359 </div>
360
361 <div class="method">
362 <code class="details" id="get">get(name, x__xgafv=None)</code>
363 <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.
364
365 Args:
366 name: string, Required. The name of the account to retrieve. Format: `accounts/{account}` (required)
367 x__xgafv: string, V1 error format.
368 Allowed values
369 1 - v1 error format
370 2 - v2 error format
371
372 Returns:
373 An object of the form:
374
375 { # 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.
376 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
377 &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.
378 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
379 &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`.
380 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
381 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
382 &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.
383 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
384 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
385 },
386 }</pre>
387 </div>
388
389 <div class="method">
390 <code class="details" id="list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
391 <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.
392
393 Args:
394 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).
395 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.
396 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.
397 x__xgafv: string, V1 error format.
398 Allowed values
399 1 - v1 error format
400 2 - v2 error format
401
402 Returns:
403 An object of the form:
404
405 { # Response message for the `accounts.list` method.
406 &quot;accounts&quot;: [ # The accounts matching the `ListAccountsRequest`.
407 { # 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.
408 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
409 &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.
410 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
411 &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`.
412 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
413 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
414 &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.
415 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
416 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
417 },
418 },
419 ],
420 &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.
421 }</pre>
422 </div>
423
424 <div class="method">
425 <code class="details" id="listSubaccounts">listSubaccounts(provider, pageSize=None, pageToken=None, x__xgafv=None)</code>
426 <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;))`
427
428 Args:
429 provider: string, Required. The aggregation service provider. Format: `accounts/{accountId}` (required)
430 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.
431 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.
432 x__xgafv: string, V1 error format.
433 Allowed values
434 1 - v1 error format
435 2 - v2 error format
436
437 Returns:
438 An object of the form:
439
440 { # Response message for the `ListSubAccounts` method.
441 &quot;accounts&quot;: [ # The accounts for which the given parent account is an aggregator.
442 { # 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.
443 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
444 &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.
445 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
446 &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`.
447 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
448 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
449 &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.
450 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
451 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
452 },
453 },
454 ],
455 &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.
456 }</pre>
457 </div>
458
459 <div class="method">
460 <code class="details" id="listSubaccounts_next">listSubaccounts_next()</code>
461 <pre>Retrieves the next page of results.
462
463 Args:
464 previous_request: The request for the previous page. (required)
465 previous_response: The response from the request for the previous page. (required)
466
467 Returns:
468 A request object that you can call &#x27;execute()&#x27; on to request the next
469 page. Returns None if there are no more items in the collection.
470 </pre>
471 </div>
472
473 <div class="method">
474 <code class="details" id="list_next">list_next()</code>
475 <pre>Retrieves the next page of results.
476
477 Args:
478 previous_request: The request for the previous page. (required)
479 previous_response: The response from the request for the previous page. (required)
480
481 Returns:
482 A request object that you can call &#x27;execute()&#x27; on to request the next
483 page. Returns None if there are no more items in the collection.
484 </pre>
485 </div>
486
487 <div class="method">
488 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
489 <pre>Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access.
490
491 Args:
492 name: string, Identifier. The resource name of the account. Format: `accounts/{account}` (required)
493 body: object, The request body.
494 The object takes the form of:
495
496 { # 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.
497 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
498 &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.
499 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
500 &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`.
501 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
502 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
503 &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.
504 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
505 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
506 },
507 }
508
509 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`
510 x__xgafv: string, V1 error format.
511 Allowed values
512 1 - v1 error format
513 2 - v2 error format
514
515 Returns:
516 An object of the form:
517
518 { # 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.
519 &quot;accountId&quot;: &quot;A String&quot;, # Output only. The ID of the account.
520 &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.
521 &quot;adultContent&quot;: True or False, # Optional. Whether this account contains adult content.
522 &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`.
523 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the account. Format: `accounts/{account}`
524 &quot;testAccount&quot;: True or False, # Output only. Whether this is a test account.
525 &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.
526 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
527 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
528 },
529 }</pre>
530 </div>
531
532 </body></html>