blob: ae207778c3a5f4fb62c6f16e3d148629765f9a5d [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">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(accountId, start_index=None, max_results=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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700113 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
114 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700116 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700119 },
120 &quot;permissions&quot;: { # Permissions the user has for this web property.
121 &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.
122 &quot;A String&quot;,
123 ],
124 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700126 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
128 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
129 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
130 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
131 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
132 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
133 },
134 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
135 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
136 &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).
137 # Set to false to delete data associated with the user identifier automatically after the rentention period.
138 # This property cannot be set on insert.
139 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
140 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
141 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
142 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
143 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
144 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700145 }</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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700160 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700161 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700162 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700163 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700164 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;permissions&quot;: { # Permissions the user has for this web property.
166 &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.
167 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400168 ],
169 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700171 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
173 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
174 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
175 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
176 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
177 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
178 },
179 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
180 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
181 &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).
182 # Set to false to delete data associated with the user identifier automatically after the rentention period.
183 # This property cannot be set on insert.
184 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
185 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
186 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
187 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
188 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
189 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 }
191
192
193Returns:
194 An object of the form:
195
196 { # JSON template for an Analytics web property.
197 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
198 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700199 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700200 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700201 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700202 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700203 },
204 &quot;permissions&quot;: { # Permissions the user has for this web property.
205 &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.
206 &quot;A String&quot;,
207 ],
208 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700211 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
212 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
213 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
214 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
215 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
216 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
217 },
218 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
219 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
220 &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).
221 # Set to false to delete data associated with the user identifier automatically after the rentention period.
222 # This property cannot be set on insert.
223 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
224 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
225 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
226 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
227 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
228 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700229 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400230</div>
231
232<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 <code class="details" id="list">list(accountId, start_index=None, max_results=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)
John Asmuth614db982014-04-24 15:46:26 -0400238 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 max_results: integer, The maximum number of web properties to include in this response.
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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700245 &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.
246 &quot;kind&quot;: &quot;analytics#webproperties&quot;, # Collection type.
247 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this web property collection.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;items&quot;: [ # A list of web properties.
John Asmuth614db982014-04-24 15:46:26 -0400249 { # JSON template for an Analytics web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700250 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
251 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700252 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700253 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700256 },
257 &quot;permissions&quot;: { # Permissions the user has for this web property.
258 &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.
259 &quot;A String&quot;,
260 ],
261 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700262 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700263 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
265 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
266 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
267 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
268 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
269 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
270 },
271 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
272 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
273 &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).
274 # Set to false to delete data associated with the user identifier automatically after the rentention period.
275 # This property cannot be set on insert.
276 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
277 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
278 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
279 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
280 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
281 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
John Asmuth614db982014-04-24 15:46:26 -0400282 },
283 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700284 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700285 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this web property collection.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700286 &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
John Asmuth614db982014-04-24 15:46:26 -0400288 }</pre>
289</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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700304 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700306 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700307 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700308 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 &quot;permissions&quot;: { # Permissions the user has for this web property.
310 &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.
311 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400312 ],
313 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700314 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700315 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700316 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
317 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
318 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
319 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
320 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
321 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
322 },
323 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
324 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
325 &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).
326 # Set to false to delete data associated with the user identifier automatically after the rentention period.
327 # This property cannot be set on insert.
328 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
329 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
330 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
331 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
332 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
333 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700334 }
335
336
337Returns:
338 An object of the form:
339
340 { # JSON template for an Analytics web property.
341 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
342 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700343 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700344 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700345 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700346 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700347 },
348 &quot;permissions&quot;: { # Permissions the user has for this web property.
349 &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.
350 &quot;A String&quot;,
351 ],
352 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700353 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700354 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700355 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
356 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
357 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
358 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
359 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
360 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
361 },
362 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
363 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
364 &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).
365 # Set to false to delete data associated with the user identifier automatically after the rentention period.
366 # This property cannot be set on insert.
367 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
368 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
369 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
370 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
371 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
372 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700373 }</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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700389 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700390 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700391 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 &quot;permissions&quot;: { # Permissions the user has for this web property.
395 &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.
396 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400397 ],
398 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700399 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700401 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
402 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
403 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
404 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
405 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
406 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
407 },
408 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
409 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
410 &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).
411 # Set to false to delete data associated with the user identifier automatically after the rentention period.
412 # This property cannot be set on insert.
413 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
414 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
415 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
416 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
417 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
418 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700419 }
420
421
422Returns:
423 An object of the form:
424
425 { # JSON template for an Analytics web property.
426 &quot;dataRetentionTtl&quot;: &quot;A String&quot;, # The length of time for which user and event data is retained.
427 # This property cannot be set on insert.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700428 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700429 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700430 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700431 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700432 },
433 &quot;permissions&quot;: { # Permissions the user has for this web property.
434 &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.
435 &quot;A String&quot;,
436 ],
437 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700438 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700439 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700440 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
441 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
442 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
443 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
444 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
445 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
446 },
447 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
448 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
449 &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).
450 # Set to false to delete data associated with the user identifier automatically after the rentention period.
451 # This property cannot be set on insert.
452 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
453 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
454 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
455 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
456 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
457 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700458 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400459</div>
460
461</body></html>