blob: f5ba750e98a1be1e2fcaf9555324ac8858965c95 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#list">list(accountId, webPropertyId, start_index=None, max_results=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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
129 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
130 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
131 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
132 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
133 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
134 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
135 # 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
136 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
137 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
138 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
139 },
140 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
141 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
142 &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.
143 &quot;A String&quot;,
144 ],
145 },
146 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
147 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
148 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
149 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
150 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
151 &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.
152 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
153 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
154 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
155 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
156 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
157 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
158 &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.
159 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
160 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
161 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
162 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
163 },
164 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700179 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
180 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
181 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
182 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
183 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
184 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
185 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
186 # 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
187 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
188 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
189 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
190 },
191 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
192 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
193 &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.
194 &quot;A String&quot;,
195 ],
196 },
197 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
198 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
199 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
200 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
201 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
202 &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.
203 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
204 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
205 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
206 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
207 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
208 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
209 &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.
210 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
211 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
212 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
213 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
214 },
215 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
224 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
225 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
226 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
227 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
228 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
229 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
230 # 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
231 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
232 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
233 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
234 },
235 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
236 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
237 &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.
238 &quot;A String&quot;,
239 ],
240 },
241 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
242 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
243 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
244 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
245 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
246 &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.
247 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
248 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
249 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
250 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
251 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
252 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
253 &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.
254 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
255 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
256 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
257 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
258 },
259 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
260 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400261</div>
262
263<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 <code class="details" id="list">list(accountId, webPropertyId, start_index=None, max_results=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)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700270 start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700271 max_results: integer, The maximum number of views (profiles) to include in this response.
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700277 &quot;kind&quot;: &quot;analytics#profiles&quot;, # Collection type.
278 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this view (profile) collection.
279 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
280 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 &quot;items&quot;: [ # A list of views (profiles).
John Asmuth614db982014-04-24 15:46:26 -0400282 { # JSON template for an Analytics view (profile).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700283 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
284 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
285 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
286 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
287 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
288 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
289 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
290 # 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
291 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
292 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
293 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
John Asmuth614db982014-04-24 15:46:26 -0400294 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700295 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
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;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
302 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
303 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
304 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
305 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
306 &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.
307 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
308 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
309 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
310 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
311 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
312 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
313 &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.
314 &quot;selfLink&quot;: &quot;A String&quot;, # Link 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;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
320 },
John Asmuth614db982014-04-24 15:46:26 -0400321 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700322 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700323 &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.
324 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this view (profile) collection.
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700340 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
341 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
342 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
343 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
344 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
345 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
346 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
347 # 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
348 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
349 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
350 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
351 },
352 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
353 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
354 &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.
355 &quot;A String&quot;,
356 ],
357 },
358 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
359 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
360 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
361 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
362 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
363 &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.
364 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
365 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
366 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
367 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
368 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
369 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
370 &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.
371 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
372 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
373 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
374 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
375 },
376 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700384 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
385 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
386 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
387 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
388 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
389 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
390 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
391 # 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
392 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
393 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
394 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
395 },
396 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
397 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
398 &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.
399 &quot;A String&quot;,
400 ],
401 },
402 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
403 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
404 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
405 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
406 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
407 &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.
408 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
409 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
410 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
411 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
412 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
413 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
414 &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.
415 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
416 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
417 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
418 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
419 },
420 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700436 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
437 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
438 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
439 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
440 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
441 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
442 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
443 # 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
444 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
445 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
446 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
447 },
448 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
449 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
450 &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.
451 &quot;A String&quot;,
452 ],
453 },
454 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
455 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
456 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
457 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
458 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
459 &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.
460 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
461 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
462 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
463 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
464 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
465 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
466 &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.
467 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
468 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
469 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
470 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
471 },
472 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700480 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
481 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
482 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
483 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
484 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
485 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
486 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
487 # 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
488 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
489 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
490 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
491 },
492 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
493 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
494 &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.
495 &quot;A String&quot;,
496 ],
497 },
498 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
499 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
500 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
501 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
502 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
503 &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.
504 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
505 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
506 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
507 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
508 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
509 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
510 &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.
511 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
512 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
513 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
514 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
515 },
516 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
517 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400518</div>
519
520</body></html>