blob: c479863841ca4b9771e4cca47067db1a482fcaad [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.profiles.html">profiles</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="#delete">delete(accountId, webPropertyId, profileId)</a></code></p>
82<p class="firstline">Deletes a view (profile).</p>
83<p class="toc_element">
84 <code><a href="#get">get(accountId, webPropertyId, profileId)</a></code></p>
85<p class="firstline">Gets a view (profile) to which the user has access.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(accountId, webPropertyId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Create a new view (profile).</p>
89<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070090 <code><a href="#list">list(accountId, webPropertyId, max_results=None, start_index=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Lists views (profiles) to which the user has access.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(accountId, webPropertyId, profileId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Updates an existing view (profile). This method supports patch semantics.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#update">update(accountId, webPropertyId, profileId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Updates an existing view (profile).</p>
98<h3>Method Details</h3>
99<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400105 <code class="details" id="delete">delete(accountId, webPropertyId, profileId)</code>
106 <pre>Deletes a view (profile).
107
108Args:
109 accountId: string, Account ID to delete the view (profile) for. (required)
110 webPropertyId: string, Web property ID to delete the view (profile) for. (required)
111 profileId: string, ID of the view (profile) to be deleted. (required)
112</pre>
113</div>
114
115<div class="method">
116 <code class="details" id="get">get(accountId, webPropertyId, profileId)</code>
117 <pre>Gets a view (profile) to which the user has access.
118
119Args:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700120 accountId: string, Account ID to retrieve the view (profile) for. (required)
121 webPropertyId: string, Web property ID to retrieve the view (profile) for. (required)
122 profileId: string, View (Profile) ID to retrieve the view (profile) for. (required)
John Asmuth614db982014-04-24 15:46:26 -0400123
124Returns:
125 An object of the form:
126
127 { # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700128 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
129 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
130 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
131 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
132 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
133 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
134 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
135 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
136 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
137 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
138 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
139 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
140 &quot;A String&quot;,
141 ],
142 },
143 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
144 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
145 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
146 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
147 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
148 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
149 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
150 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
151 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
152 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
153 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
154 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
155 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
156 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
157 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
158 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
159 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
160 },
161 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
162 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
163 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
164 },
165 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400166</div>
167
168<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 <code class="details" id="insert">insert(accountId, webPropertyId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400170 <pre>Create a new view (profile).
171
172Args:
173 accountId: string, Account ID to create the view (profile) for. (required)
174 webPropertyId: string, Web property ID to create the view (profile) for. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400176 The object takes the form of:
177
178{ # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
180 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
181 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
182 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
183 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
184 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
185 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
186 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
187 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
188 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
189 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
190 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
191 &quot;A String&quot;,
192 ],
193 },
194 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
195 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
196 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
197 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
198 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
199 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
200 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
201 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
202 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
203 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
204 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
205 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
206 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
207 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
208 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
209 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
210 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
211 },
212 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
213 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
214 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
215 },
216 }
John Asmuth614db982014-04-24 15:46:26 -0400217
218
219Returns:
220 An object of the form:
221
222 { # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700223 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
224 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
225 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
226 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
227 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
228 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
229 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
230 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
231 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
232 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
233 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
234 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
235 &quot;A String&quot;,
236 ],
237 },
238 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
239 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
240 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
241 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
242 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
243 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
244 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
245 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
246 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
247 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
248 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
249 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
250 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
251 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
252 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
253 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
254 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
255 },
256 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
257 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
258 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
259 },
260 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400261</div>
262
263<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700264 <code class="details" id="list">list(accountId, webPropertyId, max_results=None, start_index=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400265 <pre>Lists views (profiles) to which the user has access.
266
267Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700268 accountId: string, Account ID for the view (profiles) to retrieve. Can either be a specific account ID or &#x27;~all&#x27;, which refers to all the accounts to which the user has access. (required)
269 webPropertyId: string, Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or &#x27;~all&#x27;, which refers to all the web properties to which the user has access. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 max_results: integer, The maximum number of views (profiles) to include in this response.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700271 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 -0400272
273Returns:
274 An object of the form:
275
276 { # A view (profile) collection lists Analytics views (profiles) to which the user has access. Each resource in the collection corresponds to a single Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700277 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this view (profile) collection.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700278 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this view (profile) collection.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700279 &quot;kind&quot;: &quot;analytics#profiles&quot;, # Collection type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700280 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700281 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
282 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
283 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;items&quot;: [ # A list of views (profiles).
John Asmuth614db982014-04-24 15:46:26 -0400285 { # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700286 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
287 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
288 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
289 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
290 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
291 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
292 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
293 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
294 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
295 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
296 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
297 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
298 &quot;A String&quot;,
299 ],
300 },
301 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
302 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
303 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
304 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
305 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
306 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
307 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
308 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
309 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
310 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
311 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
312 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
313 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
314 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
315 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
316 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
317 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
318 },
319 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
320 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
321 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
322 },
John Asmuth614db982014-04-24 15:46:26 -0400323 },
324 ],
John Asmuth614db982014-04-24 15:46:26 -0400325 }</pre>
326</div>
327
328<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 <code class="details" id="patch">patch(accountId, webPropertyId, profileId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400330 <pre>Updates an existing view (profile). This method supports patch semantics.
331
332Args:
333 accountId: string, Account ID to which the view (profile) belongs (required)
334 webPropertyId: string, Web property ID to which the view (profile) belongs (required)
335 profileId: string, ID of the view (profile) to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700336 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400337 The object takes the form of:
338
339{ # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700340 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
341 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
342 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
343 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
344 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
345 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
346 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
347 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
348 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
349 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
350 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
351 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
352 &quot;A String&quot;,
353 ],
354 },
355 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
356 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
357 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
358 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
359 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
360 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
361 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
362 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
363 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
364 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
365 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
366 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
367 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
368 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
369 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
370 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
371 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
372 },
373 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
374 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
375 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
376 },
377 }
John Asmuth614db982014-04-24 15:46:26 -0400378
379
380Returns:
381 An object of the form:
382
383 { # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700384 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
385 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
386 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
387 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
388 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
389 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
390 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
391 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
392 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
393 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
394 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
395 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
396 &quot;A String&quot;,
397 ],
398 },
399 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
400 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
401 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
402 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
403 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
404 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
405 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
406 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
407 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
408 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
409 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
410 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
411 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
412 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
413 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
414 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
415 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
416 },
417 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
418 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
419 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
420 },
421 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400422</div>
423
424<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700425 <code class="details" id="update">update(accountId, webPropertyId, profileId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400426 <pre>Updates an existing view (profile).
427
428Args:
429 accountId: string, Account ID to which the view (profile) belongs (required)
430 webPropertyId: string, Web property ID to which the view (profile) belongs (required)
431 profileId: string, ID of the view (profile) to be updated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700432 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400433 The object takes the form of:
434
435{ # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700436 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
437 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
438 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
439 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
440 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
441 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
442 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
443 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
444 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
445 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
446 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
447 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
448 &quot;A String&quot;,
449 ],
450 },
451 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
452 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
453 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
454 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
455 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
456 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
457 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
458 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
459 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
460 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
461 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
462 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
463 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
464 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
465 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
466 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
467 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
468 },
469 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
470 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
471 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
472 },
473 }
John Asmuth614db982014-04-24 15:46:26 -0400474
475
476Returns:
477 An object of the form:
478
479 { # JSON template for an Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700480 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
481 &quot;enhancedECommerceTracking&quot;: True or False, # Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled.
482 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
483 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
484 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
485 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
486 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
487 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
488 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
489 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
490 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
491 &quot;effective&quot;: [ # All the permissions that the user has for this view (profile). These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent web property.
492 &quot;A String&quot;,
493 ],
494 },
495 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
496 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
497 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
498 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
499 # USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL
500 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
501 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
502 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
503 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
504 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
505 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
506 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
507 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
508 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
509 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
510 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
511 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
512 },
513 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
514 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
515 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
516 },
517 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400518</div>
519
520</body></html>