blob: 75cd0a170d4a92baa4da87bef9d0cce5397fae0e [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="analytics_v3.html">Google Analytics API</a> . <a href="analytics_v3.management.html">management</a> . <a href="analytics_v3.management.webproperties.html">webproperties</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040081 <code><a href="#get">get(accountId, webPropertyId)</a></code></p>
82<p class="firstline">Gets a web property to which the user has access.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#insert">insert(accountId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.</p>
86<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080087 <code><a href="#list">list(accountId, max_results=None, start_index=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Lists web properties to which the user has access.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#patch">patch(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Updates an existing web property. This method supports patch semantics.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Updates an existing web property.</p>
95<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400102 <code class="details" id="get">get(accountId, webPropertyId)</code>
103 <pre>Gets a web property to which the user has access.
104
105Args:
106 accountId: string, Account ID to retrieve the web property for. (required)
107 webPropertyId: string, ID to retrieve the web property for. (required)
108
109Returns:
110 An object of the form:
111
112 { # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800113 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
114 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
115 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
116 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
117 },
118 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
119 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
120 # Set to false to delete data associated with the user identifier automatically after the rentention period.
121 # This property cannot be set on insert.
122 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
123 # This property cannot be set on insert.
124 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
125 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
126 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
127 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
128 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
129 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
130 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
131 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
132 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
133 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
134 },
135 &quot;permissions&quot;: { # Permissions the user has for this web property.
136 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
137 &quot;A String&quot;,
138 ],
139 },
140 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
141 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
142 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
143 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
144 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
145}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400146</div>
147
148<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 <code class="details" id="insert">insert(accountId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400150 <pre>Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.
151
152Args:
153 accountId: string, Account ID to create the web property for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400155 The object takes the form of:
156
157{ # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800158 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
159 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
160 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
161 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
162 },
163 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
164 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
165 # Set to false to delete data associated with the user identifier automatically after the rentention period.
166 # This property cannot be set on insert.
167 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
168 # This property cannot be set on insert.
169 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
170 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
171 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
172 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
173 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
174 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
175 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
176 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
177 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
178 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
179 },
180 &quot;permissions&quot;: { # Permissions the user has for this web property.
181 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
182 &quot;A String&quot;,
183 ],
184 },
185 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
186 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
187 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
188 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
189 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
190}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700191
192
193Returns:
194 An object of the form:
195
196 { # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800197 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
198 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
199 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
200 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
201 },
202 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
203 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
204 # Set to false to delete data associated with the user identifier automatically after the rentention period.
205 # This property cannot be set on insert.
206 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
207 # This property cannot be set on insert.
208 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
209 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
210 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
211 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
212 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
213 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
214 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
215 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
216 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
217 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
218 },
219 &quot;permissions&quot;: { # Permissions the user has for this web property.
220 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
221 &quot;A String&quot;,
222 ],
223 },
224 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
225 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
226 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
227 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
228 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
229}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400230</div>
231
232<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800233 <code class="details" id="list">list(accountId, max_results=None, start_index=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400234 <pre>Lists web properties to which the user has access.
235
236Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 accountId: string, Account ID to retrieve web properties for. Can either be a specific account ID or &#x27;~all&#x27;, which refers to all the accounts that user has access to. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800238 max_results: integer, The maximum number of web properties to include in this response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800239 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
John Asmuth614db982014-04-24 15:46:26 -0400240
241Returns:
242 An object of the form:
243
244 { # A web property collection lists Analytics web properties to which the user has access. Each resource in the collection corresponds to a single Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800245 &quot;items&quot;: [ # A list of web properties.
246 { # JSON template for an Analytics web property.
247 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
248 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
249 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
250 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
251 },
252 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
253 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
254 # Set to false to delete data associated with the user identifier automatically after the rentention period.
255 # This property cannot be set on insert.
256 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
257 # This property cannot be set on insert.
258 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
259 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
260 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
261 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
262 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
263 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
264 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
265 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
266 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
267 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
268 },
269 &quot;permissions&quot;: { # Permissions the user has for this web property.
270 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
271 &quot;A String&quot;,
272 ],
273 },
274 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
275 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
276 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
277 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
278 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
279 },
280 ],
281 &quot;itemsPerPage&quot;: 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
282 &quot;kind&quot;: &quot;analytics#webproperties&quot;, # Collection type.
283 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this web property collection.
284 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this web property collection.
285 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
286 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
287 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
288}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400289</div>
290
291<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700292 <code class="details" id="patch">patch(accountId, webPropertyId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400293 <pre>Updates an existing web property. This method supports patch semantics.
294
295Args:
296 accountId: string, Account ID to which the web property belongs (required)
297 webPropertyId: string, Web property ID (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700298 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400299 The object takes the form of:
300
301{ # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800302 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
303 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
304 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
305 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
306 },
307 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
308 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
309 # Set to false to delete data associated with the user identifier automatically after the rentention period.
310 # This property cannot be set on insert.
311 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
312 # This property cannot be set on insert.
313 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
314 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
315 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
316 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
317 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
318 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
319 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
320 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
321 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
322 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
323 },
324 &quot;permissions&quot;: { # Permissions the user has for this web property.
325 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
326 &quot;A String&quot;,
327 ],
328 },
329 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
330 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
331 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
332 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
333 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
334}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700335
336
337Returns:
338 An object of the form:
339
340 { # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800341 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
342 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
343 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
344 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
345 },
346 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
347 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
348 # Set to false to delete data associated with the user identifier automatically after the rentention period.
349 # This property cannot be set on insert.
350 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
351 # This property cannot be set on insert.
352 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
353 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
354 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
355 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
356 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
357 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
358 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
359 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
360 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
361 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
362 },
363 &quot;permissions&quot;: { # Permissions the user has for this web property.
364 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
365 &quot;A String&quot;,
366 ],
367 },
368 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
369 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
370 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
371 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
372 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
373}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400374</div>
375
376<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700377 <code class="details" id="update">update(accountId, webPropertyId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400378 <pre>Updates an existing web property.
379
380Args:
381 accountId: string, Account ID to which the web property belongs (required)
382 webPropertyId: string, Web property ID (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700383 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400384 The object takes the form of:
385
386{ # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800387 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
388 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
389 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
390 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
391 },
392 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
393 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
394 # Set to false to delete data associated with the user identifier automatically after the rentention period.
395 # This property cannot be set on insert.
396 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
397 # This property cannot be set on insert.
398 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
399 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
400 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
401 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
402 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
403 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
404 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
405 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
406 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
407 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
408 },
409 &quot;permissions&quot;: { # Permissions the user has for this web property.
410 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
411 &quot;A String&quot;,
412 ],
413 },
414 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
415 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
416 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
417 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
418 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
419}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700420
421
422Returns:
423 An object of the form:
424
425 { # JSON template for an Analytics web property.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800426 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
427 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
428 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
429 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
430 },
431 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
432 &quot;dataRetentionResetOnNewActivity&quot;: True or False, # Set to true to reset the retention period of the user identifier with each new event from that user (thus setting the expiration date to current time plus retention period).
433 # Set to false to delete data associated with the user identifier automatically after the rentention period.
434 # This property cannot be set on insert.
435 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
436 # This property cannot be set on insert.
437 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
438 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
439 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
440 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
441 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
442 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
443 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
444 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
445 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
446 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
447 },
448 &quot;permissions&quot;: { # Permissions the user has for this web property.
449 &quot;effective&quot;: [ # All the permissions that the user has for this web property. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent account.
450 &quot;A String&quot;,
451 ],
452 },
453 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
454 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
455 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
456 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
457 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
458}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400459</div>
460
461</body></html>