blob: c0365f957b4aa79a0e1e9defd1ae55ec8b263e70 [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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800128 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
129 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
130 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
131 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700132 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800133 &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.
134 &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.
135 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
136 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
137 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
138 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
139 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
140 },
141 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
142 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
143 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
144 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
145 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
146 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
147 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
148 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
149 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
150 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
151 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
152 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
153 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
154 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
155 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
156 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700157 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
158 &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.
159 &quot;A String&quot;,
160 ],
161 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700162 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700164 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 }</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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800179 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
180 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
181 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
182 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700183 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800184 &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.
185 &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.
186 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
187 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
188 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
189 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
190 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
191 },
192 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
193 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
194 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
195 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
196 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
197 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
198 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
199 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
200 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
201 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
202 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
203 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
204 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
205 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
206 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
207 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700208 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
209 &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.
210 &quot;A String&quot;,
211 ],
212 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700213 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800214 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700215 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700216 }
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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800223 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
224 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
225 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
226 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700227 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800228 &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.
229 &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.
230 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
231 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
232 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
233 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
234 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
235 },
236 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
237 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
238 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
239 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
240 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
241 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
242 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
243 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
244 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
245 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
246 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
247 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
248 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
249 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
250 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
251 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700252 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
253 &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.
254 &quot;A String&quot;,
255 ],
256 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700257 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800258 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700259 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700260 }</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 Kim65020912020-05-20 12:08:20 -0700277 &quot;items&quot;: [ # A list of views (profiles).
John Asmuth614db982014-04-24 15:46:26 -0400278 { # JSON template for an Analytics view (profile).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800279 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
280 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
281 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
282 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700283 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800284 &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.
285 &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.
286 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
287 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
288 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
289 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
290 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
291 },
292 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
293 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
294 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
295 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
296 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
297 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
298 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
299 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
300 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
301 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL 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;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
305 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
306 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
307 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700308 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
309 &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.
310 &quot;A String&quot;,
311 ],
312 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700313 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800314 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700315 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
John Asmuth614db982014-04-24 15:46:26 -0400316 },
317 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800318 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
319 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this view (profile) collection.
320 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
321 &quot;kind&quot;: &quot;analytics#profiles&quot;, # Collection type.
322 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this view (profile) collection.
323 &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;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800340 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
341 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
342 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
343 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700344 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800345 &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.
346 &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.
347 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
348 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
349 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
350 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
351 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
352 },
353 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
354 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
355 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
356 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
357 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
358 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
359 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
360 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
361 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
362 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
363 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
364 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
365 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
366 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
367 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
368 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700369 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
370 &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.
371 &quot;A String&quot;,
372 ],
373 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700374 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800375 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700376 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700377 }
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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800384 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
385 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
386 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
387 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700388 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800389 &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.
390 &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.
391 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
392 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
393 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
394 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
395 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
396 },
397 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
398 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
399 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
400 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
401 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
402 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
403 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
404 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
405 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
406 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
407 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
408 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
409 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
410 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
411 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
412 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700413 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
414 &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.
415 &quot;A String&quot;,
416 ],
417 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700418 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800419 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700420 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700421 }</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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800436 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
437 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
438 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
439 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700440 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800441 &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.
442 &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.
443 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
444 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
445 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
446 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
447 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
448 },
449 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
450 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
451 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
452 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
453 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
454 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
455 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
456 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
457 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
458 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
459 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
460 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
461 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
462 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
463 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
464 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700465 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
466 &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.
467 &quot;A String&quot;,
468 ],
469 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700470 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800471 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700472 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700473 }
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).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800480 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
481 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
482 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
483 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700484 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800485 &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.
486 &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.
487 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
488 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
489 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
490 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
491 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
492 },
493 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
494 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
495 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
496 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
497 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
498 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
499 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
500 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
501 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
502 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
503 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
504 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
505 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
506 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
507 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
508 # 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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700509 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
510 &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.
511 &quot;A String&quot;,
512 ],
513 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700514 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800515 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700516 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700517 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400518</div>
519
520</body></html>