blob: 35fe88b3919911155f2caec85e2eeeb6cfeaf9ea [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">
78 <code><a href="#get">get(accountId, webPropertyId)</a></code></p>
79<p class="firstline">Gets a web property to which the user has access.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#insert">insert(accountId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<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>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(accountId, start_index=None, max_results=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Lists web properties to which the user has access.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#patch">patch(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Updates an existing web property. This method supports patch semantics.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#update">update(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Updates an existing web property.</p>
92<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="get">get(accountId, webPropertyId)</code>
95 <pre>Gets a web property to which the user has access.
96
97Args:
98 accountId: string, Account ID to retrieve the web property for. (required)
99 webPropertyId: string, ID to retrieve the web property for. (required)
100
101Returns:
102 An object of the form:
103
104 { # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
106 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
107 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
108 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
109 &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 -0700110 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
112 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
113 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
114 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
115 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400116 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
118 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
119 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
120 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
121 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 # Set to false to delete data associated with the user identifier automatically after the rentention period.
123 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
125 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
126 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
127 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
128 },
129 &quot;permissions&quot;: { # Permissions the user has for this web property.
130 &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.
131 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400132 ],
133 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
135 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
136 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400137 }</pre>
138</div>
139
140<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 <code class="details" id="insert">insert(accountId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400142 <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.
143
144Args:
145 accountId: string, Account ID to create the web property for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700146 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400147 The object takes the form of:
148
149{ # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
151 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
152 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
153 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
154 &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 -0700155 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
157 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
158 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
159 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
160 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400161 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
163 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
164 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
165 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
166 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 # Set to false to delete data associated with the user identifier automatically after the rentention period.
168 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
170 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
171 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
172 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
173 },
174 &quot;permissions&quot;: { # Permissions the user has for this web property.
175 &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.
176 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400177 ],
178 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
180 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
181 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400182 }
183
184
185Returns:
186 An object of the form:
187
188 { # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
190 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
191 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
192 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
193 &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 -0700194 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
196 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
197 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
198 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
199 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400200 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
202 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
203 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
204 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
205 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206 # Set to false to delete data associated with the user identifier automatically after the rentention period.
207 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
209 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
210 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
211 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
212 },
213 &quot;permissions&quot;: { # Permissions the user has for this web property.
214 &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.
215 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400216 ],
217 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
219 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
220 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400221 }</pre>
222</div>
223
224<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 <code class="details" id="list">list(accountId, start_index=None, max_results=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400226 <pre>Lists web properties to which the user has access.
227
228Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 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 -0400230 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 -0700231 max_results: integer, The maximum number of web properties to include in this response.
John Asmuth614db982014-04-24 15:46:26 -0400232
233Returns:
234 An object of the form:
235
236 { # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
238 &quot;items&quot;: [ # A list of web properties.
John Asmuth614db982014-04-24 15:46:26 -0400239 { # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
241 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
242 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
243 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
244 &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 -0700245 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
247 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
248 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
249 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
250 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400251 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
253 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
254 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
255 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
256 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 # Set to false to delete data associated with the user identifier automatically after the rentention period.
258 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
260 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
261 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
262 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
263 },
264 &quot;permissions&quot;: { # Permissions the user has for this web property.
265 &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.
266 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400267 ],
268 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
270 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
271 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400272 },
273 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
275 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
276 &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.
277 &quot;kind&quot;: &quot;analytics#webproperties&quot;, # Collection type.
278 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this web property collection.
279 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this web property collection.
John Asmuth614db982014-04-24 15:46:26 -0400280 }</pre>
281</div>
282
283<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700284 <code class="details" id="patch">patch(accountId, webPropertyId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400285 <pre>Updates an existing web property. This method supports patch semantics.
286
287Args:
288 accountId: string, Account ID to which the web property belongs (required)
289 webPropertyId: string, Web property ID (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700290 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400291 The object takes the form of:
292
293{ # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
295 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
296 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
297 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
298 &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 -0700299 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
301 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
302 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
303 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
304 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400305 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
307 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
308 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
309 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
310 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700311 # Set to false to delete data associated with the user identifier automatically after the rentention period.
312 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
314 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
315 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
316 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
317 },
318 &quot;permissions&quot;: { # Permissions the user has for this web property.
319 &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.
320 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400321 ],
322 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
324 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
325 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400326 }
327
328
329Returns:
330 An object of the form:
331
332 { # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
334 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
335 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
336 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
337 &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 -0700338 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
340 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
341 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
342 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
343 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400344 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
346 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
347 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
348 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
349 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 # Set to false to delete data associated with the user identifier automatically after the rentention period.
351 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
353 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
354 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
355 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
356 },
357 &quot;permissions&quot;: { # Permissions the user has for this web property.
358 &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.
359 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400360 ],
361 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
363 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
364 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400365 }</pre>
366</div>
367
368<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700369 <code class="details" id="update">update(accountId, webPropertyId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400370 <pre>Updates an existing web property.
371
372Args:
373 accountId: string, Account ID to which the web property belongs (required)
374 webPropertyId: string, Web property ID (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700375 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400376 The object takes the form of:
377
378{ # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
380 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
381 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
382 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
383 &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 -0700384 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
386 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
387 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
388 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
389 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400390 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
392 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
393 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
394 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
395 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700396 # Set to false to delete data associated with the user identifier automatically after the rentention period.
397 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700398 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
399 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
400 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
401 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
402 },
403 &quot;permissions&quot;: { # Permissions the user has for this web property.
404 &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.
405 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400406 ],
407 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
409 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
410 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400411 }
412
413
414Returns:
415 An object of the form:
416
417 { # JSON template for an Analytics web property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;starred&quot;: True or False, # Indicates whether this web property is starred or not.
419 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for this web property.
420 &quot;kind&quot;: &quot;analytics#webproperty&quot;, # Resource type for Analytics WebProperty.
421 &quot;created&quot;: &quot;A String&quot;, # Time this web property was created.
422 &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 -0700423 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website url for this web property.
425 &quot;name&quot;: &quot;A String&quot;, # Name of this web property.
426 &quot;parentLink&quot;: { # Parent link for this web property. Points to the account to which this web property belongs.
427 &quot;type&quot;: &quot;analytics#account&quot;, # Type of the parent link. Its value is &quot;analytics#account&quot;.
428 &quot;href&quot;: &quot;A String&quot;, # Link to the account for this web property.
John Asmuth614db982014-04-24 15:46:26 -0400429 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this web property belongs.
431 &quot;id&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY.
432 &quot;defaultProfileId&quot;: &quot;A String&quot;, # Default view (profile) ID.
433 &quot;profileCount&quot;: 42, # View (Profile) count for this web property.
434 &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).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700435 # Set to false to delete data associated with the user identifier automatically after the rentention period.
436 # This property cannot be set on insert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;level&quot;: &quot;A String&quot;, # Level for this web property. Possible values are STANDARD or PREMIUM.
438 &quot;childLink&quot;: { # Child link for this web property. Points to the list of views (profiles) for this web property.
439 &quot;type&quot;: &quot;analytics#profiles&quot;, # Type of the parent link. Its value is &quot;analytics#profiles&quot;.
440 &quot;href&quot;: &quot;A String&quot;, # Link to the list of views (profiles) for this web property.
441 },
442 &quot;permissions&quot;: { # Permissions the user has for this web property.
443 &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.
444 &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400445 ],
446 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;industryVertical&quot;: &quot;A String&quot;, # The industry vertical/category selected for this web property.
448 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this web property.
449 &quot;updated&quot;: &quot;A String&quot;, # Time this web property was last modified.
John Asmuth614db982014-04-24 15:46:26 -0400450 }</pre>
451</div>
452
453</body></html>