Debian Codegraph @

docs/dyn/analyticsadmin_v1beta.properties.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="analyticsadmin_v1beta.html">Google Analytics Admin API</a> . <a href="analyticsadmin_v1beta.properties.html">properties</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="analyticsadmin_v1beta.properties.conversionEvents.html">conversionEvents()</a></code>
79 </p>
80 <p class="firstline">Returns the conversionEvents Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="analyticsadmin_v1beta.properties.customDimensions.html">customDimensions()</a></code>
84 </p>
85 <p class="firstline">Returns the customDimensions Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="analyticsadmin_v1beta.properties.customMetrics.html">customMetrics()</a></code>
89 </p>
90 <p class="firstline">Returns the customMetrics Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="analyticsadmin_v1beta.properties.dataStreams.html">dataStreams()</a></code>
94 </p>
95 <p class="firstline">Returns the dataStreams Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="analyticsadmin_v1beta.properties.firebaseLinks.html">firebaseLinks()</a></code>
99 </p>
100 <p class="firstline">Returns the firebaseLinks Resource.</p>
101
102 <p class="toc_element">
103 <code><a href="analyticsadmin_v1beta.properties.googleAdsLinks.html">googleAdsLinks()</a></code>
104 </p>
105 <p class="firstline">Returns the googleAdsLinks Resource.</p>
106
107 <p class="toc_element">
108 <code><a href="analyticsadmin_v1beta.properties.keyEvents.html">keyEvents()</a></code>
109 </p>
110 <p class="firstline">Returns the keyEvents Resource.</p>
111
112 <p class="toc_element">
113 <code><a href="#acknowledgeUserDataCollection">acknowledgeUserDataCollection(property, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.</p>
115 <p class="toc_element">
116 <code><a href="#close">close()</a></code></p>
117 <p class="firstline">Close httplib2 connections.</p>
118 <p class="toc_element">
119 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
120 <p class="firstline">Creates a Google Analytics property with the specified location and attributes.</p>
121 <p class="toc_element">
122 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
123 <p class="firstline">Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.</p>
124 <p class="toc_element">
125 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
126 <p class="firstline">Lookup for a single GA Property.</p>
127 <p class="toc_element">
128 <code><a href="#getDataRetentionSettings">getDataRetentionSettings(name, x__xgafv=None)</a></code></p>
129 <p class="firstline">Returns the singleton data retention settings for this property.</p>
130 <p class="toc_element">
131 <code><a href="#list">list(filter=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
132 <p class="firstline">Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty list if no relevant properties are found.</p>
133 <p class="toc_element">
134 <code><a href="#list_next">list_next()</a></code></p>
135 <p class="firstline">Retrieves the next page of results.</p>
136 <p class="toc_element">
137 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
138 <p class="firstline">Updates a property.</p>
139 <p class="toc_element">
140 <code><a href="#runAccessReport">runAccessReport(entity, body=None, x__xgafv=None)</a></code></p>
141 <p class="firstline">Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.</p>
142 <p class="toc_element">
143 <code><a href="#updateDataRetentionSettings">updateDataRetentionSettings(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
144 <p class="firstline">Updates the singleton data retention settings for this property.</p>
145 <h3>Method Details</h3>
146 <div class="method">
147 <code class="details" id="acknowledgeUserDataCollection">acknowledgeUserDataCollection(property, body=None, x__xgafv=None)</code>
148 <pre>Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
149
150 Args:
151 property: string, Required. The property for which to acknowledge user data collection. (required)
152 body: object, The request body.
153 The object takes the form of:
154
155 { # Request message for AcknowledgeUserDataCollection RPC.
156 &quot;acknowledgement&quot;: &quot;A String&quot;, # Required. An acknowledgement that the caller of this method understands the terms of user data collection. This field must contain the exact value: &quot;I acknowledge that I have the necessary privacy disclosures and rights from my end users for the collection and processing of their data, including the association of such data with the visitation information Google Analytics collects from my site and/or app property.&quot;
157 }
158
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164 Returns:
165 An object of the form:
166
167 { # Response message for AcknowledgeUserDataCollection RPC.
168 }</pre>
169 </div>
170
171 <div class="method">
172 <code class="details" id="close">close()</code>
173 <pre>Close httplib2 connections.</pre>
174 </div>
175
176 <div class="method">
177 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
178 <pre>Creates a Google Analytics property with the specified location and attributes.
179
180 Args:
181 body: object, The request body.
182 The object takes the form of:
183
184 { # A resource message representing a Google Analytics property.
185 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
186 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
187 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
188 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
189 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
190 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
191 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
192 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
193 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
194 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
195 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
196 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
197 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
198 }
199
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204
205 Returns:
206 An object of the form:
207
208 { # A resource message representing a Google Analytics property.
209 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
210 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
211 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
212 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
213 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
214 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
215 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
216 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
217 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
218 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
219 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
220 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
221 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
222 }</pre>
223 </div>
224
225 <div class="method">
226 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
227 <pre>Marks target Property as soft-deleted (ie: &quot;trashed&quot;) and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.
228
229 Args:
230 name: string, Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: &quot;properties/1000&quot; (required)
231 x__xgafv: string, V1 error format.
232 Allowed values
233 1 - v1 error format
234 2 - v2 error format
235
236 Returns:
237 An object of the form:
238
239 { # A resource message representing a Google Analytics property.
240 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
241 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
242 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
243 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
244 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
245 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
246 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
247 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
248 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
249 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
250 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
251 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
252 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
253 }</pre>
254 </div>
255
256 <div class="method">
257 <code class="details" id="get">get(name, x__xgafv=None)</code>
258 <pre>Lookup for a single GA Property.
259
260 Args:
261 name: string, Required. The name of the property to lookup. Format: properties/{property_id} Example: &quot;properties/1000&quot; (required)
262 x__xgafv: string, V1 error format.
263 Allowed values
264 1 - v1 error format
265 2 - v2 error format
266
267 Returns:
268 An object of the form:
269
270 { # A resource message representing a Google Analytics property.
271 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
272 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
273 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
274 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
275 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
276 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
277 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
278 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
279 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
280 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
281 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
282 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
283 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
284 }</pre>
285 </div>
286
287 <div class="method">
288 <code class="details" id="getDataRetentionSettings">getDataRetentionSettings(name, x__xgafv=None)</code>
289 <pre>Returns the singleton data retention settings for this property.
290
291 Args:
292 name: string, Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: &quot;properties/1000/dataRetentionSettings&quot; (required)
293 x__xgafv: string, V1 error format.
294 Allowed values
295 1 - v1 error format
296 2 - v2 error format
297
298 Returns:
299 An object of the form:
300
301 { # Settings values for data retention. This is a singleton resource.
302 &quot;eventDataRetention&quot;: &quot;A String&quot;, # Required. The length of time that event-level data is retained.
303 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
304 &quot;resetUserDataOnNewActivity&quot;: True or False, # If true, reset the retention period for the user identifier with every event from that user.
305 &quot;userDataRetention&quot;: &quot;A String&quot;, # Required. The length of time that user-level data is retained.
306 }</pre>
307 </div>
308
309 <div class="method">
310 <code class="details" id="list">list(filter=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code>
311 <pre>Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: &quot;trashed&quot;) properties are excluded by default. Returns an empty list if no relevant properties are found.
312
313 Args:
314 filter: string, Required. An expression for filtering the results of the request. Fields eligible for filtering are: `parent:`(The resource name of the parent account/property) or `ancestor:`(The resource name of the parent account) or `firebase_project:`(The id or number of the linked firebase project). Some examples of filters: ``` | Filter | Description | |-----------------------------|-------------------------------------------| | parent:accounts/123 | The account with account id: 123. | | parent:properties/123 | The property with property id: 123. | | ancestor:accounts/123 | The account with account id: 123. | | firebase_project:project-id | The firebase project with id: project-id. | | firebase_project:123 | The firebase project with number: 123. | ```
315 pageSize: integer, Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
316 pageToken: string, Optional. A page token, received from a previous `ListProperties` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProperties` must match the call that provided the page token.
317 showDeleted: boolean, Whether to include soft-deleted (ie: &quot;trashed&quot;) Properties in the results. Properties can be inspected to determine whether they are deleted or not.
318 x__xgafv: string, V1 error format.
319 Allowed values
320 1 - v1 error format
321 2 - v2 error format
322
323 Returns:
324 An object of the form:
325
326 { # Response message for ListProperties RPC.
327 &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.
328 &quot;properties&quot;: [ # Results that matched the filter criteria and were accessible to the caller.
329 { # A resource message representing a Google Analytics property.
330 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
331 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
332 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
333 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
334 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
335 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
336 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
337 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
338 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
339 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
340 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
341 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
342 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
343 },
344 ],
345 }</pre>
346 </div>
347
348 <div class="method">
349 <code class="details" id="list_next">list_next()</code>
350 <pre>Retrieves the next page of results.
351
352 Args:
353 previous_request: The request for the previous page. (required)
354 previous_response: The response from the request for the previous page. (required)
355
356 Returns:
357 A request object that you can call &#x27;execute()&#x27; on to request the next
358 page. Returns None if there are no more items in the collection.
359 </pre>
360 </div>
361
362 <div class="method">
363 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
364 <pre>Updates a property.
365
366 Args:
367 name: string, Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot; (required)
368 body: object, The request body.
369 The object takes the form of:
370
371 { # A resource message representing a Google Analytics property.
372 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
373 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
374 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
375 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
376 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
377 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
378 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
379 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
380 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
381 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
382 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
383 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
384 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
385 }
386
387 updateMask: string, Required. The list of fields to be updated. Field names must be in snake case (e.g., &quot;field_to_update&quot;). Omitted fields will not be updated. To replace the entire entity, use one path with the string &quot;*&quot; to match all fields.
388 x__xgafv: string, V1 error format.
389 Allowed values
390 1 - v1 error format
391 2 - v2 error format
392
393 Returns:
394 An object of the form:
395
396 { # A resource message representing a Google Analytics property.
397 &quot;account&quot;: &quot;A String&quot;, # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: &quot;accounts/123&quot;
398 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the entity was originally created.
399 &quot;currencyCode&quot;: &quot;A String&quot;, # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: &quot;USD&quot;, &quot;EUR&quot;, &quot;JPY&quot;
400 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
401 &quot;displayName&quot;: &quot;A String&quot;, # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
402 &quot;expireTime&quot;: &quot;A String&quot;, # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
403 &quot;industryCategory&quot;: &quot;A String&quot;, # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
404 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of this property. Format: properties/{property_id} Example: &quot;properties/1000&quot;
405 &quot;parent&quot;: &quot;A String&quot;, # Immutable. Resource name of this property&#x27;s logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: &quot;accounts/100&quot;, &quot;properties/101&quot;
406 &quot;propertyType&quot;: &quot;A String&quot;, # Immutable. The property type for this Property resource. When creating a property, if the type is &quot;PROPERTY_TYPE_UNSPECIFIED&quot;, then &quot;ORDINARY_PROPERTY&quot; will be implied.
407 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. The Google Analytics service level that applies to this property.
408 &quot;timeZone&quot;: &quot;A String&quot;, # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: &quot;America/Los_Angeles&quot;
409 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when entity payload fields were last updated.
410 }</pre>
411 </div>
412
413 <div class="method">
414 <code class="details" id="runAccessReport">runAccessReport(entity, body=None, x__xgafv=None)</code>
415 <pre>Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren&#x27;t related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase &amp; Admob that can retrieve data from Google Analytics through a linkage. These records don&#x27;t include property configuration changes like adding a stream or changing a property&#x27;s time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.
416
417 Args:
418 entity: string, The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To request at the property level, entity should be for example &#x27;properties/123&#x27; if &quot;123&quot; is your Google Analytics property ID. To request at the account level, entity should be for example &#x27;accounts/1234&#x27; if &quot;1234&quot; is your Google Analytics Account ID. (required)
419 body: object, The request body.
420 The object takes the form of:
421
422 { # The request for a Data Access Record Report.
423 &quot;dateRanges&quot;: [ # Date ranges of access records to read. If multiple date ranges are requested, each response row will contain a zero based date range index. If two date ranges overlap, the access records for the overlapping days is included in the response rows for both date ranges. Requests are allowed up to 2 date ranges.
424 { # A contiguous range of days: startDate, startDate + 1, ..., endDate.
425 &quot;endDate&quot;: &quot;A String&quot;, # The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request&#x27;s time zone.
426 &quot;startDate&quot;: &quot;A String&quot;, # The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request&#x27;s time zone.
427 },
428 ],
429 &quot;dimensionFilter&quot;: { # Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics. # Dimension filters let you restrict report response to specific dimension values which match the filter. For example, filtering on access records of a single user. To learn more, see [Fundamentals of Dimension Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) for examples. Metrics cannot be used in this filter.
430 &quot;accessFilter&quot;: { # An expression to filter dimension or metric values. # A primitive filter. In the same FilterExpression, all of the filter&#x27;s field names need to be either all dimensions or all metrics.
431 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
432 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
433 &quot;doubleValue&quot;: 3.14, # Double value
434 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
435 },
436 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
437 &quot;doubleValue&quot;: 3.14, # Double value
438 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
439 },
440 },
441 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name.
442 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
443 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
444 &quot;values&quot;: [ # The list of string values. Must be non-empty.
445 &quot;A String&quot;,
446 ],
447 },
448 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
449 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
450 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
451 &quot;doubleValue&quot;: 3.14, # Double value
452 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
453 },
454 },
455 &quot;stringFilter&quot;: { # The filter for strings. # Strings related filter.
456 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
457 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
458 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
459 },
460 },
461 &quot;andGroup&quot;: { # A list of filter expressions. # Each of the FilterExpressions in the and_group has an AND relationship.
462 &quot;expressions&quot;: [ # A list of filter expressions.
463 # Object with schema name: GoogleAnalyticsAdminV1betaAccessFilterExpression
464 ],
465 },
466 &quot;notExpression&quot;: # Object with schema name: GoogleAnalyticsAdminV1betaAccessFilterExpression # The FilterExpression is NOT of not_expression.
467 &quot;orGroup&quot;: { # A list of filter expressions. # Each of the FilterExpressions in the or_group has an OR relationship.
468 &quot;expressions&quot;: [ # A list of filter expressions.
469 # Object with schema name: GoogleAnalyticsAdminV1betaAccessFilterExpression
470 ],
471 },
472 },
473 &quot;dimensions&quot;: [ # The dimensions requested and displayed in the response. Requests are allowed up to 9 dimensions.
474 { # Dimensions are attributes of your data. For example, the dimension `userEmail` indicates the email of the user that accessed reporting data. Dimension values in report responses are strings.
475 &quot;dimensionName&quot;: &quot;A String&quot;, # The API name of the dimension. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of dimensions supported in this API. Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
476 },
477 ],
478 &quot;expandGroups&quot;: True or False, # Optional. Decides whether to return the users within user groups. This field works only when include_all_users is set to true. If true, it will return all users with access to the specified property or account. If false, only the users with direct access will be returned.
479 &quot;includeAllUsers&quot;: True or False, # Optional. Determines whether to include users who have never made an API call in the response. If true, all users with access to the specified property or account are included in the response, regardless of whether they have made an API call or not. If false, only the users who have made an API call will be included.
480 &quot;limit&quot;: &quot;A String&quot;, # The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 100,000 rows per request, no matter how many you ask for. `limit` must be positive. The API may return fewer rows than the requested `limit`, if there aren&#x27;t as many remaining rows as the `limit`. For instance, there are fewer than 300 possible values for the dimension `country`, so when reporting on only `country`, you can&#x27;t get more than 300 rows, even if you set `limit` to a higher value. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
481 &quot;metricFilter&quot;: { # Expresses dimension or metric filters. The fields in the same expression need to be either all dimensions or all metrics. # Metric filters allow you to restrict report response to specific metric values which match the filter. Metric filters are applied after aggregating the report&#x27;s rows, similar to SQL having-clause. Dimensions cannot be used in this filter.
482 &quot;accessFilter&quot;: { # An expression to filter dimension or metric values. # A primitive filter. In the same FilterExpression, all of the filter&#x27;s field names need to be either all dimensions or all metrics.
483 &quot;betweenFilter&quot;: { # To express that the result needs to be between two numbers (inclusive). # A filter for two values.
484 &quot;fromValue&quot;: { # To represent a number. # Begins with this number.
485 &quot;doubleValue&quot;: 3.14, # Double value
486 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
487 },
488 &quot;toValue&quot;: { # To represent a number. # Ends with this number.
489 &quot;doubleValue&quot;: 3.14, # Double value
490 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
491 },
492 },
493 &quot;fieldName&quot;: &quot;A String&quot;, # The dimension name or metric name.
494 &quot;inListFilter&quot;: { # The result needs to be in a list of string values. # A filter for in list values.
495 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
496 &quot;values&quot;: [ # The list of string values. Must be non-empty.
497 &quot;A String&quot;,
498 ],
499 },
500 &quot;numericFilter&quot;: { # Filters for numeric or date values. # A filter for numeric or date values.
501 &quot;operation&quot;: &quot;A String&quot;, # The operation type for this filter.
502 &quot;value&quot;: { # To represent a number. # A numeric value or a date value.
503 &quot;doubleValue&quot;: 3.14, # Double value
504 &quot;int64Value&quot;: &quot;A String&quot;, # Integer value
505 },
506 },
507 &quot;stringFilter&quot;: { # The filter for strings. # Strings related filter.
508 &quot;caseSensitive&quot;: True or False, # If true, the string value is case sensitive.
509 &quot;matchType&quot;: &quot;A String&quot;, # The match type for this filter.
510 &quot;value&quot;: &quot;A String&quot;, # The string value used for the matching.
511 },
512 },
513 &quot;andGroup&quot;: { # A list of filter expressions. # Each of the FilterExpressions in the and_group has an AND relationship.
514 &quot;expressions&quot;: [ # A list of filter expressions.
515 # Object with schema name: GoogleAnalyticsAdminV1betaAccessFilterExpression
516 ],
517 },
518 &quot;notExpression&quot;: # Object with schema name: GoogleAnalyticsAdminV1betaAccessFilterExpression # The FilterExpression is NOT of not_expression.
519 &quot;orGroup&quot;: { # A list of filter expressions. # Each of the FilterExpressions in the or_group has an OR relationship.
520 &quot;expressions&quot;: [ # A list of filter expressions.
521 # Object with schema name: GoogleAnalyticsAdminV1betaAccessFilterExpression
522 ],
523 },
524 },
525 &quot;metrics&quot;: [ # The metrics requested and displayed in the response. Requests are allowed up to 10 metrics.
526 { # The quantitative measurements of a report. For example, the metric `accessCount` is the total number of data access records.
527 &quot;metricName&quot;: &quot;A String&quot;, # The API name of the metric. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of metrics supported in this API. Metrics are referenced by name in `metricFilter` &amp; `orderBys`.
528 },
529 ],
530 &quot;offset&quot;: &quot;A String&quot;, # The row count of the start row. The first row is counted as row 0. If offset is unspecified, it is treated as 0. If offset is zero, then this method will return the first page of results with `limit` entries. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
531 &quot;orderBys&quot;: [ # Specifies how rows are ordered in the response.
532 { # Order bys define how rows will be sorted in the response. For example, ordering rows by descending access count is one ordering, and ordering rows by the country string is a different ordering.
533 &quot;desc&quot;: True or False, # If true, sorts by descending order. If false or unspecified, sorts in ascending order.
534 &quot;dimension&quot;: { # Sorts by dimension values. # Sorts results by a dimension&#x27;s values.
535 &quot;dimensionName&quot;: &quot;A String&quot;, # A dimension name in the request to order by.
536 &quot;orderType&quot;: &quot;A String&quot;, # Controls the rule for dimension value ordering.
537 },
538 &quot;metric&quot;: { # Sorts by metric values. # Sorts results by a metric&#x27;s values.
539 &quot;metricName&quot;: &quot;A String&quot;, # A metric name in the request to order by.
540 },
541 },
542 ],
543 &quot;returnEntityQuota&quot;: True or False, # Toggles whether to return the current state of this Analytics Property&#x27;s quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level requests, this field must be false.
544 &quot;timeZone&quot;: &quot;A String&quot;, # This request&#x27;s time zone if specified. If unspecified, the property&#x27;s time zone is used. The request&#x27;s time zone is used to interpret the start &amp; end dates of the report. Formatted as strings from the IANA Time Zone database (https://www.iana.org/time-zones); for example &quot;America/New_York&quot; or &quot;Asia/Tokyo&quot;.
545 }
546
547 x__xgafv: string, V1 error format.
548 Allowed values
549 1 - v1 error format
550 2 - v2 error format
551
552 Returns:
553 An object of the form:
554
555 { # The customized Data Access Record Report response.
556 &quot;dimensionHeaders&quot;: [ # The header for a column in the report that corresponds to a specific dimension. The number of DimensionHeaders and ordering of DimensionHeaders matches the dimensions present in rows.
557 { # Describes a dimension column in the report. Dimensions requested in a report produce column entries within rows and DimensionHeaders. However, dimensions used exclusively within filters or expressions do not produce columns in a report; correspondingly, those dimensions do not produce headers.
558 &quot;dimensionName&quot;: &quot;A String&quot;, # The dimension&#x27;s name; for example &#x27;userEmail&#x27;.
559 },
560 ],
561 &quot;metricHeaders&quot;: [ # The header for a column in the report that corresponds to a specific metric. The number of MetricHeaders and ordering of MetricHeaders matches the metrics present in rows.
562 { # Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.
563 &quot;metricName&quot;: &quot;A String&quot;, # The metric&#x27;s name; for example &#x27;accessCount&#x27;.
564 },
565 ],
566 &quot;quota&quot;: { # Current state of all quotas for this Analytics property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors. # The quota state for this Analytics property including this request. This field doesn&#x27;t work with account-level requests.
567 &quot;concurrentRequests&quot;: { # Current state for a particular quota group. # Properties can use up to 50 concurrent requests.
568 &quot;consumed&quot;: 42, # Quota consumed by this request.
569 &quot;remaining&quot;: 42, # Quota remaining after this request.
570 },
571 &quot;serverErrorsPerProjectPerHour&quot;: { # Current state for a particular quota group. # Properties and cloud project pairs can have up to 50 server errors per hour.
572 &quot;consumed&quot;: 42, # Quota consumed by this request.
573 &quot;remaining&quot;: 42, # Quota remaining after this request.
574 },
575 &quot;tokensPerDay&quot;: { # Current state for a particular quota group. # Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
576 &quot;consumed&quot;: 42, # Quota consumed by this request.
577 &quot;remaining&quot;: 42, # Quota remaining after this request.
578 },
579 &quot;tokensPerHour&quot;: { # Current state for a particular quota group. # Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.
580 &quot;consumed&quot;: 42, # Quota consumed by this request.
581 &quot;remaining&quot;: 42, # Quota remaining after this request.
582 },
583 &quot;tokensPerProjectPerHour&quot;: { # Current state for a particular quota group. # Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.
584 &quot;consumed&quot;: 42, # Quota consumed by this request.
585 &quot;remaining&quot;: 42, # Quota remaining after this request.
586 },
587 },
588 &quot;rowCount&quot;: 42, # The total number of rows in the query result. `rowCount` is independent of the number of rows returned in the response, the `limit` request parameter, and the `offset` request parameter. For example if a query returns 175 rows and includes `limit` of 50 in the API request, the response will contain `rowCount` of 175 but only 50 rows. To learn more about this pagination parameter, see [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
589 &quot;rows&quot;: [ # Rows of dimension value combinations and metric values in the report.
590 { # Access report data for each row.
591 &quot;dimensionValues&quot;: [ # List of dimension values. These values are in the same order as specified in the request.
592 { # The value of a dimension.
593 &quot;value&quot;: &quot;A String&quot;, # The dimension value. For example, this value may be &#x27;France&#x27; for the &#x27;country&#x27; dimension.
594 },
595 ],
596 &quot;metricValues&quot;: [ # List of metric values. These values are in the same order as specified in the request.
597 { # The value of a metric.
598 &quot;value&quot;: &quot;A String&quot;, # The measurement value. For example, this value may be &#x27;13&#x27;.
599 },
600 ],
601 },
602 ],
603 }</pre>
604 </div>
605
606 <div class="method">
607 <code class="details" id="updateDataRetentionSettings">updateDataRetentionSettings(name, body=None, updateMask=None, x__xgafv=None)</code>
608 <pre>Updates the singleton data retention settings for this property.
609
610 Args:
611 name: string, Identifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings (required)
612 body: object, The request body.
613 The object takes the form of:
614
615 { # Settings values for data retention. This is a singleton resource.
616 &quot;eventDataRetention&quot;: &quot;A String&quot;, # Required. The length of time that event-level data is retained.
617 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
618 &quot;resetUserDataOnNewActivity&quot;: True or False, # If true, reset the retention period for the user identifier with every event from that user.
619 &quot;userDataRetention&quot;: &quot;A String&quot;, # Required. The length of time that user-level data is retained.
620 }
621
622 updateMask: string, Required. The list of fields to be updated. Field names must be in snake case (e.g., &quot;field_to_update&quot;). Omitted fields will not be updated. To replace the entire entity, use one path with the string &quot;*&quot; to match all fields.
623 x__xgafv: string, V1 error format.
624 Allowed values
625 1 - v1 error format
626 2 - v2 error format
627
628 Returns:
629 An object of the form:
630
631 { # Settings values for data retention. This is a singleton resource.
632 &quot;eventDataRetention&quot;: &quot;A String&quot;, # Required. The length of time that event-level data is retained.
633 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
634 &quot;resetUserDataOnNewActivity&quot;: True or False, # If true, reset the retention period for the user identifier with every event from that user.
635 &quot;userDataRetention&quot;: &quot;A String&quot;, # Required. The length of time that user-level data is retained.
636 }</pre>
637 </div>
638
639 </body></html>