blob: 6221f0d4a78eefe5164a788ae291cb864fb35d2b [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 Bot0d561ef2020-11-25 07:50:41 -080090 <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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800128 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
129 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
130 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
131 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
132 },
133 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
134 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
135 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
136 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
137 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
138 # 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
139 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
140 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
141 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
142 },
143 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
144 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
145 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
146 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
147 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
148 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
149 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
150 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
151 &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.
152 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
153 &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.
154 &quot;A String&quot;,
155 ],
156 },
157 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
158 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
159 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
160 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
161 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
162 &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.
163 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
164 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics 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 Bot0bf565c2020-12-09 08:56:03 -0800179 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
180 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
181 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
182 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
183 },
184 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
185 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
186 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
187 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
188 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
189 # 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
190 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
191 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
192 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
193 },
194 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
195 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
196 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
197 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
198 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
199 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
200 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
201 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
202 &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.
203 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
204 &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.
205 &quot;A String&quot;,
206 ],
207 },
208 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
209 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
210 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
211 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
212 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
213 &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.
214 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
215 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800223 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
224 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
225 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
226 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
227 },
228 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
229 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
230 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
231 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
232 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
233 # 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
234 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
235 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
236 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
237 },
238 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
239 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
240 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
241 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
242 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
243 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
244 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
245 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
246 &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.
247 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
248 &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.
249 &quot;A String&quot;,
250 ],
251 },
252 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
253 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
254 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
255 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
256 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
257 &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.
258 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
259 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
260 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400261</div>
262
263<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800264 <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 Kim673ec5c2020-11-16 11:05:03 -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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800271 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800277 &quot;itemsPerPage&quot;: 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
Bu Sun Kim65020912020-05-20 12:08:20 -0700278 &quot;items&quot;: [ # A list of views (profiles).
John Asmuth614db982014-04-24 15:46:26 -0400279 { # JSON template for an Analytics view (profile).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800280 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
281 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
282 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
283 &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 -0400284 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800285 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
286 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
287 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
288 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
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;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
292 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
293 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
294 },
295 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
296 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
297 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
298 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
299 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
300 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
301 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
302 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
303 &quot;timezone&quot;: &quot;A String&quot;, # Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database.
304 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
305 &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.
306 &quot;A String&quot;,
307 ],
308 },
309 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
310 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
311 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
312 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
313 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
314 &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.
315 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
316 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
317 },
John Asmuth614db982014-04-24 15:46:26 -0400318 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800319 &quot;kind&quot;: &quot;analytics#profiles&quot;, # Collection type.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800320 &quot;nextLink&quot;: &quot;A String&quot;, # Link to next page for this view (profile) collection.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800321 &quot;username&quot;: &quot;A String&quot;, # Email ID of the authenticated user
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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800323 &quot;previousLink&quot;: &quot;A String&quot;, # Link to previous page for this view (profile) collection.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800324 &quot;totalResults&quot;: 42, # The total number of results for the query, regardless of the number of results in the response.
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 Bot0bf565c2020-12-09 08:56:03 -0800340 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
341 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
342 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
343 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
344 },
345 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
346 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
347 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
348 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
349 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
350 # 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
351 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
352 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
353 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
354 },
355 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
356 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
357 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
358 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
359 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
360 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
361 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
362 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
363 &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.
364 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
365 &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.
366 &quot;A String&quot;,
367 ],
368 },
369 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
370 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
371 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
372 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
373 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
374 &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.
375 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
376 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800384 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
385 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
386 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
387 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
388 },
389 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
390 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
391 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
392 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
393 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
394 # 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
395 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
396 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
397 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
398 },
399 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
400 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
401 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
402 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
403 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
404 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
405 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
406 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
407 &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.
408 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
409 &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.
410 &quot;A String&quot;,
411 ],
412 },
413 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
414 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
415 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
416 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
417 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
418 &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.
419 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
420 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics 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 Bot0bf565c2020-12-09 08:56:03 -0800436 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
437 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
438 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
439 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
440 },
441 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
442 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
443 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
444 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
445 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
446 # 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
447 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
448 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
449 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
450 },
451 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
452 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
453 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
454 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
455 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
456 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
457 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
458 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
459 &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.
460 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
461 &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.
462 &quot;A String&quot;,
463 ],
464 },
465 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
466 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
467 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
468 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
469 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
470 &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.
471 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
472 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics 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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800480 &quot;id&quot;: &quot;A String&quot;, # View (Profile) ID.
481 &quot;parentLink&quot;: { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
482 &quot;type&quot;: &quot;analytics#webproperty&quot;, # Value is &quot;analytics#webproperty&quot;.
483 &quot;href&quot;: &quot;A String&quot;, # Link to the web property to which this view (profile) belongs.
484 },
485 &quot;botFilteringEnabled&quot;: True or False, # Indicates whether bot filtering is enabled for this view (profile).
486 &quot;defaultPage&quot;: &quot;A String&quot;, # Default page for this view (profile).
487 &quot;stripSiteSearchCategoryParameters&quot;: True or False, # Whether or not Analytics will strip search category parameters from the URLs in your reports.
488 &quot;internalWebPropertyId&quot;: &quot;A String&quot;, # Internal ID for the web property to which this view (profile) belongs.
489 &quot;currency&quot;: &quot;A String&quot;, # The currency type associated with this view (profile), defaults to USD. The supported values are:
490 # 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
491 &quot;childLink&quot;: { # Child link for this view (profile). Points to the list of goals for this view (profile).
492 &quot;type&quot;: &quot;analytics#goals&quot;, # Value is &quot;analytics#goals&quot;.
493 &quot;href&quot;: &quot;A String&quot;, # Link to the list of goals for this view (profile).
494 },
495 &quot;starred&quot;: True or False, # Indicates whether this view (profile) is starred or not.
496 &quot;siteSearchQueryParameters&quot;: &quot;A String&quot;, # The site search query parameters for this view (profile).
497 &quot;name&quot;: &quot;A String&quot;, # Name of this view (profile).
498 &quot;type&quot;: &quot;A String&quot;, # View (Profile) type. Supported types: WEB or APP.
499 &quot;stripSiteSearchQueryParameters&quot;: True or False, # Whether or not Analytics will strip search query parameters from the URLs in your reports.
500 &quot;websiteUrl&quot;: &quot;A String&quot;, # Website URL for this view (profile).
501 &quot;eCommerceTracking&quot;: True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
502 &quot;updated&quot;: &quot;A String&quot;, # Time this view (profile) was last modified.
503 &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.
504 &quot;permissions&quot;: { # Permissions the user has for this view (profile).
505 &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.
506 &quot;A String&quot;,
507 ],
508 },
509 &quot;accountId&quot;: &quot;A String&quot;, # Account ID to which this view (profile) belongs.
510 &quot;created&quot;: &quot;A String&quot;, # Time this view (profile) was created.
511 &quot;siteSearchCategoryParameters&quot;: &quot;A String&quot;, # Site search category parameters for this view (profile).
512 &quot;webPropertyId&quot;: &quot;A String&quot;, # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
513 &quot;excludeQueryParameters&quot;: &quot;A String&quot;, # The query parameters that are excluded from this view (profile).
514 &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.
515 &quot;selfLink&quot;: &quot;A String&quot;, # Link for this view (profile).
516 &quot;kind&quot;: &quot;analytics#profile&quot;, # Resource type for Analytics view (profile).
517 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400518</div>
519
520</body></html>