blob: b570b8b67d3afd5f55ca1f1437e61bc4f01ea604 [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">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080090 <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 Botcc94ec82021-01-15 07:10:04 -0800128 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
129 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
130 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
131 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
132 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
133 },
134 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
135 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
136 # 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
137 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
138 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
139 &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.
140 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
141 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
142 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
143 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
144 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
145 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
146 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
147 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
148 },
149 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
150 &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.
151 &quot;A String&quot;,
152 ],
153 },
154 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
155 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
156 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
157 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
158 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
159 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
160 &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.
161 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
162 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
163 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
164 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800179 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800180 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800181 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
182 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
183 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
184 },
185 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800186 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
187 # 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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800188 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800189 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800190 &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.
191 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
192 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
193 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
194 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
195 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
196 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
197 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
198 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
199 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800200 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
201 &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.
202 &quot;A String&quot;,
203 ],
204 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800205 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800206 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
207 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
208 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
209 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
210 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
211 &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.
212 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
213 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
214 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
215 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800216}
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 Botcc94ec82021-01-15 07:10:04 -0800223 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
224 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
225 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
226 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
227 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
228 },
229 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
230 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
231 # 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
232 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
233 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
234 &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.
235 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
236 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
237 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
238 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
239 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
240 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
241 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
242 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
243 },
244 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
245 &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.
246 &quot;A String&quot;,
247 ],
248 },
249 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
250 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
251 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
252 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
253 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
254 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
255 &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.
256 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
257 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
258 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
259 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
260}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400261</div>
262
263<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800264 <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)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800270 max_results: integer, The maximum number of views (profiles) to include in this response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800277 &quot;items&quot;: [ # A list of views (profiles).
278 { # JSON template for an Analytics view (profile).
279 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
280 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
281 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
282 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
283 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800284 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800285 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
286 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
287 # 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
288 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
289 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
290 &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.
291 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
292 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
293 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
294 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
295 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
296 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
297 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
298 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
299 },
300 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
301 &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.
302 &quot;A String&quot;,
303 ],
304 },
305 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
306 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
307 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
308 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
309 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
310 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
311 &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.
312 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
313 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
314 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
315 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
316 },
317 ],
318 &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.
319 &quot;kind&quot;: &quot;analytics#profiles&quot;, # Collection type.
320 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this view (profile) collection.
321 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this view (profile) collection.
322 &quot;startIndex&quot;: 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
323 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
324 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
325}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400326</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 Botcc94ec82021-01-15 07:10:04 -0800340 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800341 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800342 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
343 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
344 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
345 },
346 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800347 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
348 # 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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800349 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800350 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800351 &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.
352 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
353 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
354 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
355 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
356 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
357 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
358 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
359 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
360 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800361 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
362 &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.
363 &quot;A String&quot;,
364 ],
365 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800366 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800367 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
368 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
369 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
370 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
371 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
372 &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.
373 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
374 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
375 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
376 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800377}
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 Botcc94ec82021-01-15 07:10:04 -0800384 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
385 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
386 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
387 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
388 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
389 },
390 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
391 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
392 # 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
393 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
394 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
395 &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.
396 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
397 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
398 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
399 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
400 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
401 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
402 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
403 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
404 },
405 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
406 &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.
407 &quot;A String&quot;,
408 ],
409 },
410 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
411 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
412 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
413 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
414 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
415 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
416 &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.
417 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
418 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
419 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
420 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL 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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800436 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800437 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800438 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
439 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
440 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
441 },
442 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800443 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
444 # 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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800446 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800447 &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.
448 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
449 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
450 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
451 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
452 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
453 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
454 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
455 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
456 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800457 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
458 &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.
459 &quot;A String&quot;,
460 ],
461 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800462 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800463 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
464 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
465 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
466 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
467 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
468 &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.
469 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
470 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
471 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
472 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800473}
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 Botcc94ec82021-01-15 07:10:04 -0800480 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
481 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
482 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
483 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
484 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
485 },
486 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
487 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
488 # 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
489 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
490 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
491 &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.
492 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
493 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
494 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
495 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
496 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
497 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
498 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
499 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
500 },
501 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
502 &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.
503 &quot;A String&quot;,
504 ],
505 },
506 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
507 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
508 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
509 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
510 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
511 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
512 &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.
513 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
514 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
515 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
516 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
517}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400518</div>
519
520</body></html>